argocd/apps/wikijs/deployment.yaml
un-oeil b956fb0803 wikijs: add liveness probe
Wiki.js hangs instead of exiting when Postgres is unavailable at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:02:25 +02:00

56 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: wikijs
spec:
replicas: 1
selector:
matchLabels:
app: wikijs
template:
metadata:
labels:
app: wikijs
spec:
# No <SERVICE>_PORT=tcp://... env vars: apps like Paperless read
# PAPERLESS_PORT as their own setting and crash.
enableServiceLinks: false
containers:
- name: wikijs
image: ghcr.io/requarks/wiki:2.5.314
ports:
- name: http
containerPort: 3000
envFrom:
- secretRef:
name: wikijs-secrets
env:
- name: DB_TYPE
value: postgres
- name: DB_HOST
value: postgres.postgres.svc
- name: DB_PORT
value: "5432"
- name: DB_USER
value: wikijs
- name: DB_NAME
value: wikijs
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 20
# Wiki.js hangs instead of exiting if Postgres is down at startup.
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 60
periodSeconds: 20
failureThreshold: 6
resources:
requests:
cpu: 50m
memory: 256Mi
limits:
memory: 768Mi