VCP-CMA 2024 Question 148
Single answerYou are troubleshooting a VMware Aria Automation Appliance and need to verify the current status of pods running on the Kubernetes cluster deployed as part of the appliance. Which 'kubectl' command would you use to achieve this?
- A
kubectl get pods -A
- B
kubectl describe cluster
- C
kubectl exec -it pod-name -- bash
- D
kubectl delete pod pod-name
Show answer and explanation
Correct answer: A
Explanation
The 'kubectl get pods -A' command is the most appropriate option to verify the status of all pods across all namespaces in a Kubernetes cluster, including those deployed as part of the VMware Aria Automation Appliance. It is a fundamental troubleshooting step for understanding the health and state of the pods within the appliance.
- A. Correct.
This command lists all pods across all namespaces in the Kubernetes cluster, which is essential for checking the status of the pods within the VMware Aria Automation Appliance.
- B. Incorrect.
This command provides detailed information about the cluster itself, not the pods. It is not relevant for verifying pod status.
- C. Incorrect.
This command is used to execute commands inside a running pod's container. While it allows interaction with pods, it is not used for listing or verifying their status.
- D. Incorrect.
This command deletes a specific pod. It is not used for checking the status of pods and could disrupt the appliance's functionality if used incorrectly.