Hi,
I'd like to use my k8s + traefik deployment to expose select ingresses to a loadbalancer which proxies requests from the Internet to my k8s box. I did this by introducing another endpoint, webs-ext
, to my traefik config. I tag an ingress I want to expose with this annotation:
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure,webs-ext
I've set up traefik with helm chart 23.0.1 + values.yaml like this:
ports:
websecure:
port: 8443
expose: true
hostPort: 443
exposedPort: 443
protocol: TCP
tls: {} # omitted
### Marker
http3:
enabled: true
advertisedPort: 443
### /Marker
webs-ext:
port: 8444
expose: true
hostPort: 8443
exposedPort: 8443
proxyProtocol:
trustedIPs:
- "192.168.1.0/24"
protocol: TCP
tls: {} # omitted
http3:
enabled: true
advertisedPort: 443
This will yield an error, due to the block inside the "Marker" comments generating a duplicate port mapping.
I assume that's a bug, the port k8s serves this under doesn't have to be it is advertised under, especially considering a proxy scenario.
Am I correct in my reasoning? Am I doing something wrong here?