Skip to content

Commit 5d07211

Browse files
committed
add probe (#3133)
1 parent 0aa39e8 commit 5d07211

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

yamls/webhook.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ spec:
4444
- mountPath: /tmp/k8s-webhook-server/serving-certs
4545
name: cert
4646
readOnly: true
47+
ports:
48+
- containerPort: 8443
49+
name: https
50+
protocol: TCP
51+
livenessProbe:
52+
failureThreshold: 3
53+
httpGet:
54+
path: /validating
55+
port: 8443
56+
scheme: HTTPS
57+
initialDelaySeconds: 60
58+
periodSeconds: 10
59+
successThreshold: 1
60+
timeoutSeconds: 1
61+
readinessProbe:
62+
failureThreshold: 3
63+
httpGet:
64+
path: /validating
65+
port: 8443
66+
scheme: HTTPS
67+
initialDelaySeconds: 5
68+
periodSeconds: 5
69+
successThreshold: 1
70+
timeoutSeconds: 1
4771
volumes:
4872
- name: cert
4973
secret:

0 commit comments

Comments
 (0)