Interview Prep/Kubernetes/Cluster operations: certs, drains, rollouts and quotas

Pods are not created and the ReplicaSet events show `Error creating: pods "web-5f9c-" is forbidden: exceeded quota: compute-quota, requested: requests.cpu=500m, used: requests.cpu=3800m, limited: requests.cpu=4`.

BeginnerTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → The namespace ResourceQuota is used up. The new Pod would push total CPU requests over the limit.

Diagnose →

kubectl describe resourcequota compute-quota -n web
kubectl get pods -n web -o custom-columns=NAME:.metadata.name,CPU:.spec.containers[*].resources.requests.cpu

Fix → Free quota (scale down or delete unused workloads, completed Pods with requests do not count but stuck ones do), right-size requests, or raise the quota after approval.

Prevent → Alert at 80% quota usage per namespace; review requests regularly.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Cluster operations: certs, drains, rollouts and quotas