- Take me to Practice Test
Solutions to the deploments practice test
-
Run the command
kubectl get podsand count the number of pods.Details
$ kubectl get pods -
Run the command
kubectl get replicasetand count the number of ReplicaSets.Details
$ kubectl get replicaset (or) $ kubectl get rs -
Run the command
kubectl get deploymentand count the number of Deployments.Details
$ kubectl get deployment -
Run the command
kubectl get deploymentand count the number of Deployments.Details
$ kubectl get deployment -
Run the command
kubectl get replicasetand count the number of ReplicaSets.Details
$ kubectl get replicaset (or) $ kubectl get rs -
Run the command
kubectl get podsand count the number of PODs.Details
$ kubectl get pods -
Run the command
kubectl get deploymentand count the number of PODs.Details
$ kubectl get deployment -
Run the command
kubectl describe deploymentand look under the containers section.Details
$ kubectl describe deploymentAnother way
Details
$ kubectl get deployment -o wide -
Run the command
kubectl describe podsand look under the events section.Details
$ kubectl describe pods -
Run the command
kubectl describe podsand look under the events section.Details
$ kubectl describe pods -
The value for
kindis incorrect. It should beDeploymentwith a capitalD. Update the deployment defination and create the deployment.Details
$ kubectl create -f deployment-defination-1.yaml -
Run the command below command
Details
$ kubectl create deployment httpd-frontend --image=httpd:2.4-alpine $ kubectl scale deplyoment httpd-frontend --replicas=3