mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 05:26:49 +00:00
Phase 2: deploy Gitea warm standby on the VPS
Pull-mirrors home GitLab's Homelabv4 repo on Gitea's own built-in mirror scheduler (6h interval) - no custom sync job needed, per the original plan. SQLite instead of the chart's default HA Postgres + Valkey cluster (single-instance standby holding one small repo, not worth the extra moving parts). A PostSync Job creates the mirror once, idempotently; Gitea's scheduler handles all ongoing pulls after that. Also added a public Cloudflare CNAME for gitlab.kube.huskypup.net -> home.kube.huskypup.net: the VPS has no route to home's LAN via Netbird (none of the mesh peers advertise that subnet, confirmed live), so GitLab needs to be reachable the same way any other internet client reaches it - home's public IP already has port 443 forwarded to istio-ingressgateway from earlier this session. Admin and GitLab-mirror credentials are plain Secrets created directly on the VPS cluster (kubectl, not git) - same pattern as vault-unseal-key. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
d6e8c2aa2d
commit
777edf3895
@@ -0,0 +1,67 @@
|
||||
# Gitea warm standby on the VPS - Phase 2. Pull-mirrors the home GitLab
|
||||
# repo on a schedule (Gitea's built-in mirror feature - see
|
||||
# manifests/setup-mirror-job.yaml for the one-time mirror setup), rather
|
||||
# than a custom sync job.
|
||||
#
|
||||
# SQLite instead of the chart's default postgresql-ha + valkey-cluster:
|
||||
# this is a single-instance standby holding one small mirrored repo, not
|
||||
# a production multi-user Gitea - a full HA Postgres cluster + Valkey
|
||||
# cluster would be a lot of extra moving parts (and VPS resources) for no
|
||||
# real benefit here.
|
||||
postgresql-ha:
|
||||
enabled: false
|
||||
postgresql:
|
||||
enabled: false
|
||||
valkey-cluster:
|
||||
enabled: false
|
||||
valkey:
|
||||
enabled: false
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 10Gi
|
||||
storageClass: local-path
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
memory: 512Mi
|
||||
|
||||
gitea:
|
||||
admin:
|
||||
existingSecret: gitea-admin-secret
|
||||
passwordMode: keepUpdated
|
||||
|
||||
config:
|
||||
database:
|
||||
DB_TYPE: sqlite3
|
||||
cache:
|
||||
ADAPTER: memory
|
||||
session:
|
||||
PROVIDER: memory
|
||||
queue:
|
||||
TYPE: level
|
||||
server:
|
||||
DOMAIN: gitea.kube.huskypup.net
|
||||
ROOT_URL: "https://gitea.kube.huskypup.net/"
|
||||
SSH_PORT: 22
|
||||
SSH_LISTEN_PORT: 2222
|
||||
mirror:
|
||||
ENABLED: true
|
||||
DEFAULT_INTERVAL: 6h
|
||||
|
||||
metrics:
|
||||
enabled: false
|
||||
|
||||
# No ingress - reached over Netbird from home while it's up, or directly
|
||||
# on the VPS during an actual promoted-standby incident (same pattern as
|
||||
# the other vps-standby services).
|
||||
service:
|
||||
http:
|
||||
type: ClusterIP
|
||||
port: 3000
|
||||
ssh:
|
||||
type: ClusterIP
|
||||
port: 22
|
||||
Reference in New Issue
Block a user