diff --git a/gitea-ssh-notes.md b/gitea-ssh-notes.md new file mode 100644 index 0000000..a5d8fd5 --- /dev/null +++ b/gitea-ssh-notes.md @@ -0,0 +1,22 @@ +# Gitea SSH Exposure + +## Current setup +- Internal Gitea SSH service remains: `gitea-ssh` (ClusterIP/headless) +- Public SSH service: `gitea-ssh-public` (LoadBalancer) +- External IP (MetalLB): `172.10.1.201` +- Port: `22/TCP` -> target `2222` in pod + +## Verification +- TCP 22 open on `172.10.1.201` +- SSH handshake returns `Permission denied (publickey)` for unauthenticated attempts (expected) + +## DNS recommendation +For clean separation, use: +- `git.aeternalisgames.com` for web/UI (HTTPS) +- `git-ssh.aeternalisgames.com` for SSH clones + +Then users can clone with: +`git@git-ssh.aeternalisgames.com:OWNER/REPO.git` + +## Firewall note +Allow inbound `TCP/22` to `172.10.1.201` from desired client networks. diff --git a/gitea-ssh-public-service.yaml b/gitea-ssh-public-service.yaml new file mode 100644 index 0000000..e5d8d1c --- /dev/null +++ b/gitea-ssh-public-service.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + name: gitea-ssh-public + namespace: gitea + labels: + app.kubernetes.io/instance: gitea + app.kubernetes.io/name: gitea +spec: + type: LoadBalancer + selector: + app.kubernetes.io/instance: gitea + app.kubernetes.io/name: gitea + ports: + - name: ssh + port: 22 + protocol: TCP + targetPort: 2222