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).
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
# Wiki.js — Plattform-Wiki (ADR-0014, #0048). Öffentlich unter wiki.axion1337.chat
|
||||
# (Ingress/Cert in wiki-ingress.yaml), Login nativ via Authentik-OIDC (#0049, Guide 10).
|
||||
# Git-Storage (Inhalt in git) wird nach dem ersten Start in der Admin-UI eingerichtet.
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: wikijs-data
|
||||
namespace: matrix
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-path
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wikijs
|
||||
namespace: matrix
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate # RWO-Volume (Git-Storage-Klon)
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: wikijs
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: wikijs
|
||||
spec:
|
||||
containers:
|
||||
- name: wikijs
|
||||
image: ghcr.io/requarks/wiki:2.5
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
env:
|
||||
- name: DB_TYPE
|
||||
value: postgres
|
||||
- name: DB_HOST
|
||||
value: wikijs-postgres
|
||||
- name: DB_PORT
|
||||
value: "5432"
|
||||
- name: DB_NAME
|
||||
value: wiki
|
||||
- name: DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wikijs-postgres-secret
|
||||
key: username
|
||||
- name: DB_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wikijs-postgres-secret
|
||||
key: password
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /wiki/data
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 25
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 20
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: wikijs-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wikijs
|
||||
namespace: matrix
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: wikijs
|
||||
ports:
|
||||
- name: http
|
||||
port: 3000
|
||||
targetPort: http
|
||||
Reference in New Issue
Block a user