BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Linux Foundation Discussions
Exam CKA Topic 4 Question 74 Discussion
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
A
Explanation:
kubect1 get pods -o=jsonpath='{range
.items[*]}{.metadata.name}{'\t'}{.status.podIP}{'\n'}{end}'
Show Suggested Answer
Hide Answer
Suggested Answer:
A
by
Roy
at
Sep 16, 2024, 10:08 PM
Limited Time Offer
25%
Off
Get Premium CKA Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Jenise
26 days agoDorothea
28 days agoGladys
7 days agoFannie
1 months agoAleta
1 months agoCyndy
22 days agoMitzie
27 days agoWhitley
28 days agoJonelle
1 months agoRichelle
2 months agoJohnetta
2 months agoYuki
2 months agoRonald
21 days agoNoble
1 months agoTerry
1 months agoJudy
1 months agoFannie
2 months ago