Rootless Traefik service discovery #24541
Replies: 2 comments 7 replies
-
Tagging @eriksjolund here as this part is not clear to me either.
As far as I know systemd xinetd-like socket activation doesn't really make sense with pasta (and the other way around): systemd runs as root and will open a socket that directly connects into the container for you. Which, by the way, makes "rootless" a bit of a misnomer here: the whole thing relies on the fact that there's a component running as root. The socket was created as root and permission checks in the kernel are performed accordingly. |
Beta Was this translation helpful? Give feedback.
-
@OfficerKoo Could you show the contents of the files separately together with their file names? Right now it looks like the quadlet files have been concatenated. I noticed one thing. The traefik container unit contains:
What is port 8080 used for? |
Beta Was this translation helpful? Give feedback.
-
Hello, is this even possible. I have read a lot of discussions, and got mixed ideas about this.
I setup traefik with systemd and socket activation according to this - https://github.com/eriksjolund/podman-traefik-socket-activation.
And it seems to work fine, but only when both routed service and traefik in one bridged network. When i use
host
network for traefik it discover the service, but can't connect, which makes sense because traefik discover internal ip. When i run whoami container without specifying network or specifying pasta, it's not discovered. Same if i do that with traefik container. But won't pasta with socket activation supposed to expose external ip with port?I try to use rootless traefik as a reverse proxy for other rootless and rootfull containers on a host, but either service discovery doesn't work, which defeats purpose of traefik ,or i can't access the services.
Beta Was this translation helpful? Give feedback.
All reactions