Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find cluster node ip address

Tags:

kubernetes

Minikube has the specific node ip address (192.168.99.100) for single cluster, if I using kubeadm to create many nodes cluster, what should I do to find this ip address?

like image 390
ccd Avatar asked Dec 20 '25 20:12

ccd


2 Answers

This should be fairly straightforward: kubectl get nodes -o wide

like image 192
Bernard Halas Avatar answered Dec 23 '25 10:12

Bernard Halas


This command display the nodes name, private and public IP addresses.

kubectl get nodes -o wide | awk -v OFS='\t\t' '{print $1, $6, $7}'
like image 26
Hasni Mehdi Avatar answered Dec 23 '25 10:12

Hasni Mehdi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!