Gennway:
in the mock exam 3 there is a task “List the InternalIP of all nodes of the cluster. Save the result to a file /root/CKA/node_ips”, there isnt mention the way we could achieve it, so I make kubectl get nodes -o wide
and then echo "172.17.0.32 172.17.0.33 172.17.0.34 172.17.0.40" > /root/CKA/node_ips
, but the score/result calculator doesnt accept my form, and calculator accepts only output from this command kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}' > /root/CKA/node_ips
ips are the same but the result from that kubectl command is 172.17.0.32 172.17.0.33 172.17.0.34 172.17.0.40controlplane $
and probably that’s the reason why calculator finds my answer as invalid. is that intentional @Mumshad Mannambeth and in the real exam my form wouldnt be accepted as well, even if the IPS of the nodes are correct?
Hinodeya:
just make kubectl get node -o wide -o json > /root/CKA/node_ips
Hinodeya:
you’re right it’s not totally clear