Changing Kubernetes cluster IP to internal IP

10/8/2019

I have created a Kubernetes cluster in Google Cloud. I have done it a few months ago and configured the cluster to have external IP address limited with authorized networks.

enter image description here

I want to change the cluster IP to internal IP. Is this possible without re-creating the cluster?

-- No1Lives4Ever
google-kubernetes-engine
kubernetes

1 Answer

10/8/2019

As documented here, you currently "cannot convert an existing, non-private cluster to a private cluster."

Having said that, you'll need to create a new private cluster from scratch, which will have both an external IP and an internal IP. However, you'll be able to disable access to the external IP or restrict access to it as per your needs. Have a look here for the different settings available.

-- LundinCast
Source: StackOverflow