On a 3-member etcd cluster after losing two control-plane nodes, the API server returns `etcdserver: no leader` for everything.
AdvancedTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer
Likely causes → Quorum is lost. With 3 members, 2 must be healthy. One survivor cannot elect a leader, so all reads and writes fail. Running workloads keep running, but nothing can change.
Diagnose →
etcdctl --endpoints=https://10.0.0.11:2379,https://10.0.0.12:2379,https://10.0.0.13:2379 \
--cacert=... --cert=... --key=... endpoint health
etcdctl ... member list -w table
Fix → Bring a lost member back if its disk survived. Otherwise restore: take a snapshot from the survivor (or use the latest backup), etcdutl snapshot restore into a new data dir, start a single-member cluster with --force-new-cluster, then add members back one by one.
Prevent → Members spread across zones, odd member counts (3 or 5), and tested snapshot backups every few hours.
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`.AdvancedCreating a Certificate fails with `failed calling webhook "webhook.cert-manager.io": ... no endpoints available for service "cert-manager-webhook"`.Intermediate