Skip to content

Commit 977fffb

Browse files
stubbiclaude
andcommitted
fix(chart): TCP readiness/liveness probes on webhook port
Pod readiness now reflects webhook listener readiness, not just container start. This fixes the e2e race where helm --wait returned Ready before the webhook server bound to :9443 and the first kubectl apply failed with connection refused. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a895b88 commit 977fffb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

charts/hermes-operator/templates/deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ spec:
4343
protocol: TCP
4444
{{- end }}
4545
{{- if .Values.webhook.enabled }}
46+
readinessProbe:
47+
tcpSocket:
48+
port: webhook
49+
initialDelaySeconds: 2
50+
periodSeconds: 2
51+
failureThreshold: 30
52+
livenessProbe:
53+
tcpSocket:
54+
port: webhook
55+
initialDelaySeconds: 15
56+
periodSeconds: 20
57+
{{- end }}
58+
{{- if .Values.webhook.enabled }}
4659
volumeMounts:
4760
- name: webhook-cert
4861
mountPath: /tmp/k8s-webhook-server/serving-certs

0 commit comments

Comments
 (0)