U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 9 Question 45 Discussion

Get IP address of the pod -- ''nginx-dev''
A) Explanation: Kubect1 get po -o wide Using JsonPath kubect1 get pods -o=jsonpath='{range .items[*]}{.metadata.name}{'\t'}{.status.podIP}{'\n'}{end}'

Linux Foundation CKA Exam - Topic 9 Question 45 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 45
Topic #: 9
[All CKA Questions]

Get IP address of the pod -- ''nginx-dev''

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Catina
7 months ago
Totally agree, JSONPath is super handy for this!
upvoted 0 times
...
Lai
7 months ago
I prefer using `kubectl describe pod nginx-dev` for details.
upvoted 0 times
...
Giuseppe
7 months ago
Wait, can you really get the IP like that? Sounds too easy!
upvoted 0 times
...
Kerry
8 months ago
That JSONPath command looks solid!
upvoted 0 times
...
Paulina
8 months ago
Just use `kubectl get pods -o wide` for a quick view!
upvoted 0 times
...
Maira
8 months ago
The JsonPath format looks familiar, but I can't recall if we need to specify the pod name directly in the command or if it retrieves all pods by default.
upvoted 0 times
...
France
8 months ago
I feel like I might have mixed up the commands; was it `kubectl` or `kubect1`? I hope I don't make a typo during the exam.
upvoted 0 times
...
Isadora
8 months ago
I remember practicing a similar question, and I think the `-o wide` option shows more details, including the IP address.
upvoted 0 times
...
Malcom
9 months ago
I think we need to use `kubectl get pods` to find the IP, but I'm not sure about the exact syntax for JsonPath.
upvoted 0 times
...
Narcisa
9 months ago
Okay, I've got this. Management by objectives assumes the team has a self-fulfillment philosophy and is receptive to an unstructured environment. I'm going with option A.
upvoted 0 times
...
Ceola
9 months ago
I'm a bit confused by this question. The options seem to cover a range of project management activities, but I'm not sure which one specifically relates to the organizational level. I'll need to review my notes and try to figure this out.
upvoted 0 times
...

Save Cancel