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 4 Question 89 Discussion

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

Check to see how many worker nodes are ready (not including nodes tainted NoSchedule) and write the number to /opt/KUCC00104/kucc00104.txt.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Theron
3 months ago
Not sure if I trust those numbers...
upvoted 0 times
...
Yvette
3 months ago
Totally agree, 5 seems low for our setup.
upvoted 0 times
...
Mari
4 months ago
I thought it would be more than that.
upvoted 0 times
...
Ludivina
4 months ago
Wait, are we excluding tainted nodes? That changes things!
upvoted 0 times
...
Tegan
4 months ago
Just checked, there are 5 worker nodes ready!
upvoted 0 times
...
Lashaun
4 months ago
I think we need to write the output to a file using `echo` or something similar, but I’m not clear on the full command sequence.
upvoted 0 times
...
Johnathon
4 months ago
I believe we can use a combination of `kubectl` commands and `grep` to get the count, but I might be mixing up the syntax.
upvoted 0 times
...
Iola
5 months ago
I remember practicing a similar question where we had to count nodes, but I can't recall the exact command for excluding tainted ones.
upvoted 0 times
...
Katheryn
5 months ago
I think we need to use `kubectl get nodes` to check the status, but I'm not sure how to filter out the tainted nodes.
upvoted 0 times
...
Carri
5 months ago
This seems simple enough. I'll just run `kubectl get nodes` and pipe the output through `grep` to count the ready nodes, excluding the tainted ones. Then I'll use `echo` to write the result to the file.
upvoted 0 times
...
Danica
5 months ago
Okay, I think I've got this. I'll use `kubectl get nodes -o wide` to see the node status, then count the ones that aren't tainted. Finally, I'll use `echo` to write the number to the file.
upvoted 0 times
...
Tresa
5 months ago
Hmm, I'm not sure how to check for tainted nodes. I'll need to look up the command for that. And where exactly do I need to write the output to?
upvoted 0 times
...
Vanesa
5 months ago
This looks straightforward. I'll start by checking the node status with `kubectl get nodes` and filtering out the tainted nodes. Then I'll write the count to the specified file.
upvoted 0 times
...
Aretha
6 months ago
Okay, so I need to check the worker nodes that are ready, excluding the ones with the NoSchedule taint, and write the count to a specific file. Sounds straightforward enough.
upvoted 0 times
...

Save Cancel