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

shadowsocks on kubernetes with traefik ingress #1067

Open
waterdrop01 opened this issue Dec 22, 2022 · 1 comment
Open

shadowsocks on kubernetes with traefik ingress #1067

waterdrop01 opened this issue Dec 22, 2022 · 1 comment

Comments

@waterdrop01
Copy link

waterdrop01 commented Dec 22, 2022

Hello,

So I deployed shadowsocks-rust on kubernetes thanks to the manifest (big up to @realies).

First, let's start with what is working:

  • Using local port forward kubectl port-forward pod/shadowsocks-rust-6ff96bd5dc-qnppw 8388:8388

And then routing my traffic to 127.0.0.1:8388 works!

However, when trying to connect using a domain name pointing to my Traefik ingress, it doesn't work.

Here is my ingress definition:

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
  name: shadowsocks-rust
spec:
  entryPoints:
    - websecure
  routes:
    - kind: Rule
      match: HostSNI(`*`)
      services:
        - name: shadowsocks-rust
          port: 8388   <--- I use 8388 instead of the default 80 
  tls:
    certResolver: le

And websecure refers to this Traefik conf:

--entrypoints.websecure.address=:8443/tcp

Any idea on how to tell traefik to correctly route my sslocal traffic to shadowsocks-rust running in k8s, directly? (without having to kubectl port-forward)

Thanks a lot!
Screenshot from 2022-12-22 13-14-19

@zonyitoo
Copy link
Collaborator

No idea. Not familiar with traefik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants