More Info:

GKE cluster should have Network Policies or Dataplane V2 enabled

Risk Level

High

Address

Performance Efficiency, Operational Excellence, Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Clusters should have network policies or dataplane v2 enabled” in GCP using the GCP console, you can follow the below steps:

  1. Login to GCP console (https://console.cloud.google.com/).

  2. Navigate to the Kubernetes Engine section in the left-hand menu.

  3. Select the cluster that needs to be remediated.

  4. Click on the Edit button at the top of the page.

  5. Scroll down to the Networking section and click on the checkbox next to “Enable Network Policy Enforcement”.

  6. If you want to enable Dataplane V2, click on the checkbox next to “Enable Dataplane V2”.

  7. Click on the Save button at the bottom of the page.

  8. Wait for the changes to take effect. It may take a few minutes for the changes to propagate across the cluster.

Once the above steps are completed, the misconfiguration “Clusters should have network policies or dataplane v2 enabled” will be remediated in GCP.