Quantcast
Channel: A Portal to a Portal
Viewing all articles
Browse latest Browse all 1850

And another one - the Kubernetes tips keep on coming - and I keep on sharing 'em

$
0
0

 This one is rather useful, and again continues the use of jsonpath

Get the name of the all the nodes and their corresponding InternalIP address.

kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.addresses[?(@.type=="InternalIP")].address}{"\n"}{end}'

sideling1.example.com10.51.10.109
sideling2.example.com10.51.12.45

Viewing all articles
Browse latest Browse all 1850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>