Review GKE private cluster settings

Review the actual network paths to GKE nodes and the control plane, and allow only required access.

Description

Private nodes have no external IPs. To restrict IP-based management to internal paths, disable the control plane’s external IP endpoint. Check both the node pools and the control-plane settings on the deployed cluster.

Potential impact

A public path admits external connection attempts. Removing it before the internal path works can disconnect operators and automation.

Remediation

Provide private nodes and required egress for internal workloads. Test an approved management path, such as a VPN, before disabling the external IP. Check authorized IP networks, firewall rules and DNS endpoint access. After the change, test allowed and blocked connections and retain authentication and least-privilege IAM and RBAC.

Examples

Standard support for Deployment Manager has ended. Use a supported tool for new configurations and supply the location, node and VPC settings omitted from these request bodies.

Before

yaml
name: mycluster

After

yaml
name: mycluster
privateClusterConfig:
  enablePrivateEndpoint: true
  enablePrivateNodes: true

Explanation:

  • Before: The name field alone does not show how the deployed cluster can be reached.
  • After: enablePrivateNodes removes external IPs from nodes. enablePrivateEndpoint disables external IP access to the control plane. DNS endpoint access is configured separately.

References