Understanding Kubernetes Scheduler
1. Overview The kube-scheduler is the matchmaker of Kubernetes. Its job is to find the best Node for every newly created Pod. It considers: Resource availability: CPU/Memory/Storage. Affinity and Anti-affinity: Do Pods want to be together or apart? Taints and Tolerations: Should a Node repel certain Pods? Priorities: Which Pod is more important? 2. Resource Management Inside the resources section of a PodSpec: Requests: What the container needs. The scheduler uses this value to find a node. Limits: What the container is allowed to use. Enforced at runtime by the Cgroup. LimitRange: A cluster resource to enforce default, min, and max requests/limits for all Pods in a namespace. ...