Add Gitea public SSH LoadBalancer service and ops notes

This commit is contained in:
Shard
2026-04-01 15:12:12 +00:00
parent 1dc00d7fe4
commit 4d7e1f35fb
2 changed files with 40 additions and 0 deletions
+22
View File
@@ -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.
+18
View File
@@ -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