feat(s3): add cnpg Gitea database cluster + Makefile targets
- helm/gitea-db-cluster.yaml: cnpg Cluster for Gitea (1 instance, 10Gi, pg16) bootstraps gitea DB from gitea-db-credentials secret in databases namespace - helm/gitea-db-secret.sops.yaml.template: credential secret template (encrypt before use) - Makefile: add db-deploy, db-status, db-shell, db-logs targets; mark pg-deploy legacy - .gitignore: allow *-cluster.yaml (k8s manifests with no secrets) Cluster applied to live cluster. RAIL-HO-WP-0004-T03. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f33648e126
commit
2a4312643d
4 changed files with 77 additions and 2 deletions
14
helm/gitea-db-secret.sops.yaml.template
Normal file
14
helm/gitea-db-secret.sops.yaml.template
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Template for the gitea-db-credentials Secret.
|
||||
# DO NOT commit this file with real credentials.
|
||||
# Encrypt with: sops -e -i helm/gitea-db-secret.sops.yaml
|
||||
# Apply with: kubectl apply -f <(sops -d helm/gitea-db-secret.sops.yaml)
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitea-db-credentials
|
||||
namespace: databases
|
||||
type: kubernetes.io/basic-auth
|
||||
stringData:
|
||||
username: gitea
|
||||
password: REPLACE_WITH_PASSWORD # encrypt with SOPS before committing
|
||||
Loading…
Add table
Add a link
Reference in a new issue