From 01c5d362ad494f49fb4830da923ee2ddc7fca4b1 Mon Sep 17 00:00:00 2001 From: bobz965 Date: Mon, 14 Aug 2023 10:40:06 +0800 Subject: [PATCH] add probe (#3133) --- yamls/webhook.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/yamls/webhook.yaml b/yamls/webhook.yaml index 11dd4751a0a..8270aa08b96 100644 --- a/yamls/webhook.yaml +++ b/yamls/webhook.yaml @@ -44,6 +44,30 @@ spec: - mountPath: /tmp/k8s-webhook-server/serving-certs name: cert readOnly: true + ports: + - containerPort: 8443 + name: https + protocol: TCP + livenessProbe: + failureThreshold: 3 + httpGet: + path: /validating + port: 8443 + scheme: HTTPS + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + readinessProbe: + failureThreshold: 3 + httpGet: + path: /validating + port: 8443 + scheme: HTTPS + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 1 volumes: - name: cert secret: