Ensure that your Google Kubernetes Engine (GKE) clusters are configured to provision all nodes with only internal IP addresses (i.e., private nodes). This prevents external clients from accessing the nodes and prevents the nodes from having direct access to the Internet.
Disabling public IP addresses on Google Kubernetes Engine (GKE) cluster nodes enhances security by limiting external access and Internet connectivity, requiring attackers to first gain local network access in order to compromise the underlying hosts.
Audit
To determine if your Google Kubernetes Engine (GKE) clusters are configured to provision private nodes only, perform the following operations:
Remediation / Resolution
To ensure that your Google Kubernetes Engine (GKE) clusters are configured to provision private nodes only, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- About network isolation in GKE
- Customize your network isolation in GKE
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud container clusters list
- gcloud container clusters describe
- gcloud container clusters update