Skip to content

Gitea on Kubernetes - Git SSH behind same Ingress #768

Answered by mysticaltech
aleksasiriski asked this question in Q&A
Discussion options

You must be logged in to vote

@aleksasiriski I've asked a good AI friend of mine, here's what she says.

Traefik TCP Routing.

You:

Hello, I'm using traefik on k3s, how to use the default Traefik ingress for both http(s) and ssh on port 22? I don't want to use another LB just for Git SSH since it's costly and would be impractical to have different IPs.

ChatGPT:

Traefik does not support TCP traffic by default, which means it cannot be used to load balance SSH traffic on port 22 without additional configuration. However, you can enable TCP support and configure Traefik to route both HTTP(s) and SSH traffic.

Here's a step-by-step guide to enable TCP routing in Traefik for k3s:

  1. Enable TCP support in Traefik:

Edit the Tra…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aleksasiriski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants