Hi team , I have a small question, how to know the IP of node. For e.g. if I de . . .

Mayur Sharma:
Hi team ,

I have a small question,
how to know the IP of node. For e.g. if I deploy NodePort IP in cluster, which IP should I be using to access the service/pod.

Environment for docker desktop, I know it is : 127.0.0.1 but what about the other environment like I have a cloud academy account that gives me an environment on AWS – K8s cluster on Ubuntu. How to get the node IP here and how to access the service/pod.

Thanks in advance

Dr Ganesh Neelakanta Iyer:
Kubectl get nodes -o wide

Dr Ganesh Neelakanta Iyer:
This command will show you the IP addresses

Mayur Sharma:
Thanks @Dr Ganesh Neelakanta Iyer , here is the output of my k8s cluster,
So, is internal ip is the right column here?
{code}
ubuntu@ip-10-0-128-5:~$ k get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-V
ERSION CONTAINER-RUNTIME
ip-10-0-0-100.us-west-2.compute.internal Ready master 5m55s v1.19.1 10.0.0.100 <none> Ubuntu 18.04.5 LTS 5.3.0-10
35-aws docker://19.3.6
ip-10-0-10-56.us-west-2.compute.internal Ready <none> 3m10s v1.19.1 10.0.10.56 <none> Ubuntu 18.04.5 LTS 5.3.0-10
35-aws docker://19.3.6
ip-10-0-19-94.us-west-2.compute.internal Ready <none> 3m38s v1.19.1 10.0.19.94 <none> Ubuntu 18.04.5 LTS 5.3.0-10
35-aws docker://19.3.6
ubuntu@ip-10-0-128-5:~$
{code}

Internal IP is 10.0.* and External ip is none for all nodes.

Dr Ganesh Neelakanta Iyer:
Yes you are right