Skip to content

Commit bf4dfe7

Browse files
committed
feat: make probes configurable via helm-chart
1 parent 8716bb8 commit bf4dfe7

File tree

4 files changed

+117
-1
lines changed

4 files changed

+117
-1
lines changed

charts/steadybit-extension-scaffold/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-extension-scaffold
33
description: Steadybit scaffold extension Helm chart for Kubernetes.
4-
version: 1.0.23
4+
version: 1.0.24
55
appVersion: latest
66
home: https://www.steadybit.com/
77
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png

charts/steadybit-extension-scaffold/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,20 @@ spec:
6363
volumeMounts:
6464
{{- include "extensionlib.deployment.volumeMounts" (list .) | nindent 12 }}
6565
livenessProbe:
66+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
67+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
68+
timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
69+
successThreshold: {{ .Values.probes.liveness.successThreshold }}
70+
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
6671
httpGet:
6772
path: /health/liveness
6873
port: 8081
6974
readinessProbe:
75+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
76+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
77+
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
78+
successThreshold: {{ .Values.probes.readiness.successThreshold }}
79+
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
7080
httpGet:
7181
path: /health/readiness
7282
port: 8081

charts/steadybit-extension-scaffold/tests/__snapshot__/deployment_test.yaml.snap

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,24 @@ manifest should match snapshot using podAnnotations and Labels:
3434
image: ghcr.io/steadybit/extension-scaffold:latest
3535
imagePullPolicy: Always
3636
livenessProbe:
37+
failureThreshold: 5
3738
httpGet:
3839
path: /health/liveness
3940
port: 8081
41+
initialDelaySeconds: 10
42+
periodSeconds: 10
43+
successThreshold: 1
44+
timeoutSeconds: 5
4045
name: extension
4146
readinessProbe:
47+
failureThreshold: 3
4248
httpGet:
4349
path: /health/readiness
4450
port: 8081
51+
initialDelaySeconds: 10
52+
periodSeconds: 10
53+
successThreshold: 1
54+
timeoutSeconds: 1
4555
resources:
4656
limits:
4757
cpu: 200m
@@ -99,14 +109,24 @@ manifest should match snapshot with TLS:
99109
image: ghcr.io/steadybit/extension-scaffold:latest
100110
imagePullPolicy: Always
101111
livenessProbe:
112+
failureThreshold: 5
102113
httpGet:
103114
path: /health/liveness
104115
port: 8081
116+
initialDelaySeconds: 10
117+
periodSeconds: 10
118+
successThreshold: 1
119+
timeoutSeconds: 5
105120
name: extension
106121
readinessProbe:
122+
failureThreshold: 3
107123
httpGet:
108124
path: /health/readiness
109125
port: 8081
126+
initialDelaySeconds: 10
127+
periodSeconds: 10
128+
successThreshold: 1
129+
timeoutSeconds: 1
110130
resources:
111131
limits:
112132
cpu: 200m
@@ -174,14 +194,24 @@ manifest should match snapshot with extra env vars:
174194
image: ghcr.io/steadybit/extension-scaffold:latest
175195
imagePullPolicy: Always
176196
livenessProbe:
197+
failureThreshold: 5
177198
httpGet:
178199
path: /health/liveness
179200
port: 8081
201+
initialDelaySeconds: 10
202+
periodSeconds: 10
203+
successThreshold: 1
204+
timeoutSeconds: 5
180205
name: extension
181206
readinessProbe:
207+
failureThreshold: 3
182208
httpGet:
183209
path: /health/readiness
184210
port: 8081
211+
initialDelaySeconds: 10
212+
periodSeconds: 10
213+
successThreshold: 1
214+
timeoutSeconds: 1
185215
resources:
186216
limits:
187217
cpu: 200m
@@ -237,14 +267,24 @@ manifest should match snapshot with extra labels:
237267
image: ghcr.io/steadybit/extension-scaffold:latest
238268
imagePullPolicy: Always
239269
livenessProbe:
270+
failureThreshold: 5
240271
httpGet:
241272
path: /health/liveness
242273
port: 8081
274+
initialDelaySeconds: 10
275+
periodSeconds: 10
276+
successThreshold: 1
277+
timeoutSeconds: 5
243278
name: extension
244279
readinessProbe:
280+
failureThreshold: 3
245281
httpGet:
246282
path: /health/readiness
247283
port: 8081
284+
initialDelaySeconds: 10
285+
periodSeconds: 10
286+
successThreshold: 1
287+
timeoutSeconds: 1
248288
resources:
249289
limits:
250290
cpu: 200m
@@ -304,14 +344,24 @@ manifest should match snapshot with mutual TLS:
304344
image: ghcr.io/steadybit/extension-scaffold:latest
305345
imagePullPolicy: Always
306346
livenessProbe:
347+
failureThreshold: 5
307348
httpGet:
308349
path: /health/liveness
309350
port: 8081
351+
initialDelaySeconds: 10
352+
periodSeconds: 10
353+
successThreshold: 1
354+
timeoutSeconds: 5
310355
name: extension
311356
readinessProbe:
357+
failureThreshold: 3
312358
httpGet:
313359
path: /health/readiness
314360
port: 8081
361+
initialDelaySeconds: 10
362+
periodSeconds: 10
363+
successThreshold: 1
364+
timeoutSeconds: 1
315365
resources:
316366
limits:
317367
cpu: 200m
@@ -385,14 +435,24 @@ manifest should match snapshot with mutual TLS using containerPaths:
385435
image: ghcr.io/steadybit/extension-scaffold:latest
386436
imagePullPolicy: Always
387437
livenessProbe:
438+
failureThreshold: 5
388439
httpGet:
389440
path: /health/liveness
390441
port: 8081
442+
initialDelaySeconds: 10
443+
periodSeconds: 10
444+
successThreshold: 1
445+
timeoutSeconds: 5
391446
name: extension
392447
readinessProbe:
448+
failureThreshold: 3
393449
httpGet:
394450
path: /health/readiness
395451
port: 8081
452+
initialDelaySeconds: 10
453+
periodSeconds: 10
454+
successThreshold: 1
455+
timeoutSeconds: 1
396456
resources:
397457
limits:
398458
cpu: 200m
@@ -446,14 +506,24 @@ manifest should match snapshot with podSecurityContext:
446506
image: ghcr.io/steadybit/extension-scaffold:latest
447507
imagePullPolicy: Always
448508
livenessProbe:
509+
failureThreshold: 5
449510
httpGet:
450511
path: /health/liveness
451512
port: 8081
513+
initialDelaySeconds: 10
514+
periodSeconds: 10
515+
successThreshold: 1
516+
timeoutSeconds: 5
452517
name: extension
453518
readinessProbe:
519+
failureThreshold: 3
454520
httpGet:
455521
path: /health/readiness
456522
port: 8081
523+
initialDelaySeconds: 10
524+
periodSeconds: 10
525+
successThreshold: 1
526+
timeoutSeconds: 1
457527
resources:
458528
limits:
459529
cpu: 200m
@@ -509,14 +579,24 @@ manifest should match snapshot with priority class:
509579
image: ghcr.io/steadybit/extension-scaffold:latest
510580
imagePullPolicy: Always
511581
livenessProbe:
582+
failureThreshold: 5
512583
httpGet:
513584
path: /health/liveness
514585
port: 8081
586+
initialDelaySeconds: 10
587+
periodSeconds: 10
588+
successThreshold: 1
589+
timeoutSeconds: 5
515590
name: extension
516591
readinessProbe:
592+
failureThreshold: 3
517593
httpGet:
518594
path: /health/readiness
519595
port: 8081
596+
initialDelaySeconds: 10
597+
periodSeconds: 10
598+
successThreshold: 1
599+
timeoutSeconds: 1
520600
resources:
521601
limits:
522602
cpu: 200m
@@ -571,14 +651,24 @@ manifest should match snapshot without TLS:
571651
image: ghcr.io/steadybit/extension-scaffold:latest
572652
imagePullPolicy: Always
573653
livenessProbe:
654+
failureThreshold: 5
574655
httpGet:
575656
path: /health/liveness
576657
port: 8081
658+
initialDelaySeconds: 10
659+
periodSeconds: 10
660+
successThreshold: 1
661+
timeoutSeconds: 5
577662
name: extension
578663
readinessProbe:
664+
failureThreshold: 3
579665
httpGet:
580666
path: /health/readiness
581667
port: 8081
668+
initialDelaySeconds: 10
669+
periodSeconds: 10
670+
successThreshold: 1
671+
timeoutSeconds: 1
582672
resources:
583673
limits:
584674
cpu: 200m

charts/steadybit-extension-scaffold/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ logging:
3636
# logging.format -- The format of the log entries. One of text, json
3737
format: text
3838

39+
probes:
40+
# probes.readiness.* -- Configuration of the Kubernetes readiness probe
41+
readiness:
42+
initialDelaySeconds: 10
43+
periodSeconds: 10
44+
timeoutSeconds: 1
45+
failureThreshold: 3
46+
successThreshold: 1
47+
# probes.liveness.* -- Configuration of the Kubernetes liveness probe
48+
liveness:
49+
initialDelaySeconds: 10
50+
periodSeconds: 10
51+
timeoutSeconds: 5
52+
failureThreshold: 5
53+
successThreshold: 1
54+
3955
resources:
4056
requests:
4157
# resources.requests.memory -- The minimal amount of memory needed

0 commit comments

Comments
 (0)