-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathprod-kops-config.yaml
209 lines (209 loc) · 4.53 KB
/
prod-kops-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: prod.devtron.ai
spec:
api:
loadBalancer:
crossZoneLoadBalancing: false
type: Public
authorization:
rbac: {}
kubeAPIServer:
enableAggregatorRouting: true
runtimeConfig:
# HPA Multiple Metrics via Metrics-server
autoscaling/v2beta1: "true"
admissionControl:
- NamespaceLifecycle
- LimitRanger
- ServiceAccount
- PersistentVolumeLabel
- DefaultStorageClass
- DefaultTolerationSeconds
- MutatingAdmissionWebhook
- ValidatingAdmissionWebhook
- ResourceQuota
- NodeRestriction
- Priority
kubelet:
kubeReserved:
cpu: "0.3"
memory: "500Mi"
ephemeral-storage: "1Gi"
kubeReservedCgroup: "/kube-reserved"
kubeletCgroups: "/kube-reserved"
runtimeCgroups: "/kube-reserved"
systemReserved:
cpu: "0.3"
memory: "500Mi"
ephemeral-storage: "1Gi"
systemReservedCgroup: "/system-reserved"
enforceNodeAllocatable: "pods,system-reserved,kube-reserved"
anonymousAuth: false
authenticationTokenWebhook: true
authorizationMode: Webhook
kubeControllerManager:
horizontalPodAutoscalerUseRestClients: true # required for HPA
externalPolicies:
node:
- arn:aws:iam::420951305117:policy/kops-cluster-policy
channel: stable
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master
name: master
enableEtcdTLS: true
enableTLSAuth: true
name: main
- etcdMembers:
- instanceGroup: master
name: master
enableEtcdTLS: true
enableTLSAuth: true
name: events
iam:
allowContainerRegistry: true
legacy: false
kubernetesApiAccess:
- 0.0.0.0/0
kubernetesVersion: 1.21.4
networkCIDR: 172.31.0.0/16
networkID: vpc-a1f1efc9
nonMasqueradeCIDR: 100.64.0.0/10
networking:
calico:
crossSubnet: true
sshAccess:
- 0.0.0.0/0
subnets:
- cidr: 172.31.224.0/20
id: subnet-0da33dc5e55ff7f62
name: utility-us-east-2a
type: Utility
zone: us-east-2a
- cidr: 172.31.240.0/20
id: subnet-0d1feccb33ca464f0
name: utility-us-east-2b
type: Utility
zone: us-east-2b
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: prod.devtron.ai
name: node-od
spec:
additionalSecurityGroups:
- sg-0d23522a61413f202
cloudLabels:
k8s.io/cluster-autoscaler/enabled: ""
k8s.io/cluster-autoscaler/prod.devtron.ai: owned
machineType: c5.large
maxSize: 1
minSize: 1
nodeLabels:
diskType: gp2
family: c5
kops.k8s.io/instancegroup: node-od
lifeCycle: ondemand
purpose: prod
type: c5.large
role: Node
rootVolumeSize: 25
rootVolumeType: gp2
subnets:
- utility-us-east-2b
taints:
- dedicated=prod:NoSchedule
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: prod.devtron.ai
name: ci-node
spec:
cloudLabels:
k8s.io/cluster-autoscaler/enabled: ""
k8s.io/cluster-autoscaler/prod.devtron.ai: owned
machineType: c5n.xlarge
maxPrice: "0.15"
maxSize: 4
minSize: 0
mixedInstancesPolicy:
instances:
- r4.xlarge
- m5a.xlarge
- c5n.xlarge
onDemandAboveBase: 0
onDemandBase: 0
nodeLabels:
dedicated: ci
diskType: standard
kops.k8s.io/instancegroup: ci-node
lifeCycle: spot
purpose: general
role: Node
rootVolumeSize: 160
rootVolumeType: gp2
subnets:
- utility-us-east-2a
taints:
- dedicated=ci:NoSchedule
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: prod.devtron.ai
name: master
spec:
machineType: m5.large
maxSize: 1
minSize: 1
nodeLabels:
diskType: gp2
family: m5
kops.k8s.io/instancegroup: master
lifeCycle: ondemand
type: m5.large
role: Master
rootVolumeSize: 25
rootVolumeType: gp2
subnets:
- utility-us-east-2a
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: prod.devtron.ai
name: nodes
spec:
cloudLabels:
k8s.io/cluster-autoscaler/enabled: ""
k8s.io/cluster-autoscaler/prod.devtron.ai: owned
machineType: c5n.xlarge
maxPrice: "0.50"
maxSize: 2
minSize: 1
mixedInstancesPolicy:
instances:
- r4.xlarge
- m5a.xlarge
- c5n.xlarge
onDemandAboveBase: 0
onDemandBase: 0
nodeLabels:
diskType: gp2
kops.k8s.io/instancegroup: nodes
lifeCycle: spot
purpose: general
role: Node
rootVolumeSize: 31
rootVolumeType: gp2
subnets:
- utility-us-east-2a