More Info:

GKE cluster should use GKE L4 ILB Subsetting if nodes > 250

Risk Level

High

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “For Large Clusters L4 ILB Subsetting Should Be Used” for GCP using GCP console, follow the below steps:

  1. Log in to your GCP console and select the project where the misconfiguration exists.

  2. Go to the “Kubernetes Engine” section from the main menu.

  3. Click on the name of the cluster that you want to remediate.

  4. Click on the “Edit” button.

  5. Scroll down to the “Networking” section and click on “Advanced options”.

  6. Under “Load balancing”, select “L4 Internal Load Balancer”.

  7. In the “Backend configuration” section, click on “Create a new backend configuration”.

  8. In the “Backend configuration” page, give a name to the backend configuration.

  9. In the “Backend service” section, select the appropriate service from the dropdown.

  10. In the “Backend instance group” section, select the instance group that you want to use.

  11. In the “Health check” section, select the appropriate health check from the dropdown.

  12. In the “Session affinity” section, select “None”.

  13. Click on the “Create” button to create the backend configuration.

  14. Back in the “Load balancing” section, click on “Create a new load balancer”.

  15. In the “Create a Load Balancer” page, select “Internal” for the “Type” field.

  16. Give a name to the load balancer.

  17. In the “Backend configuration” section, select the backend configuration that you just created.

  18. In the “Frontend configuration” section, select “HTTP(S)” for the “Protocol” field.

  19. In the “IP address” section, select “Internal IP address”.

  20. Click on the “Create” button to create the load balancer.

  21. Wait for a few minutes for the load balancer to be created.

  22. Once the load balancer is created, go back to the “Kubernetes Engine” section and click on the name of the cluster.

  23. Click on the “Edit” button.

  24. Scroll down to the “Networking” section and click on “Advanced options”.

  25. Under “Load balancing”, select the load balancer that you just created.

  26. Click on the “Save” button to save the changes.

By following these steps, you can remediate the misconfiguration “For Large Clusters L4 ILB Subsetting Should Be Used” for GCP using GCP console.