- Take me to Video Tutorial
In this section, we will take a look at multiple schedulers
- Download the binary
$ wget https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kube-scheduler
- To create a scheduler pod
$ kubectl create -f my-custom-scheduler.yaml
- To list the scheduler pods
$ kubectl get pods -n kube-system
-
Create a pod definition file and add new section called
schedulerName
and specify the name of the new schedulerapiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - image: nginx name: nginx schedulerName: my-custom-scheduler
-
To create a pod definition
$ kubectl create -f pod-definition.yaml
-
To list pods
$ kubectl get pods