Why do Pods sometimes stay Pending and what does the autoscaler do about it?
IntermediateProductionAutoscaling, Capacity & Cost
Answer
kubectl describe pod events show FailedScheduling: 0/12 nodes are available: 3 Insufficient cpu, 9 node(s) had untolerated taint.... If requests simply do not fit, the autoscaler adds nodes; if the cause is an unsatisfiable selector, taint, affinity, or a PVC in another zone, adding nodes will not help.
kubectl get events --field-selector reason=FailedScheduling -A
More on Autoscaling, Capacity & Cost
How do you right-size requests and limits?BeginnerWhy does HPA need accurate CPU requests?BeginnerWhat are Spot instances good for on Kubernetes?BeginnerHow do you reduce Kubernetes cost quickly?BeginnerWhat is metrics-server and what does it not do?BeginnerWhat is a good default for the node size and why?Beginner