Nothing is running behind the webhook's service
CommonThe webhook's pods are crash-looping, scaled to zero, unscheduled, or not ready yet after an install or a node failure. The API server finds the service but no endpoint to send the request to.
Confirm
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations kubectl get pods,endpointslices -n NAMESPACE
no endpoints available for service in the error, and the webhook's pods not Running and Ready
Fix
- Fix the webhook's pods first: read why they are not ready (kubectl describe pod, kubectl logs). A webhook is usually down for the same reasons any pod is.
- If the webhook blocks its own repair, a cluster admin can temporarily set that webhook's failurePolicy to Ignore, fix the pods, then set it back.