diff --git a/infra/k8s/gitea/clusterip-services.yaml b/infra/k8s/gitea/clusterip-services.yaml index 2071d6f9c..6056b2eb4 100644 --- a/infra/k8s/gitea/clusterip-services.yaml +++ b/infra/k8s/gitea/clusterip-services.yaml @@ -36,5 +36,5 @@ spec: ports: - name: ssh port: 22 - targetPort: 22 + targetPort: 2222 # rootless gitea listens on 2222 internally (can't bind privileged 22) protocol: TCP diff --git a/infra/k8s/gitea/networkpolicy.yaml b/infra/k8s/gitea/networkpolicy.yaml index 35d5ac8ba..bd116540e 100644 --- a/infra/k8s/gitea/networkpolicy.yaml +++ b/infra/k8s/gitea/networkpolicy.yaml @@ -22,7 +22,7 @@ spec: values: ["foxhunt", "argo-workflows"] ports: - { port: 3000, protocol: TCP } - - { port: 22, protocol: TCP } + - { port: 2222, protocol: TCP } # web + ssh from the tailscale proxy (nginx + socat) that fronts git.fxhnt.ai - from: - podSelector: @@ -30,7 +30,7 @@ spec: app.kubernetes.io/name: tailscale-gitlab-proxy ports: - { port: 3000, protocol: TCP } - - { port: 22, protocol: TCP } + - { port: 2222, protocol: TCP } egress: # PostgreSQL - to: