Skip to content

Commit dedbdf7

Browse files
committed
feat(helm): add startupProbe to envoy-gateway deployment
Signed-off-by: Clement Phu <clement.phu@hotmail.fr>
1 parent b8eb202 commit dedbdf7

29 files changed

Lines changed: 351 additions & 64 deletions

charts/gateway-helm/templates/envoy-gateway-deployment.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,10 @@ spec:
6464
{{- end }}
6565
image: {{ include "eg.image" . }}
6666
imagePullPolicy: {{ include "eg.image.pullPolicy" . }}
67+
startupProbe:
68+
{{- toYaml .Values.deployment.envoyGateway.startupProbe | nindent 10 }}
6769
livenessProbe:
68-
httpGet:
69-
path: /healthz
70-
port: 8081
71-
initialDelaySeconds: 15
72-
periodSeconds: 20
70+
{{- toYaml .Values.deployment.envoyGateway.livenessProbe | nindent 10 }}
7371
name: envoy-gateway
7472
ports:
7573
{{- range .Values.deployment.ports }}
@@ -81,11 +79,7 @@ spec:
8179
containerPort: 9443
8280
{{- end }}
8381
readinessProbe:
84-
httpGet:
85-
path: /readyz
86-
port: 8081
87-
initialDelaySeconds: 5
88-
periodSeconds: 10
82+
{{- toYaml .Values.deployment.envoyGateway.readinessProbe | nindent 10 }}
8983
resources:
9084
{{- toYaml .Values.deployment.envoyGateway.resources | nindent 10 }}
9185
securityContext:

charts/gateway-helm/values.tmpl.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,28 @@ deployment:
6161
runAsUser: 65532
6262
seccompProfile:
6363
type: RuntimeDefault
64+
startupProbe:
65+
httpGet:
66+
path: /healthz
67+
port: 8081
68+
failureThreshold: 30
69+
periodSeconds: 1
70+
successThreshold: 1
71+
timeoutSeconds: 1
72+
livenessProbe:
73+
httpGet:
74+
path: /healthz
75+
port: 8081
76+
periodSeconds: 20
77+
successThreshold: 1
78+
timeoutSeconds: 1
79+
readinessProbe:
80+
httpGet:
81+
path: /readyz
82+
port: 8081
83+
periodSeconds: 10
84+
successThreshold: 1
85+
timeoutSeconds: 1
6486
ports:
6587
- name: grpc
6688
port: 18000
@@ -109,6 +131,7 @@ config:
109131
controllerName: gateway.envoyproxy.io/gatewayclass-controller
110132
provider:
111133
type: Kubernetes
134+
kubernetes: {}
112135
logging:
113136
level:
114137
default: info

test/helm/gateway-helm/certgen-annotations.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,21 @@ spec:
426426
value: cluster.local
427427
image: docker.io/envoyproxy/gateway-dev:latest
428428
imagePullPolicy: Always
429+
startupProbe:
430+
failureThreshold: 30
431+
httpGet:
432+
path: /healthz
433+
port: 8081
434+
periodSeconds: 1
435+
successThreshold: 1
436+
timeoutSeconds: 1
429437
livenessProbe:
430438
httpGet:
431439
path: /healthz
432440
port: 8081
433-
initialDelaySeconds: 15
434441
periodSeconds: 20
442+
successThreshold: 1
443+
timeoutSeconds: 1
435444
name: envoy-gateway
436445
ports:
437446
- containerPort: 18000
@@ -448,8 +457,9 @@ spec:
448457
httpGet:
449458
path: /readyz
450459
port: 8081
451-
initialDelaySeconds: 5
452460
periodSeconds: 10
461+
successThreshold: 1
462+
timeoutSeconds: 1
453463
resources:
454464
limits:
455465
memory: 1024Mi

test/helm/gateway-helm/certgen-args.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,21 @@ spec:
426426
value: cluster.local
427427
image: docker.io/envoyproxy/gateway-dev:latest
428428
imagePullPolicy: Always
429+
startupProbe:
430+
failureThreshold: 30
431+
httpGet:
432+
path: /healthz
433+
port: 8081
434+
periodSeconds: 1
435+
successThreshold: 1
436+
timeoutSeconds: 1
429437
livenessProbe:
430438
httpGet:
431439
path: /healthz
432440
port: 8081
433-
initialDelaySeconds: 15
434441
periodSeconds: 20
442+
successThreshold: 1
443+
timeoutSeconds: 1
435444
name: envoy-gateway
436445
ports:
437446
- containerPort: 18000
@@ -448,8 +457,9 @@ spec:
448457
httpGet:
449458
path: /readyz
450459
port: 8081
451-
initialDelaySeconds: 5
452460
periodSeconds: 10
461+
successThreshold: 1
462+
timeoutSeconds: 1
453463
resources:
454464
limits:
455465
memory: 1024Mi

test/helm/gateway-helm/certgen-labels.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,21 @@ spec:
426426
value: cluster.local
427427
image: docker.io/envoyproxy/gateway-dev:latest
428428
imagePullPolicy: Always
429+
startupProbe:
430+
failureThreshold: 30
431+
httpGet:
432+
path: /healthz
433+
port: 8081
434+
periodSeconds: 1
435+
successThreshold: 1
436+
timeoutSeconds: 1
429437
livenessProbe:
430438
httpGet:
431439
path: /healthz
432440
port: 8081
433-
initialDelaySeconds: 15
434441
periodSeconds: 20
442+
successThreshold: 1
443+
timeoutSeconds: 1
435444
name: envoy-gateway
436445
ports:
437446
- containerPort: 18000
@@ -448,8 +457,9 @@ spec:
448457
httpGet:
449458
path: /readyz
450459
port: 8081
451-
initialDelaySeconds: 5
452460
periodSeconds: 10
461+
successThreshold: 1
462+
timeoutSeconds: 1
453463
resources:
454464
limits:
455465
memory: 1024Mi

test/helm/gateway-helm/certjen-custom-scheduling.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,21 @@ spec:
426426
value: cluster.local
427427
image: docker.io/envoyproxy/gateway-dev:latest
428428
imagePullPolicy: Always
429+
startupProbe:
430+
failureThreshold: 30
431+
httpGet:
432+
path: /healthz
433+
port: 8081
434+
periodSeconds: 1
435+
successThreshold: 1
436+
timeoutSeconds: 1
429437
livenessProbe:
430438
httpGet:
431439
path: /healthz
432440
port: 8081
433-
initialDelaySeconds: 15
434441
periodSeconds: 20
442+
successThreshold: 1
443+
timeoutSeconds: 1
435444
name: envoy-gateway
436445
ports:
437446
- containerPort: 18000
@@ -448,8 +457,9 @@ spec:
448457
httpGet:
449458
path: /readyz
450459
port: 8081
451-
initialDelaySeconds: 5
452460
periodSeconds: 10
461+
successThreshold: 1
462+
timeoutSeconds: 1
453463
resources:
454464
limits:
455465
memory: 1024Mi

test/helm/gateway-helm/common-labels.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,21 @@ spec:
458458
value: cluster.local
459459
image: docker.io/envoyproxy/gateway-dev:latest
460460
imagePullPolicy: Always
461+
startupProbe:
462+
failureThreshold: 30
463+
httpGet:
464+
path: /healthz
465+
port: 8081
466+
periodSeconds: 1
467+
successThreshold: 1
468+
timeoutSeconds: 1
461469
livenessProbe:
462470
httpGet:
463471
path: /healthz
464472
port: 8081
465-
initialDelaySeconds: 15
466473
periodSeconds: 20
474+
successThreshold: 1
475+
timeoutSeconds: 1
467476
name: envoy-gateway
468477
ports:
469478
- containerPort: 18000
@@ -480,8 +489,9 @@ spec:
480489
httpGet:
481490
path: /readyz
482491
port: 8081
483-
initialDelaySeconds: 5
484492
periodSeconds: 10
493+
successThreshold: 1
494+
timeoutSeconds: 1
485495
resources:
486496
limits:
487497
memory: 1024Mi

test/helm/gateway-helm/control-plane-with-pdb.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,21 @@ spec:
441441
value: cluster.local
442442
image: docker.io/envoyproxy/gateway-dev:latest
443443
imagePullPolicy: Always
444+
startupProbe:
445+
failureThreshold: 30
446+
httpGet:
447+
path: /healthz
448+
port: 8081
449+
periodSeconds: 1
450+
successThreshold: 1
451+
timeoutSeconds: 1
444452
livenessProbe:
445453
httpGet:
446454
path: /healthz
447455
port: 8081
448-
initialDelaySeconds: 15
449456
periodSeconds: 20
457+
successThreshold: 1
458+
timeoutSeconds: 1
450459
name: envoy-gateway
451460
ports:
452461
- containerPort: 18000
@@ -463,8 +472,9 @@ spec:
463472
httpGet:
464473
path: /readyz
465474
port: 8081
466-
initialDelaySeconds: 5
467475
periodSeconds: 10
476+
successThreshold: 1
477+
timeoutSeconds: 1
468478
resources:
469479
limits:
470480
memory: 1024Mi

test/helm/gateway-helm/default-config.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,21 @@ spec:
426426
value: cluster.local
427427
image: docker.io/envoyproxy/gateway-dev:latest
428428
imagePullPolicy: Always
429+
startupProbe:
430+
failureThreshold: 30
431+
httpGet:
432+
path: /healthz
433+
port: 8081
434+
periodSeconds: 1
435+
successThreshold: 1
436+
timeoutSeconds: 1
429437
livenessProbe:
430438
httpGet:
431439
path: /healthz
432440
port: 8081
433-
initialDelaySeconds: 15
434441
periodSeconds: 20
442+
successThreshold: 1
443+
timeoutSeconds: 1
435444
name: envoy-gateway
436445
ports:
437446
- containerPort: 18000
@@ -448,8 +457,9 @@ spec:
448457
httpGet:
449458
path: /readyz
450459
port: 8081
451-
initialDelaySeconds: 5
452460
periodSeconds: 10
461+
successThreshold: 1
462+
timeoutSeconds: 1
453463
resources:
454464
limits:
455465
memory: 1024Mi

test/helm/gateway-helm/deployment-annotations.out.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,21 @@ spec:
430430
value: cluster.local
431431
image: docker.io/envoyproxy/gateway-dev:latest
432432
imagePullPolicy: Always
433+
startupProbe:
434+
failureThreshold: 30
435+
httpGet:
436+
path: /healthz
437+
port: 8081
438+
periodSeconds: 1
439+
successThreshold: 1
440+
timeoutSeconds: 1
433441
livenessProbe:
434442
httpGet:
435443
path: /healthz
436444
port: 8081
437-
initialDelaySeconds: 15
438445
periodSeconds: 20
446+
successThreshold: 1
447+
timeoutSeconds: 1
439448
name: envoy-gateway
440449
ports:
441450
- containerPort: 18000
@@ -452,8 +461,9 @@ spec:
452461
httpGet:
453462
path: /readyz
454463
port: 8081
455-
initialDelaySeconds: 5
456464
periodSeconds: 10
465+
successThreshold: 1
466+
timeoutSeconds: 1
457467
resources:
458468
limits:
459469
memory: 1024Mi

0 commit comments

Comments
 (0)