In the exam if we are asked questions like to get the list or to get the number of nodes where say for eg taint is not set or which are in ready state or some other criteria mentioned to filter out the results, then in these type of questions which approach to use.
- Either we go with jsonpath approach to get the results nd redirect o/p to file provided.
- use Linux sed/ awk commands ontop of kubectl get/describe before redirecting output to file.
- or can we even check manually on the nodes and simply echo the output to the said file.
I am confused as in the mock test the output format and how to gather the o/p is all clearly mentioned as part of the question but in exam nothing is mentioned. So can we use any approach???