Difference between revisions of "Kubernetes scheduler"
Jump to navigation
Jump to search
(26 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<code>[[kube-scheduler]]</code> is the default scheduler for Kubernetes and runs as part of the [[control plane]]. | <code>[[kube-scheduler]]</code> is the default scheduler for Kubernetes and runs as part of the [[control plane]]. | ||
+ | * https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/ | ||
+ | * Logs: <code>[[/var/log/kube-scheduler.log]]</code> - Scheduler (<code>[[kube-scheduler]]</code>), responsible for making scheduling decisions | ||
+ | |||
+ | * [[Kubernetes (snap install)|Installation]]: <code> [[snap install]] [[kube-scheduler]]</code> | ||
== Activities == | == Activities == | ||
* [[CKA v1.18]]: Know how to configure the Kubernetes scheduler | * [[CKA v1.18]]: Know how to configure the Kubernetes scheduler | ||
+ | * [[CKA v1.18: Use label selectors to schedule Pods]]: <code>[[kubectl label nodes]]</code> and <code>[[nodeSelector]]</code> | ||
+ | * Read about Kubernetes scheduler and [[Karpenter]] https://github.com/aws/karpenter/issues/1528 | ||
+ | * Read about [[Resource Management for Pods and Containers]] | ||
== Related terms == | == Related terms == | ||
* <code>[[PodFitsResources]]</code> filter | * <code>[[PodFitsResources]]</code> filter | ||
+ | * <code>[[nodeSelector]]</code> | ||
* <code>[[Kind]]: [[Pod]]</code> | * <code>[[Kind]]: [[Pod]]</code> | ||
+ | * <code>[[kubectl get pods]] -o wide</code> | ||
+ | * <code>[[kubectl logs]]</code> | ||
+ | * <code>[[CronJobs]]</code> | ||
+ | * <code>[[default-scheduler]]</code> | ||
+ | * <code>[[FailedScheduling]]</code> | ||
+ | * [[Karpenter]] | ||
+ | * [[Kubernetes pod affinity and anti affinity]] | ||
+ | |||
+ | 0/11 [[nodes are available]]: 1 [[Insufficient cpu]], 1 Too many pods, 10 nodes(s) didn't match Pod's node [[affinity]]/selector | ||
+ | 0/2 nodes are available: 1 Too many pods, 1 nodes(s) didn't match Pod's node [[affinity]]/selector | ||
== See also == | == See also == | ||
− | * {{K8s}} | + | * {{kube-scheduler}} |
+ | * {{FailedScheduling}} | ||
+ | * {{Control Plane}} | ||
+ | * {{Kubernetes scheduler}} | ||
+ | * {{K8s affinity}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 07:18, 30 May 2024
kube-scheduler
is the default scheduler for Kubernetes and runs as part of the control plane.
- Logs:
/var/log/kube-scheduler.log
- Scheduler (kube-scheduler
), responsible for making scheduling decisions
Activities[edit]
- CKA v1.18: Know how to configure the Kubernetes scheduler
- CKA v1.18: Use label selectors to schedule Pods:
kubectl label nodes
andnodeSelector
- Read about Kubernetes scheduler and Karpenter https://github.com/aws/karpenter/issues/1528
- Read about Resource Management for Pods and Containers
Related terms[edit]
PodFitsResources
filternodeSelector
Kind: Pod
kubectl get pods -o wide
kubectl logs
CronJobs
default-scheduler
FailedScheduling
- Karpenter
- Kubernetes pod affinity and anti affinity
0/11 nodes are available: 1 Insufficient cpu, 1 Too many pods, 10 nodes(s) didn't match Pod's node affinity/selector 0/2 nodes are available: 1 Too many pods, 1 nodes(s) didn't match Pod's node affinity/selector
See also[edit]
kube-scheduler, /var/log/kube-scheduler.log
- FailedScheduling:
Insufficient cpu
,Insufficient memory
,timed out waiting for the condition
,unbound immediate PersistentVolumeClaims
- Kubernetes control plane,
Kubernetes components
,/etc/kubernetes/manifests/
- Kubernetes scheduler,
default-scheduler, FailedScheduling, kube-scheduler, /var/log/kube-scheduler.log
- Kubernetes pod affinity and anti affinity, Kubernetes Node Affinity,
default-scheduler, affinity:, NodeAffinity, spec.affinity.podAntiAffinity
Advertising: