Skip to content

Add a readiness probe to the calico-webhooks deployment - #5138

Merged
caseydavenport merged 3 commits into
tigera:masterfrom
caseydavenport:casey-webhook-readiness
Aug 10, 2026
Merged

Add a readiness probe to the calico-webhooks deployment#5138
caseydavenport merged 3 commits into
tigera:masterfrom
caseydavenport:casey-webhook-readiness

Conversation

@caseydavenport

@caseydavenport caseydavenport commented Aug 4, 2026

Copy link
Copy Markdown
Member

Rolling the calico-webhooks deployment could briefly reject policy writes. The webhook pod joins the Service endpoints as soon as its container starts, before it is actually serving, and the tiered RBAC webhook fails closed, so a policy write that lands in that window gets rejected.

This adds a readiness probe to the webhook container so the pod only takes traffic once it is serving, matching the probe already present in the Calico helm chart.

Related: CORE-13250

Fixes a brief window during a calico-webhooks rollout where policy writes could be rejected.

The pod only joins the webhook Service endpoints once its TLS listener is serving.

@electricjesus electricjesus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks pretty solid to me! just a couple of comments..

Comment thread pkg/render/webhooks/render.go
Comment thread pkg/render/webhooks/render_test.go
@caseydavenport
caseydavenport merged commit 180c2dc into tigera:master Aug 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants