Dear Traefik Community,
I am trying to publish LocalStack ports through Traefik proxy. I can expose a single port for Localstack, but I am not clear on how to expose a port range for entry points using the Helm Chart, so I am hunting down answers on how to do this?
I have gone through the Traefik docs which show examples for Docker Compose but not for the Helm Chart. I have tried various configs with no joy
Localstack requires ports 4566:4566 and a port range of 4510-4559
What is the best way to accomplish this with Traefik?
I am using Helm Chart version 31.0.0
Below is where I have left it at.
ls:
## -- Enable this entrypoint as a default entrypoint. When a service doesn't explicitly set an entrypoint it will only use this entrypoint.
# asDefault: true
port: 4566
# hostPort: 4566
#containerPort: 4566
expose:
default: true
exposedPort: 4566
tcp:
routers:
to-localstack:
entryPoints:
- "ls"
- "ls-range"
service: localstack
rule: "Host(localstack.pangarabbit.com)"
## -- Different target traefik port on the cluster, useful for IP type LB
# targetPort: 80
## -- The port protocol (TCP/UDP)
protocol: TCP
ls-range:
## -- Enable this entrypoint as a default entrypoint. When a service doesn't explicitly set an entrypoint it will only use this entrypoint.
# asDefault: true
port: 4510
# hostPort: 4510
#containerPort: 4510
expose:
default: true
exposedPort: 4510
tcp:
routers:
to-localstack:
entryPoints:
- "ls"
- "ls-range"
service: localstack
rule: "Host(localstack.pangarabbit.com)"
## -- Different target traefik port on the cluster, useful for IP type LB
# targetPort: 80
## -- The port protocol (TCP/UDP)
protocol: TCP
localstack:
## -- Enable this entrypoint as a default entrypoint. When a service doesn't explicitly set an entrypoint it will only use this entrypoint.
# asDefault: true
port: 4566
# hostPort: 4566
containerPort: 4566
expose:
default: true
exposedPort: 4566
IngressRoute in the dynamic config file in the helm chart