Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.01 KB

19-Practice-Test-Multiple-Schedulers.md

File metadata and controls

44 lines (29 loc) · 1.01 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-master --namespace=kube-system'

    $ kubectl describe pod kube-scheduler-master --namespace=kube-system
    
  • Use the file at /etc/kubernetes/manifests/kube-scheduler.yaml to create your own scheduler. View answer file at /var/answers

    $ kubectl create -f 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