Hi
I've installed and configured Traefik in EKS, and it all deploys and works fine, but I have two application load balancers! I'm doing TLS offloading at my ALB, forwarding HTTPS to HTTP on my EKS cluster. Which works...except I have 1 application load balancer when the traefik service starts, and a new ALB is created when I add my ingress.
ingress.yaml:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
namespace: app
labels:
app: traefik
annotations:
alb.ingress.kubernetes.io/certificate-arn: <<my cert ARN>>
alb.ingress.kubernetes.io/load-balancer-name: my-alb
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/load-balancer-attributes: routing.http2.enabled=true,idle_timeout.timeout_seconds=600
alb.ingress.kubernetes.io/tags: ingress=my-ingress
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
alb.ingress.kubernetes.io/success-codes: 200,404,301
spec:
defaultBackend:
service:
name: traefik
port:
number: 80
service.yaml:
apiVersion: v1
kind: Service
metadata:
finalizers:
- service.kubernetes.io/load-balancer-cleanup
name: baseline-traefik
namespace: app
spec:
allocateLoadBalancerNodePorts: true
clusterIP: 10.10.10.10
clusterIPs:
- 10.10.10.10
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: web
nodePort: 32092
port: 80
protocol: TCP
targetPort: web
- name: websecure
nodePort: 32467
port: 443
protocol: TCP
targetPort: web
selector:
app.kubernetes.io/name: traefik
sessionAffinity: None
type: LoadBalancer
Where am I going wrong?
Any help would be appreciated, thanks.