Google Kubernetes Engine (GKE) has the capability to run a VPC-native cluster, meaning that the nodes are configured for access through an internal network only. The individual cluster nodes are assigned non-routable RFC1918 addresses and accessed across a VPC. For more information on private clusters, see the GCP documentation.
References:
https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept
Private Cluster Configuration cannot be altered once created. To create a new private cluster, follow the steps below.
In GCP Console -
In Terraform -
References:
https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#enable_private_nodes