BlackFriday 2024! 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 4 Question 74 Discussion

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

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Jenise
26 days ago
You know, if you want to print the pod name and start time, you should probably use a command that, you know, prints the pod name and start time.
upvoted 0 times
...
Dorothea
28 days ago
Elementary, my dear Watson! The answer is clearly flawed, as it does not account for the start time. Elementary!
upvoted 0 times
Gladys
7 days ago
You're right, the answer only provides the pod name and IP, not the start time.
upvoted 0 times
...
...
Fannie
1 months ago
Yes, it's 'kubect1 get pods -o=jsonpath='{range .items[*]}{.metadata.name}{\'\\t\'}{.status.startTime}{\'\\n\'}{end}'
upvoted 0 times
...
Aleta
1 months ago
Hold on, shouldn't we be using 'kubectl' instead of 'kubect1'? I think there might be a typo in the answer.
upvoted 0 times
Cyndy
22 days ago
Thanks for pointing that out, it should definitely be 'kubectl' in the command.
upvoted 0 times
...
Mitzie
27 days ago
Yes, you are correct. It should be 'kubectl' instead of 'kubect1'. Good catch!
upvoted 0 times
...
Whitley
28 days ago
You're right, it should be 'kubectl' instead of 'kubect1'. Thanks for catching that!
upvoted 0 times
...
...
Jonelle
1 months ago
This looks like it could work, but I'm not a fan of using that many nested commands. Isn't there a simpler way to do this?
upvoted 0 times
...
Richelle
2 months ago
I agree, but I remember the command to print pod name and start time.
upvoted 0 times
...
Johnetta
2 months ago
Hmm, I'm not sure this is the best way to get the pod name and start time. Isn't there a more efficient command we can use?
upvoted 0 times
...
Yuki
2 months ago
Wait, we need to print the pod name and start time, not just the pod IP. This answer is missing key information.
upvoted 0 times
Ronald
21 days ago
Great, now we have the pod name and start time saved to the '/opt/pod-status' file.
upvoted 0 times
...
Noble
1 months ago
Let's try running it and see if it works.
upvoted 0 times
...
Terry
1 months ago
We can use 'kubectl get pods -o=jsonpath={range .items[*]}{.metadata.name}{'\t'}{.status.startTime}{'\n'}{end}' to print the pod name and start time.
upvoted 0 times
...
Judy
1 months ago
That command will give us the information we need.
upvoted 0 times
...
...
Fannie
2 months ago
I think this question is tricky.
upvoted 0 times
...

Save Cancel