In Moc Exame there is Question: List the `InternalIP` of all nodes of the cluste . . .

Mirza Saqib Baig:
in Moc Exame there is Question:
List the InternalIP of all nodes of the cluster. Save the result to a file /root/CKA/node_ips.
Answer should be in the format: InternalIP of controlplane<space>InternalIP of node01 (in a single line)

where i used following command
kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type==“InternalIP”)].address} of {.items[0].metadata.name} {.items[1].status.addresses[?(@.type==“InternalIP”)].address} of {.items[1].metadata.name ’ which is wrong as its following as format requirement however when end i found following answer

kubectl get nodes -o jsonpath=‘{.items[*].status.addresses[?(@.type==“InternalIP”)].address}’

so what are suggestion here

unnivkn:
from cheat sheet… change External to Internal

unnivkn:
when you get a chance, please go through it: https://kodekloud.com/courses/json-path-quiz/

Mirza Saqib Baig:
Hello Unnivkn, i have found the command as please read my commands and the requirement

Eyal Solomon:
hey @Mirza Saqib Baig
I suggest you to do the JSON PATH quiz - it will simplfy your queries

Mirza Saqib Baig:
Eyal, my question is about the question which is asking specific way to present data which i wrote the query so can you please read the question and my answer and actual answer and tell me what i am doing wrong here, my syntax is correct so please read it before answer imy question its not generic copy paste

Mirza Saqib Baig:
as in my view my answer is correct answer or explain me why i am reading it wrong to avoid such a confusion in actual exam