Ensure that VPC-native traffic routing is enabled for your Google Kubernetes Engine (GKE) clusters. This feature enhances integration with Google Cloud's VPC, improving network performance, scalability, and security through the use of alias IP address ranges.
VPC-native GKE clusters, which utilize Alias IPs, provide several advantages including pre-reserved pod IPs to prevent conflicts with other compute resources, enhanced security through network-level anti-spoofing checks on egress traffic, granular firewall controls applicable directly to pods independent of their nodes, and direct access to hosted services for pods without requiring a NAT gateway.
Audit
To determine if VPC-native traffic routing is enabled for your Google Kubernetes Engine (GKE) clusters, perform the following operations:
Remediation / Resolution
To enable VPC-native traffic routing for your Google Kubernetes Engine (GKE) clusters, you must re-create your clusters with alias IPs by performing the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Alias IP ranges
- VPC-native clusters
- Create a VPC-native cluster
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud container clusters list
- gcloud container clusters describe
- gcloud container clusters create
- gcloud container clusters delete