Oracle Cloud Platform Data Integration 2020 Specialist — Question 19
You created a pod called "nginx" and its state is set to Pending.
Which command can you run to see the reason why the "nginx" pod is in the pending state? (Choose the best answer.)
Answer options
- A. kubectl logs pod nginx
- B. kubectl describe pod nginx
- C. kubectl get pod nginx
- D. Through the Oracle Cloud Infrastructure Console
Correct answer: B
Explanation
The correct answer is B, as 'kubectl describe pod nginx' provides detailed information about the pod, including events that explain why it is in the Pending state. Option A, 'kubectl logs pod nginx', shows logs for the pod but does not provide state information. Option C, 'kubectl get pod nginx', gives a brief overview of the pod but lacks the detailed explanation needed. Option D, checking the Oracle Cloud Infrastructure Console, may not give the specific reason for the pod's state.