traefik in kubernetes with AWS ALB
This is a quick update. In post https://blog.ls-al.com/traefik-in-kubernetes-using-terraform-helm-and-aws-alb/ I had a TODO to work on the AWS ALB health check. This is a fix for that.
NOTE: compared to my previous values file:
- added --ping and --ping.entrypount=web
- added ports traefik healthchecksport
- added websecure false but not related to health check just something I did not need exposed with ssl offloading on LB
helm values ping entrypoint
additionalArguments:
- --providers.kubernetescrd.ingressclass=traefik-pub3
- --ping
- --ping.entrypoint=web
# READ THIS: https://blog.ttauveron.com/posts/traefik_behind_google_l7_load_balancer/
ports:
traefik:
healthchecksPort: 8000
websecure:
expose: false
...
annotations in helm values file
alb.ingress.kubernetes.io/healthcheck-path: "/ping"
alb.ingress.kubernetes.io/healthcheck-port: "traffic-port"