<p>Cloud Platform: GCP</p>

<p>Kubernetes Engine: GKE</p>

<p>For a Kubernetes service with Type=LoadBalanacer, a corresponding automatic firewall gets created to allow from 0.0.0.0/0 and the name of the firewall starts with k8s-fw.*</p>

<p>The more LoadBalancer service we have for a cluster the more automatic firewall gets created.</p>

<p>Is it possible to keep only one firewall rule for a cluster as all the firewall rules are same?</p>

<p>I tested it by deleting a firewall rule of a newly created LoadBalancer service as there was already firewall in place for the other LoadBalancer service and I was able to access application with the new LoadBalancer IP.</p>

<p>Please confirm if this can be done.</p>

<p>Yes, you can keep one and delete multiple firewall rules (gets created to allow from 0.0.0.0/0 and the name of the firewall starts with k8s-fw.*) for different loadbalancer services for application within the same GKE cluster. But, keep in mind that all the targetPort should be added to the firewall rule that you are keeping to allow from 0.0.0.0/0.</p>
