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

Pod creation is rejected with `Invalid value: "2Gi": must be less than or equal to memory limit of 1Gi` or `maximum memory usage per Container is 1Gi, but limit is 2Gi`.

BeginnerTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → A LimitRange in the namespace sets a max per container (or the request is higher than the limit after defaults are applied).

Diagnose →

kubectl describe limitrange -n web

Fix → Fit the container within the max, split the workload, or have the platform team raise the LimitRange max for that namespace.

Prevent → Publish namespace limits to teams; validate manifests against them in CI with a server-side dry run.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

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