Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik 2.0.4 ingress tcp 404 #5791

Closed
ekjuanrejon opened this issue Nov 6, 2019 · 5 comments
Closed

Traefik 2.0.4 ingress tcp 404 #5791

ekjuanrejon opened this issue Nov 6, 2019 · 5 comments
Projects
Milestone

Comments

@ekjuanrejon
Copy link

ekjuanrejon commented Nov 6, 2019

I have successfully deployed traefik 2.0.4 and it is working in kubernetes

I am having a hard time to get to use traefik with ingress route tcp.

I get a Service and everything.

However the tcp service is not working. It has a red exclamation mark

image

{
	"routers": {
		"traefik2-traefik2-dashboard-6ea17d312c4cc7fcaaac@kubernetescrd": {
			"entryPoints": ["websecure"],
			"service": "traefik2-traefik2-dashboard-6ea17d312c4cc7fcaaac",
			"rule": "HOST(`xxx.xxxx-xxx.com`)",
			"tls": {
				"certResolver": "xxx"
			},
			"status": "enabled",
			"using": ["websecure"]
		}
	},
	"services": {
		"traefik2-traefik2-dashboard-6ea17d312c4cc7fcaaac@kubernetescrd": {
			"loadBalancer": {
				"servers": [{
					"url": "http://10.244.3.43:9000"
				}],
				"passHostHeader": true
			},
			"status": "enabled",
			"usedBy": ["traefik2-traefik2-dashboard-6ea17d312c4cc7fcaaac@kubernetescrd"],
			"serverStatus": {
				"http://10.244.3.43:9000": "UP"
			}
		}
	},
	"tcpRouters": {
		"couchbase-syncgateway-dev-syncgateway-external-49ed1f12411af8cb3969@kubernetescrd": {
			"entryPoints": ["syncgateway"],
			"service": "couchbase-syncgateway-dev-syncgateway-external-49ed1f12411af8cb3969",
			"rule": "HostSNI(`xxx.xx.xx-xx.com`)",
			"tls": {
				"passthrough": false,
				"certResolver": "xxxx"
			},
			"status": "enabled",
			"using": ["syncgateway"]
		}
	},
	"tcpServices": {
		"couchbase-syncgateway-dev-syncgateway-external-49ed1f12411af8cb3969@kubernetescrd": {
			"loadBalancer": {
				"terminationDelay": 100,
				"servers": [{
					"address": "10.244.3.42:4985"
				}]
			},
			"status": "enabled",
			"usedBy": ["couchbase-syncgateway-dev-syncgateway-external-49ed1f12411af8cb3969@kubernetescrd"]
		}
	}
}
@traefiker
Copy link
Contributor

Hi! I'm Træfiker 🤖 the bot in charge of communication regulation.

Thanks for your interest in Traefik!

Issue templates help us help you by providing all necessary information.

Please edit your issue and use the available templates:

And remember: each time someone ignores the template, a cute little bunny dies.

#SaveTheCuteBunny ❤️ 🐰 ❤️

southpark - estrella kill rabbit

southpark - estrella kill rabbit2

@JavierPandu
Copy link

JavierPandu commented Nov 18, 2019

I'm had a similar issue, but it was my silly mistake:

        - "traefik.tcp.routers.sograce.rule=HostSNI(`*`)"
        - "traefik.tcp.routers.myrouter.entrypoints=mytcp"
        - "traefik.tcp.routers.myrouter.service=myservice@docker"        
        - "traefik.tcp.services.myservice.loadbalancer.server.port=9992" 

Make sure you declare an entryPoint with that port, then check with netstat -lpn that everything is in order

@cbwsports
Copy link

@ekjuanrejon Did you ever figure out what was wrong? I am experiencing the same thing at the moment. Although the router is pointing to the correct server there is a red exclamation mark and I am not able to use tcp. Please update with your solution if you found one. Thanks

@dmaasland
Copy link

I'm having this exact problem. My TCP service is showing an exclamation mark next to my server. Funny thing is, everything is working fine. These are my labels:

    [..]
    labels:
      ## Traefik
      #  Enable
      - "traefik.enable=true"
      #  Router
      - "traefik.tcp.routers.esmc-server.rule=HostSNI(`*`)"
      - "traefik.tcp.routers.esmc-server.entrypoints=eset-agent"
      - "traefik.tcp.routers.esmc-server.service=esmc-server"
      - "traefik.tcp.routers.esmc-server.tls=true"
      - "traefik.tcp.routers.esmc-server.tls.passthrough=true"
      #  Service
      - "traefik.tcp.services.esmc-server.loadbalancer.server.port=2222"

  traefik:
    image: traefik:v2.1
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.http.address=:80"
      - "--entrypoints.eset-agent.address=:2222"
    ports:
      - "80:80"
      - "8080:8080"
      - "2222:2222"

@ldez ldez added this to issues in v2 via automation Feb 28, 2020
@ldez ldez added this to the next milestone Feb 28, 2020
@ldez
Copy link
Member

ldez commented Feb 28, 2020

Closed by #6313

@ldez ldez closed this as completed Feb 28, 2020
v2 automation moved this from issues to Done Feb 28, 2020
@traefik traefik locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
v2
Done
Development

No branches or pull requests

6 participants