More Info:

Create Alias IPs for the node network CIDR range in order to subsequently configure IPbased policies and firewalling for pods. A cluster that uses Alias IPs is called a ‘VPC-native’ cluster

Risk Level

Medium

Address

Security, Reliability, Operational Excellence, Performance Efficiency

Compliance Standards

CISGKE

Triage and Remediation

Remediation

To remediate the misconfiguration of not using VPC-Native Clusters in GCP, you can follow the below steps using the GCP console:

  1. Open the GCP console and navigate to the Kubernetes Engine page.

  2. Select your cluster that you want to make VPC-native.

  3. Click on the “Edit” button at the top of the page.

  4. Scroll down to the “Networking” section and click on “Enable VPC-native (using alias IP)“.

  5. Select the VPC network that you want to use for your cluster.

  6. Select the subnet that you want to use for your cluster.

  7. Click on the “Save” button at the bottom of the page to apply the changes.

  8. Verify that the VPC-native configuration is applied by checking the “Networking” section of your cluster details page.

By following these steps, you will be able to remediate the misconfiguration of not using VPC-Native Clusters in GCP and ensure that your cluster is using VPC-native networking.

Additional Reading: