Juniper
JN0-214 · Question #43
You want to view pods with their IP addresses in OpenShift. Which command would you use to accomplish this task?
The correct answer is B. oc get pods -o wide. The oc get pods -o wide command displays detailed information about pods, including their names, statuses, and IP addresses . The -o wide flag extends the output to include additional details like pod IPs and node assignments.
Cloud Fundamentals
Question
You want to view pods with their IP addresses in OpenShift. Which command would you use to accomplish this task?
Options
- Aoc qet pods -o vaml
- Boc get pods -o wide
- Coc qet all
- Doc get pods
How the community answered
(39 responses)- A10% (4)
- B82% (32)
- C5% (2)
- D3% (1)
Explanation
The oc get pods -o wide command displays detailed information about pods, including their names, statuses, and IP addresses . The -o wide flag extends the output to include additional details like pod IPs and node assignments.
Topics
#OpenShift CLI#oc get pods#pod IP addresses#kubectl commands
Community Discussion
No community discussion yet for this question.