What I Have: A Kubernetes Cluster on GCE with three Nodes. Lets suppose the master has the IP <MasterIP>
. Additionally I have a Service within the cluster of Type NodePort which listens to the port <PORT>
. I can access the service using <NodeIP>:<PORT>
What I would like to do: Access the service with <MasterIP>:<PORT>
How can I forward the port from <MasterIP>
to within the cluster? in other words: <MasterIP>:<PORT> --> <NodeIP>:<PORT>
The reason why I would like to do this is simply I don't want to rely on a specific NodeIP
since the Pod can be rescheduled to another Node.
Thank you