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