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.
More on Control plane, RBAC, webhooks and autoscaling
A developer gets `Error from server (Forbidden): pods is forbidden: User "[email protected]" cannot list resource "pods" in API group "" in the namespace "payments"`.BeginnerA CI pipeline fails with `deployments.apps "api" is forbidden: User "system:serviceaccount:ci:deployer" cannot patch resource "deployments" in API group "apps" in the namespace "prod"`.BeginnerA user can `get pods` but `kubectl logs` fails with `cannot get resource "pods/log"` and `kubectl exec` fails with `cannot create resource "pods/exec"`.BeginnerCreating a RoleBinding fails with `is attempting to grant RBAC permissions not currently held`.IntermediateEvery `kubectl apply` fails with `Internal error occurred: failed calling webhook "validate.kyverno.svc-fail": failed to call webhook: Post "https://kyverno-svc.kyverno.svc:443/validate/fail?timeout=10s": context deadline exceeded`.AdvancedA webhook fails with `failed calling webhook ... tls: failed to verify certificate: x509: certificate signed by unknown authority`.Intermediate