Andres Caro:
Why trying to get InternalIP with custom columns doesn’t work but with jsonpath works fine?
a) with custom-columns:
controlplane $ k get no -o custom-columns=NODE:metadata.name,INTERNAL_IP:status.addresses[?(@.type == "InternalIP")].address
NODE INTERNAL_IP
error: unrecognized identifier InternalIP
b) with jsonpath:
controlplane $ k get no -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.addresses[?(@.type == "InternalIP")].address}{"\n"}{end}'
controlplane 172.17.0.8
node01 172.17.0.9