-
Notifications
You must be signed in to change notification settings - Fork 2
/
values.yaml
641 lines (607 loc) · 14 KB
/
values.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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
global:
configMapNameOverride:
test-override: test-overridden
metadata:
enabled: true
fullnameOverride: example-app-metadata
securityContext:
runAsNonRoot: true
runAsUser: 33 # www-data
ingress:
enabled: true
fullnameOverride: example-app-ingress
annotations:
example-annotation: 'coucou'
hostGroups:
host1:
tls:
enabled: true
secretName: my-tls-secret
hosts:
- test1.example.com
- test2.example.com
host2:
tls:
enabled: true
hosts:
- '*.example.com'
dockerregistry:
external: true
fullnameOverride: example-app-dockerregistry
annotations:
testAnnotation: annotation value
content:
docker_hub_1:
email: [email protected]
username: c2cgisbot
password: '1234'
url: https://index.docker.io/v1/
docker_io:
email: [email protected]
username: c2cgisbot
password: '1234'
url: docker.io
ghcr_io:
externalEmail: ghcr-email
externalUsername: ghcr-username
externalPassword: ghcr-password
externalUrl: ghcr-url
user:
email: [email protected]
username: my-username
externalPassword: ghcr-password
url: ghcr.io
password:
email: [email protected]
externalUsername: ghcr-username
password: my-password
url: ghcr.io
secrets:
enabled: true
fullnameOverride: example-app-secrets
annotations:
testAnnotation: annotation value for secrets
content:
test:
value: toto
test2:
value: toto2
test3:
type: basicAuth
user: toto
password: toto
externalSecrets:
app:
enabled: true
fullnameOverride: example-app-ext-secrets
refreshInterval: 1h
secretStoreRef:
name: my-secret-store
kind: SecretStore
data:
hostname:
remoteRef:
key: hostname
global:
enabled: true
fullnameOverride: example-app-global-ext-secrets
refreshInterval: 1h
secretStoreRef:
name: my-global-secret-store
kind: SecretStore
data:
pass:
remoteRef:
key: pass
configMaps:
fullnameOverride: example-app-configmaps
annotations:
testAnnotation: annotation value for configmaps
content:
testSingleLine:
value: toto
testMultiLine:
value: |-
toto2
titi
tutu
testYaml:
type: yaml
value:
toto: toto
titi: titi
tutu: tutu
testJson:
type: json
value:
toto: toto
titi: titi
tutu: tutu
serviceAccount:
create: true
name: example3-service-account
serviceName: myserviceaccount
fullnameOverride: example-app-service-account
annotations:
example-annotation: coucou
services:
example1:
enabled: true
fullnameOverride: example-app-example1
pdb:
enabled: false
ingress:
enabled: true
path: /one
podMonitor:
enabled: true
podMetricsEndpoints:
prometheus:
interval: 10s
honorLabels: true
config-prometheus:
interval: 10s
honorLabels: true
replicaCount: 1
affinity:
podAntiAffinity:
topologyKey: kubernetes.io/hostname
serviceName: with-service-name
initContainers:
aa: &aa
image:
repository: camptocamp/custom-aa
tag: latest
sha:
command:
- sleep
- '3600'
workingDir: /tmp
resources:
limits:
cpu: 100m
memory: 50Mi
requests:
cpu: 100m
memory: 50Mi
env:
TEST:
value: aa
bb: &bb
env:
MY_ENV_VAR:
value: some-value
JWT_SECRET_KEY:
type: secret
name: jwt-key-secret
key: JWT_SECRET_KEY
APP_KUBERNETES_IO_COMPONENT:
type: valueFrom
valueFrom:
fieldRef:
fieldPath: "metadata.labels['app.kubernetes.io/component']"
image:
repository: camptocamp/custom-bb
tag: latest
sha:
args:
- sleep
- '3600'
volumeMounts:
/tmp/my-volume/config:
name: my-volume
subPath: config
readOnly: true
/tmp/my-volume/data:
name: my-volume
subPath: data
containers:
cc:
<<: *aa
lifecycle:
preStop:
exec:
command:
- /bin/bash
- -c
- 'true'
dd:
<<: *bb
livenessProbe:
httpGet:
path: /heals/liveness
port: http
readinessProbe:
httpGet:
path: /heals/readiness
port: http
initialDelaySeconds: 5
timeoutSeconds: 10
periodSeconds: 20
startupProbe:
httpGet:
path: /heals/startup
port: http
ports:
http:
containerPort: 8080
protocol: TCP
volumes:
my-volume:
emptyDir: {}
my-device-volume:
persistentVolumeClaim:
claimName: pvc-name
self-configmap:
configMap:
items:
- key: testYaml
path: test.yaml
self-secret:
secret: {}
self-configmap-metadata:
configMap:
name: self-metadata
items:
- key: testYaml
path: test.yaml
self-external-secret:
secret:
secretName: self-external-secret-app
items:
- key: hostname
path: hostname.txt
config-map-override:
configMap:
name: test-override
service: &servicedefinition
type: ClusterIP
servicePort: 8080
ports:
- name: http
port: 8080
protocol: TCP
targetPort: http
example2:
releaseTrunc: 15
prefixTrunc: 3
affinity:
podAntiAffinity:
topologyKey: kubernetes.io/hostname
ingress:
enabled: true
path: /two
enabled: true
replicaCount: 2
pdb:
minAvailable: 2
containers:
cc:
<<: *aa
dd:
<<: *bb
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
timeoutSeconds: 10
periodSeconds: 20
startupProbe:
httpGet:
path: /
port: http
ports:
http:
containerPort: 8080
protocol: TCP
volumes:
my-volume:
emptyDir: {}
my-volume-2:
emptyDir: {}
service:
<<: *servicedefinition
labels:
one-custom-label: 'hello-world'
annotations:
one-custom-annotation: 'abc'
two-custom-annotations: 'xyz'
example3:
ingress:
enabled: true
path: /three
enabled: true
replicaCount: 2
fullnameOverride: example-app
nameOverride: with-name-override
affinity:
podAntiAffinity:
topologyKey: kubernetes.io/hostname
pdb:
maxUnavailable: 3
containers:
cc:
<<: *aa
dd:
<<: *bb
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
timeoutSeconds: 10
periodSeconds: 20
startupProbe:
httpGet:
path: /
port: http
ports:
http:
containerPort: 8080
protocol: TCP
volumes:
my-volume:
emptyDir: {}
my-volume-2:
emptyDir: {}
service:
<<: *servicedefinition
name: hardcoded-service-name
# Example with labelSelector in affinity
example4:
enabled: true
fullnameOverride: example-app
affinity:
podAntiAffinity:
labelSelector:
k1: v1
topologyKey: kubernetes.io/hostname
containers:
main:
image:
repository: camptocamp/image
tag: latest
podMonitor:
enabled: true
podMetricsEndpoints:
prometheus:
interval: 10s
honorLabels: true
# Example with HPA and labelSelector in affinity
example5:
enabled: true
fullnameOverride: example-app
affinity:
podAntiAffinity:
labelSelector:
k1: v1
topologyKey: kubernetes.io/hostname
containers:
main:
image:
repository: camptocamp/image
tag: latest
podMonitor:
enabled: true
podMetricsEndpoints:
prometheus:
interval: 10s
honorLabels: true
service:
name: service-autoscaled
type: ClusterIP
ports:
- port: 80
targetPort: 80
hpa:
enabled: true
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
# Minimal configuration of a deployment
deployment-min:
enabled: true
fullnameOverride: example-app
containers:
main:
image:
repository: camptocamp/image
tag: latest
# Deployment with all the possible options
deployment-all:
enabled: true
fullnameOverride: example-app
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: disktype
operator: In
values:
- ssd
progressDeadlineSeconds: 600
minReadySeconds: 10
paused: false
containers:
main:
image:
repository: camptocamp/image
tag: latest
# Minimal configuration of a daemonset
statefulset-min:
enabled: true
fullnameOverride: example-app
type: StatefulSet
containers:
main:
image:
repository: camptocamp/image
tag: latest
# Daemonset with all the possible options
statefulset-all:
enabled: true
fullnameOverride: example-app
type: StatefulSet
serviceName: 'nginx'
replicas: 3
minReadySeconds: 10
podManagementPolicy: Parallel
ordinals:
start: 0
updateStrategy:
type: RollingUpdate
rollingUpdate:
partition: 0
containers:
main:
image:
repository: camptocamp/image
tag: latest
persistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Delete
volumeClaimTemplates:
- metadata:
name: www
spec:
accessModes: ['ReadWriteOnce']
storageClassName: 'my-storage-class'
resources:
requests:
storage: 1Gi
# Minimal configuration of a job
job-min:
enabled: true
fullnameOverride: example-app
type: Job
# not available in k8s <= 1.27
# podReplacementPolicy: OnFailure
restartPolicy: Never
containers:
main:
image:
repository: camptocamp/image
tag: latest
# Job with all the possible options
job-all:
enabled: true
fullnameOverride: example-app
type: Job
backoffLimit: 5
completions: 10
parallelism: 3
completionMode: Indexed
# not available in k8s <= 1.27
# backoffLimitPerIndex: 1
# maxFailedIndexes: 5
activeDeadlineSeconds: 600
ttlSecondsAfterFinished: 600
# not available in k8s <= 1.27
# podReplacementPolicy: OnFailure
restartPolicy: Never
podFailurePolicy:
rules:
- action: FailJob
onExitCodes:
containerName: main # optional
operator: In # one of: In, NotIn
values: [42]
- action: Ignore # one of: Ignore, FailJob, Count
onPodConditions:
- type: DisruptionTarget # indicates Pod disruption
suspend: false
containers:
main:
image:
repository: camptocamp/image
tag: latest
cronjob-all:
enabled: true
fullnameOverride: example-app
schedule: '*/1 * * * *'
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 2
failedJobsHistoryLimit: 2
type: CronJob
backoffLimit: 5
completions: 10
parallelism: 3
completionMode: Indexed
# not available in k8s <= 1.27
# backoffLimitPerIndex: 1
# maxFailedIndexes: 5
activeDeadlineSeconds: 600
ttlSecondsAfterFinished: 600
# not available in k8s <= 1.27
# podReplacementPolicy: OnFailure
restartPolicy: Never
podFailurePolicy:
rules:
- action: FailJob
onExitCodes:
containerName: main # optional
operator: In # one of: In, NotIn
values: [42]
- action: Ignore # one of: Ignore, FailJob, Count
onPodConditions:
- type: DisruptionTarget # indicates Pod disruption
status: 'True'
suspend: false
containers:
main:
image:
repository: camptocamp/image
tag: latest
# Test internal env
internal:
enabled: true
fullnameOverride: example-app
containers:
main:
image:
repository: camptocamp/image
tag: latest
env:
SELF_CONFIGMAP:
type: configMap
name: self
key: testSingleLine
SELF_SECRET:
type: secret
name: self
key: test
SELF_METADATA:
type: configMap
name: self-metadata
key: CHART_NAME
SELF_VAULT:
type: secret
name: self-external-secret-app
key: hostname
CONFIG_MAP_OVERRIDE:
type: configMap
name: test-override
key: testSingleLine