add 22 port to nlb for gitea

This commit is contained in:
Alexander Rogov
2026-06-12 20:20:47 +03:00
parent 941493e310
commit c2e72b0ec8
2 changed files with 18 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ spec:
- "--ping=true"
- "--metrics.prometheus=true"
- "--metrics.prometheus.entrypoint=metrics"
- "--entryPoints.ssh.address=:2222/tcp"
- "--providers.kubernetesingress.ingressclass=traefik"
- "--providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik"
- "--accesslog=true"
@@ -48,6 +49,10 @@ spec:
websecure:
port: 8443
exposedPort: 443
ssh:
port: 2222
exposedPort: 22
protocol: TCP
metrics:
port: 9100
expose:

View File

@@ -0,0 +1,13 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: gitea-ssh
namespace: gitea
spec:
entryPoints:
- ssh
routes:
- match: HostSNI(`*`)
services:
- name: gitea
port: 22