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

Pod creation fails with `failed quota: compute-quota: must specify limits.cpu for: app; requests.memory for: app`.

BeginnerTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → When a ResourceQuota constrains limits.cpu or requests.memory, every new Pod in the namespace must declare those values. Init containers and injected sidecars count too.

Diagnose →

kubectl get resourcequota -n web -o yaml | yq '.items[].spec.hard'
kubectl get limitrange -n web

Fix → Add resources to every container, or add a LimitRange with default and defaultRequest so missing values are filled in.

Prevent → Pair every ResourceQuota with a LimitRange.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

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