Add Gitea public SSH LoadBalancer service and ops notes
This commit is contained in:
@@ -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.
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user