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 CKA Exam - Topic 1 Question 98 Discussion

SIMULATIONPrint pod name and start time to ''/opt/pod-status'' file
A) See the solution below

Linux Foundation CKA Exam - Topic 1 Question 98 Discussion

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

SIMULATION

Print pod name and start time to ''/opt/pod-status'' file

Show Suggested Answer Hide Answer
Suggested Answer: A

kubect1 get pods -o=jsonpath='{range

items[*]}{.metadata.name}{'t'}{.status.podIP}{'n'}{end}'


Contribute your Thoughts:

0/2000 characters
Ettie
2 days ago
I think it’s straightforward.
upvoted 0 times
...
Shayne
8 days ago
This question is tricky.
upvoted 0 times
...
Irene
13 days ago
This is exactly what I needed, thanks!
upvoted 0 times
...
Dortha
18 days ago
I thought we needed more steps for logging.
upvoted 0 times
...
Sage
23 days ago
Wait, are we sure the file path is correct?
upvoted 0 times
...
Agustin
28 days ago
Totally agree, this is straightforward!
upvoted 0 times
...
Tarra
1 month ago
Just a simple print command, right?
upvoted 0 times
...
Rolande
1 month ago
I practiced something like this last week, but I can't recall if we need to use JSON or YAML output for the pod details.
upvoted 0 times
...
Cyril
3 months ago
I'm a bit confused about how to access the pod's start time. Is it part of the pod's metadata?
upvoted 0 times
...
Glendora
3 months ago
I remember a similar question where we had to redirect output to a file. I think we can use `>` for that, right?
upvoted 0 times
...
Stefany
3 months ago
I think we need to use the `kubectl` command to get the pod name and start time, but I'm not entirely sure how to format the output correctly.
upvoted 0 times
...

Save Cancel