Skip to content

Commit 3238922

Browse files
authored
Add liveness/readiness probe to operator deployment (#245)
1 parent 19a7548 commit 3238922

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

charts/amazon-cloudwatch-observability/templates/operator-deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ spec:
4545
- containerPort: {{ .Values.manager.ports.containerPort }}
4646
name: webhook-server
4747
protocol: TCP
48+
livenessProbe:
49+
httpGet:
50+
path: /healthz
51+
port: 8081
52+
initialDelaySeconds: 15
53+
periodSeconds: 20
54+
readinessProbe:
55+
httpGet:
56+
path: /readyz
57+
port: 8081
58+
initialDelaySeconds: 5
59+
periodSeconds: 10
4860
resources: {{ toYaml .Values.manager.resources | nindent 10 }}
4961
volumeMounts:
5062
- mountPath: /tmp/k8s-webhook-server/serving-certs

0 commit comments

Comments
 (0)