Skip to content

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

Open
caseydavenport wants to merge 1 commit into
tigera:masterfrom
caseydavenport:casey-webhook-readiness
Open

Add a readiness probe to the calico-webhooks deployment#5138
caseydavenport wants to merge 1 commit into
tigera:masterfrom
caseydavenport:casey-webhook-readiness

Conversation

@caseydavenport

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.

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.
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.

2 participants