Interview Prep/Kubernetes/Control plane, RBAC, webhooks and autoscaling

Creating a Certificate fails with `failed calling webhook "webhook.cert-manager.io": ... no endpoints available for service "cert-manager-webhook"`.

IntermediateTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer

Likely causes → The webhook Service has no ready Pods: cert-manager just installed and still starting, webhook Pod crashing, or a selector mismatch after a partial upgrade.

Diagnose →

kubectl get pods -n cert-manager
kubectl logs -n cert-manager deploy/cert-manager-webhook --tail=50
kubectl get endpointslices -n cert-manager -l kubernetes.io/service-name=cert-manager-webhook

Fix → Wait for or fix the webhook Pod. In pipelines, wait before creating resources:

kubectl wait --for=condition=Available deploy/cert-manager-webhook -n cert-manager --timeout=120s

Prevent → Ordering in GitOps (sync waves) so CRs are applied after the operator and its webhook are healthy.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Control plane, RBAC, webhooks and autoscaling