Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
From my understanding of the question:
-c command will count the occurrence, for example of 2 node with 1 tainted node
kubectl get nodes -o=custom-columns=NodeName:.metadata.name,TaintKey:.spec.taints[*].key,TaintValue:.spec.taints[*].value,TaintEffect:.spec.taints[*].effect| grep -c NoSchedule > to1.txt
cat to1.txt. # 1
I was able to accomplish this with the following command:
k get nodes --no-headers -o custom-columns=Name:.metadata.name,Taint:.spec.taints[*].effect,Ready:'{.status.conditions[?(@.reason == "KubeletReady")].status}' | grep -v NoSchedule | wc -l
you can remove the | wc -l to see the output
modified to pull type instead of True/False value so you get the ready output
k get nodes --no-headers -o custom-columns=Name:.metadata.name,Taint:.spec.taints[*].effect,Ready:'{.status.conditions[?(@.reason == "KubeletReady")].type}' | grep -v NoSchedule
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SijoTharakan
Highly Voted 1 year, 5 months agoleebug
10 months, 2 weeks agofrankja2
Highly Voted 6 months, 3 weeks agoplamennfs
Most Recent 3 weeks, 2 days agothanhnv142
1 month, 2 weeks agofc146fc
2 months, 1 week agoEinthu
7 months agofemijohn123
7 months, 3 weeks agoSamm1
8 months, 1 week agoShenannigan
8 months, 1 week agoShenannigan
8 months, 1 week agoShepardos
8 months, 2 weeks agomellohello
10 months, 3 weeks agomellohello
10 months, 3 weeks agokopper2019
12 months agokopper2019
12 months agokolinsteroy
8 months, 2 weeks agoDALLO
1 year agoDALLO
1 year agoDALLO
1 year agohjson821109
1 year, 1 month agohjson821109
1 year, 1 month ago