feat(infra): k3s foundation — cert-manager, Longhorn config, in-cluster data tier
ci / typecheck (map[dir:apps/website name:website]) (push) Failing after 10m58s
ci / typecheck (map[dir:apps/portal name:portal]) (push) Failing after 11m56s
ci / typecheck (map[dir:apps/booking name:booking]) (push) Failing after 14m0s
ci / typecheck (map[dir:services/platform-api name:platform-api]) (push) Has been cancelled
ci / test (push) Has been cancelled
ci / typecheck (map[dir:apps/website name:website]) (push) Failing after 10m58s
ci / typecheck (map[dir:apps/portal name:portal]) (push) Failing after 11m56s
ci / typecheck (map[dir:apps/booking name:booking]) (push) Failing after 14m0s
ci / typecheck (map[dir:services/platform-api name:platform-api]) (push) Has been cancelled
ci / test (push) Has been cancelled
Adds the production cluster foundation (authored + applied live on node1): - cert-manager via the k3s HelmChart controller + letsencrypt staging/prod ClusterIssuers (HTTP-01 / Traefik). - Longhorn config for single-node (values: replica=1, default StorageClass, Retain) + backup-to-Hetzner-Object-Storage credential template. - In-cluster data tier (dezky-data): Postgres 16 (with Authentik+OCIS DB init), MongoDB 7, Redis 7 as StatefulSets on Longhorn, + secret template. - bootstrap.sh: install open-iscsi/nfs-common + enable iscsid (Longhorn prereq). - RUNBOOK.md: full reproducible node1 build order. Real secrets are generated on-box and kept in Bitwarden — never in git.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# SECRET TEMPLATE for the data tier — copy, fill, apply OUT-OF-BAND.
|
||||
# NEVER commit real values. Excluded from kustomization.yaml on purpose.
|
||||
#
|
||||
# cp secrets.example.yaml /tmp/data-secrets.yaml
|
||||
# # fill every REPLACE_* (openssl rand -hex 24)
|
||||
# kubectl apply -f /tmp/data-secrets.yaml && rm /tmp/data-secrets.yaml
|
||||
#
|
||||
# Record these in Bitwarden — losing them locks you out of the DBs. The
|
||||
# AUTHENTIK_DB_PASSWORD / OCIS_DB_PASSWORD must match what you give Authentik
|
||||
# and OCIS in their own configs.
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-secret
|
||||
namespace: dezky-data
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_PASSWORD: REPLACE_superuser_pw # openssl rand -hex 24
|
||||
AUTHENTIK_DB_PASSWORD: REPLACE_authentik_pw # openssl rand -hex 24
|
||||
OCIS_DB_PASSWORD: REPLACE_ocis_pw # openssl rand -hex 24
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: mongo-secret
|
||||
namespace: dezky-data
|
||||
type: Opaque
|
||||
stringData:
|
||||
root-username: dezky
|
||||
root-password: REPLACE_mongo_root_pw # openssl rand -hex 24
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: redis-secret
|
||||
namespace: dezky-data
|
||||
type: Opaque
|
||||
stringData:
|
||||
REDIS_PASSWORD: REPLACE_redis_pw # openssl rand -hex 24
|
||||
Reference in New Issue
Block a user