- Take me to Video Tutorial
Solutions to Practice Test - Scheduling
-
Run the command 'kubectl get pods --selector env=dev'
$ kubectl get pods --selector env=dev
-
Run the command 'kubectl get pods --selector bu=finance'
$ kubectl get pods --selector bu=finance
-
Run the command 'kubectl get all --selector env=prod'
$ kubectl get all --selector env=prod
-
Run the command 'kubectl get all --selector env=prod,bu=finance,tier=frontend'
$ kubectl get all --selector env=prod,bu=finance,tier=frontend
-
Set the labels on the pod definition template to frontend
$ vi replicaset-defination.yaml $ kubectl create -f replicaset-defination.yaml