Accessing Kubernetes pods/services through one IP (Preferably Master Node)

8/2/2017

I have a local Kubernetes installation with a master node and two worker nodes. Is there a way to access all services/pods that will be installed on Kubernetes through master node's ip?

What i mean is say i have a test service running on port 30001 on each worker and i want to access this service like http://master-node:30001. Every help is appreciated.

-- Mustafa Yılmaz
kubectl
kubernetes

1 Answer

8/2/2017

You can use "the proxy verb" to acces nodes, pods, or services through the master. Only HTTP and HTTPS can be proxied. See these docs and these docs.

-- Eric Tune
Source: StackOverflow