How would you troubleshoot a slow API server in a large cluster?
AdvancedProductionObservability & Day-2 Operations
Answer
Check apiserver_request_duration_seconds by verb/resource, APF queue wait times, etcd latency, and large LIST calls from misbehaving controllers (clients without watches, kubectl get -A loops, huge CRD lists). Use audit logs to find top callers, enable pagination/watch caches, fix noisy operators, defrag/compact etcd, and raise APF limits only after fixing the cause.
More on Observability & Day-2 Operations
What are the three pillars of observability and the standard tools on Kubernetes?BeginnerWhat is kube-state-metrics and how does it differ from metrics-server?BeginnerWhich alerts do you set up first on a cluster?BeginnerWhere do container logs live and how do you ship them?BeginnerWhat is the difference between `kubectl logs --previous` and `kubectl logs -f`?BeginnerWhat does a good runbook for a Kubernetes alert include?Beginner