New to traefik not loadbalancing.. pulling my hair out

./traefik version 
Version:      2.3.1
Codename:     picodon
Go version:   go1.15.2
Built:        2020-09-29T15:49:06Z
OS/Arch:      linux/amd64
     1  [global]
     2    checknewversion = "false"
     3
     4  [log]
     5    level = "DEBUG"
     6    format   = "common"
     7
     8   [api]
     9    dashboard = true
    10    insecure = true
    11
    12  [entryPoints]
    13    [entryPoints.traefik]
    14      address = ":1234"
    15    [entryPoints.ssh]
    16      address = ":222"
    17
    18  [tcp]
    19  [tcp.routers]
    20    [tcp.routers.ssh]
    21      entryPoints = ["ssh"]
    22      rule = "HostSNI(`*`)" 
    23      service = "ssh"
    24
    25  [tcp.services]
    26    [tcp.services.ssh.loadBalancer]
    27      [[tcp.services.ssh.loadBalancer.servers]]
    28        address = "127.0.0.1:22"

I can not figure out why this does not work.. I try and ssh to localhost port 222 and kex_exchange_identificcation.. but curl to localhost port 222 I get a 404..

The :1234/dashboard/ does not even register any tcp routers/services.. (which is good b/c it does not work) but I do not know what is wrong..

root@arch0069-984bce /o/traefik# ./traefik --configFile=traefik-clean.toml
INFO[0000] Configuration loaded from file: /opt/traefik/traefik-clean.toml 
INFO[2020-10-14T14:10:38-04:00] Traefik version 2.3.1 built on 2020-09-29T15:49:06Z 
DEBU[2020-10-14T14:10:38-04:00] Static configuration loaded {"global":{},"serversTransport":{"maxIdleConnsPerHost":200},"entryPoints":{"ssh":{"address":":222","transport":{"lifeCycle":{"graceTimeOut":10000000000},"respondingTimeouts":{"idleTimeout":180000000000}},"forwardedHeaders":{},"http":{}},"traefik":{"address":":1234","transport":{"lifeCycle":{"graceTimeOut":10000000000},"respondingTimeouts":{"idleTimeout":180000000000}},"forwardedHeaders":{},"http":{}}},"providers":{"providersThrottleDuration":2000000000},"api":{"insecure":true,"dashboard":true},"log":{"level":"DEBUG","format":"common"}} 

web - doc.traefik.io/traefik/v2.3/routing/overview/

web - doc.traefik.io/traefik/v2.3/routing/entrypoints

web - doc.traefik.io/traefik/v2.3/routing/routers/

web - doc.traefik.io/traefik/v2.3/routing/services/

I really think I've followed and done what was described there..

Can someone point out what I might be missing?

Thank you in advance..

Hello,

The tcp configuration is a part of the dynamic configuration.

The file traefik.toml contains the static configuration.

So you have to create a dedicated file to put the dynamic configuration and use the file provider.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.