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 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
Cyril
1 month 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
2 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
2 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