I have setup a GKE Autopilot Cluster.
Now My requirement is to setup Traefik ingress controller instead of using GKE Ingress Controller.
I have tried to setup initially like.
Load-balancer-->traefik-service-type-loadbalancer-->traefik-ingress-for-my-deployed-service
I have use command:
helm install traefik traefik/traefik \ --namespace traefik \ --version 23.1.0 \ --set dashboard.enabled=true \ --set service.type=LoadBalancer
But this is creating L4 Load balancer but i only want L7 Load balancer.
How can i setup traefik ingress controller to use with L7 Load balancer and use it as a ingress controller for my deployed services.
Hi @ankit_rawat28 ,
To get L7 Load Balancer with Traefik on GKE Autopilot, don’t use service.type=LoadBalancer.
Use this:
Then expose services using Ingress resources — GKE will create the L7 Load Balancer.
That's it.
@a_aleinikov Thanks for response but i believe that.
GKE Autopilot does not automatically create an L7 Load Balancer for third-party ingress controllers like Traefik.
Google Cloud’s native automatic L7 Load Balancer provisioning only works by default with the GKE default ingress class (gce), not with Traefik or other custom ingress controllers.