charts icon indicating copy to clipboard operation
charts copied to clipboard

traefik: "Additional TCP Entrypoints" are not being configured

Open nifoc opened this issue 1 year ago • 5 comments

App Name

traefik

SCALE Version

22.12.0

App Version

2.9.8_17.0.7

Application Events

2023-03-11 1:23:26
error killing pod: failed to "KillContainer" for "traefik" with KillContainerError: "rpc error: code = Unknown desc = Error response from daemon: No such container: a673530a5443b8f30413063b09484b1b5d48ef819dd80e5ea86514657edd06c8"
2023-03-11 1:23:24
Scaled down replica set traefik-6cd57c5b88 to 0 from 1
2023-03-11 1:23:24
Deleted pod: traefik-6cd57c5b88-9nw66
2023-03-11 1:23:24
Stopping container traefik
2023-03-11 1:23:05
Started container traefik
2023-03-11 1:23:04
Job completed
2023-03-11 1:23:04
Scaled up replica set traefik-5cc948548c to 1
2023-03-11 1:23:04
Created pod: traefik-5cc948548c-n59v2
2023-03-11 1:23:04
Successfully assigned ix-traefik/traefik-5cc948548c-n59v2 to ix-truenas
2023-03-11 1:23:04
Add eth0 [172.16.1.80/16] from ix-net
2023-03-11 1:23:04
Container image "tccr.io/truecharts/traefik:2.9.8@sha256:4a2d3dda380990d825532e661b42457fc9871061dbc22b310468616378214a2e" already present on machine
2023-03-11 1:23:04
Created container traefik
2023-03-11 1:22:54
Add eth0 [172.16.1.79/16] from ix-net
2023-03-11 1:22:54
Container image "tccr.io/truecharts/kubectl:v1.26.0@sha256:06902a576090e5bfae3fd4e9eccc60bfe614adf00fa50ab233772a66062558a7" already present on machine
2023-03-11 1:22:54
Created container traefik-manifests
2023-03-11 1:22:54
Started container traefik-manifests
2023-03-11 1:22:53
Created pod: traefik-manifests-j9w8x
2023-03-11 1:22:53
Successfully assigned ix-traefik/traefik-manifests-j9w8x to ix-truenas

Application Logs

2023-03-11 00:23:05.386187+00:00time="2023-03-11T01:23:05+01:00" level=info msg="Configuration loaded from flags."
2023-03-11 00:23:06.223217+00:00time="2023-03-11T01:23:06+01:00" level=error msg="entryPoint \"wanexposed\" doesn't exist" entryPointName=wanexposed routerName=ix-jellyfin-jellyfin-jellyfin-internal-kempkens-network@kubernetes
2023-03-11 00:23:06.223244+00:00time="2023-03-11T01:23:06+01:00" level=error msg="no valid entryPoint for this router" routerName=ix-jellyfin-jellyfin-jellyfin-internal-kempkens-network@kubernetes

Application Configuration

I have added one entry under "Additional TCP Entrypoints" (see screenshot). Nothing else has been changed.

Bildschirm­foto 2023-03-11 um 01 59 01

Describe the bug

It looks like additional entry points created via the web UI are not configured in such a way that traefik can make use of them.

Purely based on the logs and the CLI flags (see "Additional Context") it looks like the appropriate configuration flags are simply not passed to traefik.

To Reproduce

  1. Install the Traefik application
  2. Configure an "Additional TCP Entrypoint"
  3. Try to expose a service on the additional entry point

Expected Behavior

  1. Traefik should know about the additional entry point
  2. You should be able to expose a service on the additional entry point

Screenshots

N/A

Additional Context

Going into the shell of the traefik container and running ps | less shows that traefik is being started with the following flags:

traefik traefik --global.checknewversion --entryPoints.main.address=:9000/tcp --entryPoints.metrics.address=:9180/tcp --entryPoints.web.address=:9080/
tcp --entryPoints.websecure.address=:9443/tcp --api.dashboard=true --ping=true --metrics.prometheus=true --metrics.prometheus.entrypoint=metrics --providers.kubernetescrd 
--providers.kubernetesingress --providers.kubernetesingress.ingressendpoint.publishedservice=ix-traefik/traefik-tcp --entrypoints.web.http.redirections.entryPoint.to=:9443
 --entrypoints.web.http.redirections.entryPoint.scheme=https --entrypoints.websecure.http.tls=true --log.format=common --metrics.prometheus --ping --serverstransport.insec
ureskipverify=true --providers.kubernetesingress.allowexternalnameservices=true

I'm not an expert, but I kind of expected wanexposed and port 9920 to show up somewhere.

Adding an additional TCP entry point definitely worked under 2.9.8_16.x (and many other previous versions). I've been using such a setup for probably around one year at least.

I've read and agree with the following

  • [X] I've checked all open and closed issues and my issue is not there.

nifoc avatar Mar 11 '23 01:03 nifoc

Validated.

PrivatePuffin avatar Mar 11 '23 08:03 PrivatePuffin

I have upgrade the traefik from 2.3 to 2.9.9, and have the same error as you. The Additional Entrypoint didn't work. It seems like this bug hasn't been solved yet? Are there any other solution at present? Thanks

LaserLV52 avatar Apr 17 '23 03:04 LaserLV52

I have upgrade the traefik from 2.3 to 2.9.9, and have the same error as you. The Additional Entrypoint didn't work. It seems like this bug hasn't been solved yet? Are there any other solution at present? Thanks

Hereby a warning for posting a +1 comment.

also: obviously not resolved, as the issue is still open.

PrivatePuffin avatar Apr 17 '23 05:04 PrivatePuffin

Essentially part of this: https://github.com/orgs/truecharts/projects/1/views/1?pane=issue&itemId=44303691

As we currently simply don't offer anything consuming TCP entrypoints, it's not supported.

PrivatePuffin avatar Nov 14 '23 11:11 PrivatePuffin

If you want to expedite this enhancement, please consider putting a bounty on it here:

https://opencollective.com/truecharts-bounties/contribute/place-bounty-72003

PrivatePuffin avatar Mar 03 '24 13:03 PrivatePuffin