Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware 5V0-23.20 Exam - Topic 3 Question 93 Discussion

Which kubectl command is used to list al pods in the current active namespace?
B) kubectl get pods
A) kubectl get nodes
C) kubectl get services
D) kubectl list pods

VMware 5V0-23.20 Exam - Topic 3 Question 93 Discussion

Actual exam question for VMware's 5V0-23.20 exam
Question #: 93
Topic #: 3
[All 5V0-23.20 Questions]

Which kubectl command is used to list al pods in the current active namespace?

Show Suggested Answer Hide Answer
Suggested Answer: B

Fetch all Pods in all namespaces using kubectl get pods --all-namespaces

Pods

Shortcode = po

List one or more pods

kubectl get pod

Delete a pod

kubectl delete pod

Display the detailed state of a pods

kubectl describe pod

Create a pod

kubectl create pod

Execute a command against a container in a pod

kubectl exec -c <container_name> <command>

Get interactive shell on a a single-container pod

kubectl exec -it /bin/sh

Display Resource usage (CPU/Memory/Storage) for pods

kubectl top pod

Add or update the annotations of a pod

kubectl annotate pod

Add or update the label of a pod

kubectl label pod


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel