Files
Thore Cimbal 1744de074f feat(wiki): deploy Wiki.js in the suite (#0048) — waits on the DB secret
Wiki.js + a dedicated Postgres + public ingress for wiki.axion1337.chat, added to
the production kustomization so Flux applies it. Both pods intentionally wait on
the SOPS secret `wikijs-postgres-secret` (username/password) until sorb creates it
— same loud-but-visible pattern as the concierge bot. NetworkPolicy: Traefik ->
wikijs:http, wikijs -> wikijs-postgres:postgres (ingress-only, named container
ports). Ingress/Cert mirror the authentik pattern (letsencrypt-prod). Native OIDC
login (#0049, guide 10) and git-storage are configured post-start. All manifests
validated server-side (kubectl --dry-run=server).
2026-08-12 12:00:00 +00:00

80 lines
2.1 KiB
YAML

# Dedizierter Postgres für Wiki.js (ADR-0014, #0048). Bewusst eigenständig statt in
# den Synapse-/Authentik-DBs, damit das Wiki als Suite-Baustein reproduzierbar bleibt.
# git ist die Inhalts-Quelle (Wiki.js Git-Storage), diese DB ist Laufzeit-Index/Cache.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wikijs-postgres-data
namespace: matrix
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wikijs-postgres
namespace: matrix
spec:
replicas: 1
strategy:
type: Recreate # RWO-Volume: kein RollingUpdate mit zwei Pods
selector:
matchLabels:
app.kubernetes.io/name: wikijs-postgres
template:
metadata:
labels:
app.kubernetes.io/name: wikijs-postgres
spec:
containers:
- name: postgres
image: postgres:16-alpine
ports:
- name: postgres
containerPort: 5432
env:
- name: POSTGRES_DB
value: wiki
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: wikijs-postgres-secret
key: username
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: wikijs-postgres-secret
key: password
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
readinessProbe:
exec:
command: ["pg_isready", "-U", "wiki", "-d", "wiki"]
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- name: data
persistentVolumeClaim:
claimName: wikijs-postgres-data
---
apiVersion: v1
kind: Service
metadata:
name: wikijs-postgres
namespace: matrix
spec:
selector:
app.kubernetes.io/name: wikijs-postgres
ports:
- name: postgres
port: 5432
targetPort: postgres