k8s/iam: add cloudnativepg postgres and vault + authentik

- PostgreSQL 3-replica HA with pgvector
- Vault S3 storage backend (MinIO)
- Authentik federated OIDC provider
- Vault auto-unseal via postStart hook
This commit is contained in:
Story Crater Bot
2026-08-18 15:08:00 -07:00
parent 7da222e243
commit 831dd50805
20 changed files with 3047 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
-- Database initialization for homelab applications
-- Idempotent: safe to re-run
-- Required environment variables:
-- AUTHENTIK_PG_PASSWORD
-- STORY_CRATER_PG_PASSWORD
CREATE ROLE IF NOT EXISTS authentik WITH LOGIN PASSWORD :'authentik_password';
CREATE DATABASE IF NOT EXISTS authentik OWNER authentik;
CREATE ROLE IF NOT EXISTS story_crater WITH LOGIN PASSWORD :'story_crater_password';
CREATE DATABASE IF NOT EXISTS story_crater OWNER story_crater;