- Take me to Practice Test
Solutions to practice test - multiple schedulers
-
Run the command 'kubectl get pods --namespace=kube-system'
$ kubectl get pods --namespace=kube-system
-
Run the command 'kubectl describe pod kube-scheduler-controlplane --namespace=kube-system'
$ kubectl describe pod kube-scheduler-controlplane --namespace=kube-system
-
Use the imperative command to create the configmap with option --from-file
$ kubectl create -n kube-system configmap my-scheduler-config --from-file=/root/my-scheduler-config.yaml
-
Use the file at /root/my-scheduler.yaml to create your own scheduler with correct image.
$ kubectl create -f /root/my-scheduler.yaml
-
Set schedulerName property on pod specification to the name of the new scheduler. File is located at /root/nginx-pod.yaml
master $ grep schedulerName /root/nginx-pod.yaml schedulerName: my-scheduler $ kubectl create -f /root/nginx-pod.yaml