Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

How do you troubleshoot slow `kubectl` commands?

IntermediateScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → Every command takes 10 seconds.

What I'd do →

  1. kubectl get pods -v=8 to see request timing
  2. Check the kubeconfig exec plugin (aws token) latency
  3. Check API server latency and discovery cache
  4. Check network and VPN
  5. Clear ~/.kube/cache

Why → Often the credential plugin or discovery is slow, not the cluster.

Interview tip → Use -v verbosity.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents