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

Creating a LoadBalancer Service fails with `exceeded quota: object-counts, requested: services.loadbalancers=1, used: services.loadbalancers=2, limited: services.loadbalancers=2`.

BeginnerTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → An object-count quota limits how many cloud load balancers a team may create (they cost money).

Diagnose →

kubectl get svc -n web --field-selector spec.type=LoadBalancer
kubectl describe resourcequota object-counts -n web

Fix → Expose the service through the shared Ingress or Gateway instead, or delete an unused LoadBalancer Service, or request a quota increase.

Prevent → Default to shared ingress; reserve dedicated LBs for non-HTTP protocols.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

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