- Take me to Practice Test
-
Run the command
kubectl get podsand count the number of pods.Details
$ kubectl get pods -
Run the command
kubectl run nginx --image=nginxDetails
$ kubectl run nginx --image=nginx -
Run the command
kubectl get podsand count the number of pods.Details
$ kubectl get pods -
Run the command **
kubectl describe pod newpods**' look under the containers section.Details
$ kubectl describe pod newpods -
Run the command
kubectl describe pod newpodsorkubectl get pods -o widelook under the containers section.Details
$ kubectl describe pod newpods -
Run the command
kubectl describe pod webappand look under the Containers section (or) Runkubectl get podsand look under the READY sectionDetails
$ kubectl describe pod webapp -
Run the command
kubectl describe pod webappand look under the containers section.Details
$ kubectl describe pod webapp -
Run the command
kubectl describe pod webappand look under the containers section.Details
$ kubectl describe pod webapp -
Run the command
kubectl describe pod webappand look under the events section.Details
$ kubectl describe pod webapp -
Run the command
kubectl get podsDetails
$ kubectl get pods -
Run the command
kubectl delete pod webappDetails
$ kubectl delete pod webapp -
Create a pod definition YAML file and use it to create a POD or use the command
kubectl run redis --image=redis123Details
$ kubectl run redis --image=redis123 -
Now fix the image on the pod to
redis. Update the pod-definition file and usekubectl applycommand or usekubectl edit pod rediscommand.Details
$ kubectl apply $ kubectl edit pod redis