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 tcp proxy single port multi-environment #6708

Closed
xxlaila opened this issue Apr 21, 2020 · 1 comment
Closed

traefik tcp proxy single port multi-environment #6708

xxlaila opened this issue Apr 21, 2020 · 1 comment

Comments

@xxlaila
Copy link

xxlaila commented Apr 21, 2020

I used traefik 2.2 version. The toml format is dynamically configured. I created dev, test, and uat multiple namespaces on the kubernetes platform to distinguish my environment. Under each namespace, there is a mysql service. I want to use traefik to proxy mysql.
When I proxy dev, there is no problem, I can connect to mysql

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
   name: dev-traefik-tcp
   namespace: kube-dev
spec:
   entryPoints:
     -mysql
   routes:
   -match: HostSNI (`middle.dev.test.com`)
     services:
     -name: mysql5-6
       port: 3306

Then I added test.

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
   name: test-traefik-tcp
   namespace: kube-test
spec:
   entryPoints:
     -mysql
   routes:
   -match: HostSNI (`middle.test.test.com`)
     services:
     -name: mysql5-6
       port: 3306

After the creation of dev and test, the connection to mysql is lost. In this scenario, how should I configure it?

@xxlaila xxlaila changed the title traefik tcp traefik tcp proxy single port multi-environment Apr 21, 2020
@traefiker
Copy link
Contributor

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

Thanks for your interest in Traefik!

We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.

To confirm this, please join our Community Forum and reach out to us on the Traefik section.

In case I'm wrong (well, that would be embarrassing 😅), my developers will re-open the issue and fix me!

In the meantime, you can double check Traefik's documentation.

@traefik traefik locked and limited conversation to collaborators Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants