How do you inspect effective scheduling decisions and why a Pod landed on a node?
AdvancedProductionRapid-Fire Commands
Answer
kubectl get pod web-0 -o wide
kubectl get events --field-selector involvedObject.name=web-0
kubectl describe node <node> | sed -n '/Taints/,/Allocated resources/p'
kubectl get pod web-0 -o jsonpath='{.spec.affinity}{"\n"}{.spec.tolerations}'
For deep dives raise scheduler verbosity (-v=10) or use the scheduler simulator.
More on Rapid-Fire Commands
How do you list all Pods across namespaces with node and IP?BeginnerHow do you find why a Pod is Pending or not starting?BeginnerHow do you scale a Deployment or StatefulSet imperatively?BeginnerHow do you get a shell into a running container and run a one-off Pod?BeginnerHow do you see all resources and their short names?BeginnerHow do you generate YAML for a resource without creating it?Beginner