This document describes how Wiki.js was deployed on the k8s cluster and how to maintain it.
Wiki.js v2 is deployed on the Kubernetes cluster via ArgoCD, using the shared PostgreSQL instance for data storage.
| Property | Value |
|---|---|
| URL | https://wiki.rzware.com |
| Namespace | wiki |
| Database | PostgreSQL at 192.168.0.6, database: wiki |
| GitOps Repo | homelab-argo |
| ArgoCD App | wiki |
| PR | #37 |
Internet -> Traefik (IngressRoute) -> wiki Service -> wiki Pod
|
PostgreSQL (192.168.0.6)
The deployment consists of:
wikiwiki (1 replica)
ghcr.io/requarks/wiki:2wiki (port 3000)wiki.rzware.comThe wiki uses the shared PostgreSQL instance:
CREATE USER wiki WITH PASSWORD '<password>';
CREATE DATABASE wiki OWNER wiki;
Wiki.js is configured via environment variables in the deployment:
| Variable | Value |
|---|---|
| DB_TYPE | postgres |
| DB_HOST | 192.168.0.6 |
| DB_PORT | 5432 |
| DB_USER | wiki |
| DB_NAME | wiki |
Database backups should be configured at the PostgreSQL level for the wiki database.
# Check pod status
kubectl get pods -n wiki
# Check logs
kubectl logs -n wiki -l app=wiki -f
# Check ArgoCD sync
argocd app get wiki
# Force sync
argocd app sync wiki
# Check database connectivity from pod
kubectl exec -n wiki deploy/wiki -- env | grep DB_
After deployment, the first-time setup wizard was completed via the web UI at https://wiki.rzware.com with the admin account.