Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 927 Bytes

03-Practice-Test-Manual-Scheduling.md

File metadata and controls

54 lines (37 loc) · 927 Bytes

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