How do I find the master IP on Docker Desktop Kubernetes Cluster?

10/23/2019

I am using Docker Desktop on Windows and have created a local Kubernetes cluster. I've been following this (quick start guide) and am running into issues identifying my external IP. When creating a service I'm supposed to list the "master server's IP address".

I've identified the master node kubectl get node:

NAME             STATUS   ROLES    AGE   VERSION
docker-desktop   Ready    master   11m   v1.14.7

Then used kubectl describe node docker-desktop...but an external IP is not listed anywhere.

Where can I find this value?

-- David Beaudway
docker
docker-desktop
docker-for-windows
kubernetes

1 Answer

10/23/2019

Use the following command so you can see more information about the nodes.

kubectl get nodes -o wide

or

kubectl get nodes -o json

You'll be able to see the internal-ip and external-ip.

Pd: In my cluster, the internal-ip works as external-ip, even tho the external-ip is listed as none.

-- Cristian Cordova
Source: StackOverflow