ExamGecko
Question list
Search
Search

List of questions

Search

Question 58 - CKA discussion

Report
Export

Score: 4%

Task

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

A.
See the solution below.
Answers
A.
See the solution below.
Suggested answer: A

Explanation:

Solution:

kubectl describe nodes | grep ready|wc -l

kubectl describe nodes | grep -i taint | grep -i noschedule |wc -l

echo 3 > /opt/KUSC00402/kusc00402.txt

# kubectl get node |

grep -

i

ready |

wc -

l

# taints?noSchedule

kubectl describe nodes | grep -i taints | grep -i noschedule |wc -l

#e

cho 2 > /opt/KUSC00402/kusc00402.txt

asked 18/09/2024
Dmitrii Nikolaevich
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first