Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.04 KB

03-Practice-Test-Manual-Scheduling.md

File metadata and controls

57 lines (38 loc) · 1.04 KB

Practice Test - Manual Scheduling

Solutions to Practice Test - Manual Scheduling

  • Run, kubectl create -f nginx.yaml

    $ kubectl create -f nginx.yaml
    
  • Run the command 'kubectl get pods' and check the status column

    $ kubectl get pods
    
  • Run the command 'kubectl get pods --namespace kube-system'

    $ kubectl get pods --namespace kube-system
    
  • Set nodeName property on the pod to node01 node

    $ vi nginx.yaml
    $ kubectl delete -f nginx.yaml
    $ kubectl create -f nginx.yaml
    
  • Set nodeName property on the pod to master node

    $ vi nginx.yaml
    $ kubectl delete -f nginx.yaml
    $ kubectl create -f nginx.yaml