Hi All, In the exam if we are asked questions like to get the list or to get the . . .

Parul Chhibber:
Hi All,
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.

  1. Either we go with jsonpath approach to get the results nd redirect o/p to file provided.
  2. use Linux sed/ awk commands ontop of kubectl get/describe before redirecting output to file.
  3. 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???

Madhan Kumar:
If nothing is mentioned , then how we do it does not really matter . We save time if we use shortcuts . We loose time if we do manually . It’s totally up to you …