Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.21 KB

19-Practice-Test-Multiple-Schedulers.md

File metadata and controls

54 lines (35 loc) · 1.21 KB

Practice Test - Multiple Schedulers

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