code: add ssh redirection for gitea

This commit is contained in:
xeruf 2022-11-08 10:33:31 +00:00
parent 8f0637d232
commit d276c680d9
3 changed files with 42 additions and 0 deletions

View File

@ -29,6 +29,9 @@ data:
config: config:
server: server:
ROOT_URL: "https://code.${domain}" ROOT_URL: "https://code.${domain}"
# START_SSH_SERVER: true
service:
DISABLE_REGISTRATION: true
log: log:
LEVEL: "Trace" LEVEL: "Trace"
persistence: persistence:

View File

@ -0,0 +1,20 @@
---
# https://metallb.org/usage/
#apiVersion: metallb.io/v1beta1
apiVersion: v1
kind: Service
metadata:
name: gitea-ssh
namespace: kube-system
annotations:
#metallb.universe.tf/allow-shared-ip: "key-to-share-1.2.3.4"
spec:
type: LoadBalancer
loadBalancerIP: "${ip_address}"
ports:
- name: ssh
protocol: SSH
port: 22
targetPort: 22
selector:
app: gitea

View File

@ -0,0 +1,19 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kube-system-config
namespace: flux-system
spec:
interval: 1h
timeout: 20m
dependsOn:
- name: metallb
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/config/kube-system
prune: true
postBuild:
substituteFrom:
- kind: Secret
name: stackspin-cluster-variables