`kubectl` commands intermittently fail with `the server has received too many requests and has temporarily limited your access`.
AdvancedTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer
Likely causes → API Priority and Fairness is rejecting requests (HTTP 429) because a flow schema's priority level is saturated. A misbehaving controller, operator or script listing all Pods in a loop usually floods it.
Diagnose →
kubectl get flowschemas
kubectl get prioritylevelconfigurations
kubectl get --raw /metrics | grep apiserver_flowcontrol_rejected_requests_total | sort -t' ' -k2 -n | tail
# Top clients by user agent from the audit log or apiserver_request_total{...} by client
Fix → Find and fix the noisy client (add informers/caching, backoff, smaller list pages). If a critical controller is being starved, give it a dedicated FlowSchema and priority level.
Prevent → Monitor APF rejections and per-client request rates; require operators to use watch/informers, not polling.
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