Establish clean homelab infrastructure baseline
Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: keycloak-db-secret-sync
|
||||
namespace: keycloak
|
||||
data:
|
||||
sync.sh: |
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
until kubectl -n shared-db get secret shared-postgresql-superuser-secret >/dev/null 2>&1; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
username=$(kubectl -n shared-db get secret shared-postgresql-superuser-secret -o jsonpath='{.data.username}' | base64 -d)
|
||||
password=$(kubectl -n shared-db get secret shared-postgresql-superuser-secret -o jsonpath='{.data.password}' | base64 -d)
|
||||
|
||||
kubectl create secret generic keycloak-db-secret \
|
||||
--namespace keycloak \
|
||||
--from-literal=username="${username}" \
|
||||
--from-literal=password="${password}" \
|
||||
--dry-run=client -o yaml | kubectl -n keycloak apply -f -
|
||||
Reference in New Issue
Block a user