forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
90-shoot.yaml
262 lines (262 loc) · 9.05 KB
/
90-shoot.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
apiVersion: core.gardener.cloud/v1beta1
kind: Shoot
metadata:
name: crazy-botany
namespace: garden-dev
spec:
secretBindingName: my-provider-account
cloudProfileName: cloudprofile1
region: europe-central-1
purpose: evaluation # {testing,development,production,infrastructure}, "infrastructure" purpose only usable for shoots in garden namespace
provider:
type: <some-provider-name> # {aws,azure,gcp,...}
infrastructureConfig:
<some-provider-specific-infrastructure-config>
# https://github.com/gardener/gardener-extension-provider-alicloud/blob/master/example/30-infrastructure.yaml#L54-L64
# https://github.com/gardener/gardener-extension-provider-aws/blob/master/example/30-infrastructure.yaml#L43-L54
# https://github.com/gardener/gardener-extension-provider-azure/blob/master/example/30-infrastructure.yaml#L63-L75
# https://github.com/gardener/gardener-extension-provider-gcp/blob/master/example/30-infrastructure.yaml#L51-L65
# https://github.com/gardener/gardener-extension-provider-openstack/blob/master/example/30-infrastructure.yaml#L59-L65
# https://github.com/gardener/gardener-extension-provider-packet/blob/master/example/30-infrastructure.yaml#L48-L49
controlPlaneConfig:
<some-provider-specific-controlplane-config>
# https://github.com/gardener/gardener-extension-provider-alicloud/blob/master/example/30-controlplane.yaml#L58-L63
# https://github.com/gardener/gardener-extension-provider-aws/blob/master/example/30-controlplane.yaml#L58-L62
# https://github.com/gardener/gardener-extension-provider-azure/blob/master/example/30-controlplane.yaml#L60-L64
# https://github.com/gardener/gardener-extension-provider-gcp/blob/master/example/30-controlplane.yaml#L57-L62
# https://github.com/gardener/gardener-extension-provider-openstack/blob/master/example/30-controlplane.yaml#L66-L72
# https://github.com/gardener/gardener-extension-provider-packet/blob/master/example/30-controlplane.yaml#L58-L59
workers:
- name: cpu-worker
# cri:
# name: containerd
# containerRuntimes:
# - type: gvisor
minimum: 3
maximum: 5
# maxSurge: 1
# maxUnavailable: 0
machine:
type: m5.large
image:
name: <some-image-name>
version: <some-image-version>
# providerConfig:
# <some-machine-image-specific-configuration>
volume:
type: gp2
size: 20Gi
# providerConfig:
# <some-provider-specific-worker-config>
# labels:
# key: value
# annotations:
# key: value
# taints: # See also https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
# - key: foo
# value: bar
# effect: NoSchedule
# caBundle: <some-ca-bundle-to-be-installed-to-all-nodes-in-this-pool>
# kubernetes:
# kubelet:
# cpuCFSQuota: true
# cpuManagerPolicy: none
# podPidsLimit: 10
# imagePullProgressDeadline: 1m
# maxPods: 110
# evictionPressureTransitionPeriod: 4m0s
# evictionMaxPodGracePeriod: 90
# evictionHard:
# memoryAvailable: 100Mi
# imageFSAvailable: 5%
# imageFSInodesFree: 5%
# nodeFSAvailable: 5%
# nodeFSInodesFree: 5%
# evictionSoft:
# memoryAvailable: 200Mi
# imageFSAvailable: 10%
# imageFSInodesFree: 10%
# nodeFSAvailable: 10%
# nodeFSInodesFree: 10%
# evictionSoftGracePeriod:
# memoryAvailable: 1m30s
# imageFSAvailable: 1m30s
# imageFSInodesFree: 1m30s
# nodeFSAvailable: 1m30s
# nodeFSInodesFree: 1m30s
# evictionMinimumReclaim:
# memoryAvailable: 0Mi
# imageFSAvailable: 0Mi
# imageFSInodesFree: 0Mi
# nodeFSAvailable: 0Mi
# nodeFSInodesFree: 0Mi
# featureGates:
# SomeKubernetesFeature: true
# zones: # optional, only relevant if the provider supports availability zones
# - europe-central-1a
# - europe-central-1b
kubernetes:
version: 1.15.1
# allowPrivilegedContainers: true # 'true' means that all authenticated users can use the "gardener.privileged" PodSecurityPolicy, allowing full unrestricted access to Pod features.
# kubeAPIServer:
# featureGates:
# SomeKubernetesFeature: true
# runtimeConfig:
# scheduling.k8s.io/v1alpha1: true
# oidcConfig:
# caBundle: |
# -----BEGIN CERTIFICATE-----
# Li4u
# -----END CERTIFICATE-----
# clientID: client-id
# groupsClaim: groups-claim
# groupsPrefix: groups-prefix
# issuerURL: https://identity.example.com
# usernameClaim: username-claim
# usernamePrefix: username-prefix
# signingAlgs:
# - RS256
# - some-other-algorithm
#-#-# only usable with Kubernetes >= 1.11
# requiredClaims:
# key: value
# admissionPlugins:
# - name: PodNodeSelector
# config:
# podNodeSelectorPluginConfig:
# clusterDefaultNodeSelector: <node-selectors-labels>
# namespace1: <node-selectors-labels>
# namespace2: <node-selectors-labels>
# auditConfig:
# auditPolicy:
# configMapRef:
# name: auditpolicy
# kubeControllerManager:
# nodeCIDRMaskSize: 24
# featureGates:
# SomeKubernetesFeature: true
# horizontalPodAutoscaler:
# syncPeriod: 30s
# tolerance: 0.1
#-#-# only usable with Kubernetes < 1.12
# downscaleDelay: 15m0s
# upscaleDelay: 1m0s
#-#-# only usable with Kubernetes >= 1.12
# downscaleStabilization: 5m0s
# initialReadinessDelay: 30s
# cpuInitializationPeriod: 5m0s
# kubeScheduler:
# featureGates:
# SomeKubernetesFeature: true
# kubeProxy:
# featureGates:
# SomeKubernetesFeature: true
# mode: IPVS
# kubelet:
# cpuCFSQuota: true
# cpuManagerPolicy: none
# podPidsLimit: 10
# imagePullProgressDeadline: 1m
# maxPods: 110
# evictionPressureTransitionPeriod: 4m0s
# evictionMaxPodGracePeriod: 90
# evictionHard:
# memoryAvailable: 100Mi
# imageFSAvailable: 5%
# imageFSInodesFree: 5%
# nodeFSAvailable: 5%
# nodeFSInodesFree: 5%
# evictionSoft:
# memoryAvailable: 200Mi
# imageFSAvailable: 10%
# imageFSInodesFree: 10%
# nodeFSAvailable: 10%
# nodeFSInodesFree: 10%
# evictionSoftGracePeriod:
# memoryAvailable: 1m30s
# imageFSAvailable: 1m30s
# imageFSInodesFree: 1m30s
# nodeFSAvailable: 1m30s
# nodeFSInodesFree: 1m30s
# evictionMinimumReclaim:
# memoryAvailable: 0Mi
# imageFSAvailable: 0Mi
# imageFSInodesFree: 0Mi
# nodeFSAvailable: 0Mi
# nodeFSInodesFree: 0Mi
# featureGates:
# SomeKubernetesFeature: true
# clusterAutoscaler:
# scaleDownUtilizationThreshold: 0.5
# scaleDownUnneededTime: 30m
# scaleDownDelayAfterAdd: 60m
# scaleDownDelayAfterFailure: 10m
# scaleDownDelayAfterDelete: 10s
# scanInterval: 10s
dns:
# When the shoot shall use a cluster domain no domain and no providers need to be provided - Gardener will
# automatically compute a correct domain based on the default domains in the garden cluster.
domain: crazy-botany.core.my-custom-domain.com
# providers:
# - type: aws-route53
# secretName: my-custom-domain-secret
# primary: true # `true` indicates that this provider is also used to manage the shoot domain `.spec.dns.domain`
# domains:
# include:
# - my-custom-domain.com
# - my-other-custom-domain.com
# exclude:
# - yet-another-custom-domain.com
# zones:
# include:
# - zone-id-1
# exclude:
# - zone-id-2
extensions:
- type: foobar
# providerConfig:
# apiVersion: foobar.extensions.gardener.cloud/v1alpha1
# kind: FooBarConfig
# foo: bar
networking:
type: calico
pods: 100.96.0.0/11
nodes: 10.250.0.0/16
services: 100.64.0.0/13
# providerConfig:
# apiVersion: calico.networking.extensions.gardener.cloud/v1alpha1
# kind: NetworkConfig
# ipam:
# type: host-local
# cidr: usePodCIDR
# backend: bird
# typha:
# enabled: true
# See also: https://github.com/gardener/gardener/blob/master/docs/proposals/03-networking.md
maintenance:
timeWindow:
begin: 220000+0100
end: 230000+0100
autoUpdate:
kubernetesVersion: true
machineImageVersion: true
monitoring:
alerting:
emailReceivers:
# hibernation:
# enabled: false
# schedules:
# - start: "0 20 * * *" # Start hibernation every day at 8PM
# end: "0 6 * * *" # Stop hibernation every day at 6AM
# location: "America/Los_Angeles" # Specify a location for the cron to run in
addons:
nginxIngress:
enabled: false
# loadBalancerSourceRanges: []
# externalTrafficPolicy: Cluster
# config:
# enable-access-log-for-default-backend: "false"
kubernetesDashboard:
enabled: true
# authenticationMode: basic # allowed values: basic,token