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

Linux Foundation Exam CKA Topic 2 Question 77 Discussion

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

List all the pods showing name and namespace with a json path expression

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Frederica
19 days ago
Is it just me, or does 'jsonpath' sound like the name of a hip new programming language?
upvoted 0 times
...
Malinda
21 days ago
Wait, do I need to include the curly braces around the field names? I always get that mixed up.
upvoted 0 times
...
Marla
24 days ago
Easy peasy, I got this! Kubectl is my middle name.
upvoted 0 times
Pearline
19 days ago
Nice job! Kubectl commands can be really powerful.
upvoted 0 times
...
...
Beckie
2 months ago
Okay, let's see if I can remember the syntax. Is it .items[*].metadata['name', 'namespace']?
upvoted 0 times
Billi
12 days ago
Oh, I see. Thanks for the correction!
upvoted 0 times
...
Meaghan
15 days ago
No, it's actually .items[*]['metadata.name', 'metadata.namespace']
upvoted 0 times
...
...
Marta
2 months ago
It's kubectl get pods -o=jsonpath=\'{.items[*]['metadata.name', 'metadata.namespace']}\'
upvoted 0 times
...
Casey
2 months ago
Wow, a JSON path expression! I feel like a coding wizard just reading that.
upvoted 0 times
Rolland
5 days ago
User1: I'll have to try it out next time I need to get specific information from my pods.
upvoted 0 times
...
Eve
16 days ago
User3: Exactly! It's a useful tool for customizing the output of kubectl commands.
upvoted 0 times
...
Vashti
1 months ago
User2: Oh, I see. So you can use it to get the name and namespace of pods with that command.
upvoted 0 times
...
Kathrine
1 months ago
User1: It's not as complicated as it sounds, just a way to extract specific data from JSON objects.
upvoted 0 times
...
...
Nana
2 months ago
What is it?
upvoted 0 times
...
Marta
2 months ago
I agree, but I remember the command for that.
upvoted 0 times
...
Nana
2 months ago
I think that question is quite tricky.
upvoted 0 times
...

Save Cancel