From bf716f834bab5c6eb84a51148710c4ed08070895 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Mon, 23 Dec 2024 16:02:46 +0500 Subject: [PATCH] feat: WikiJS | initial setup --- 1password/secrets.yaml | 10 ++++++++++ helm/helmfile.yaml | 10 ++++++++++ helm/values/wikijs.values.yaml | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 helm/values/wikijs.values.yaml diff --git a/1password/secrets.yaml b/1password/secrets.yaml index 5b75e65..e73513c 100644 --- a/1password/secrets.yaml +++ b/1password/secrets.yaml @@ -158,3 +158,13 @@ metadata: operator.1password.io/auto-restart: "true" spec: itemPath: "vaults/Lab/items/Cloudflare" +--- +apiVersion: onepassword.com/v1 +kind: OnePasswordItem +metadata: + name: docs-postgres + namespace: wiki-system + annotations: + operator.1password.io/auto-restart: "true" +spec: + itemPath: "vaults/Lab/items/WikiJS" diff --git a/helm/helmfile.yaml b/helm/helmfile.yaml index f18c5aa..7847925 100644 --- a/helm/helmfile.yaml +++ b/helm/helmfile.yaml @@ -19,6 +19,8 @@ repositories: url: https://prometheus-community.github.io/helm-charts - name: authentik url: https://charts.goauthentik.io + - name: requarks + url: https://charts.js.wiki --- releases: # Distributed Storage @@ -112,3 +114,11 @@ releases: version: 2024.10.5 values: - ./values/authentik.values.yaml + + # WikiJS + - name: wikijs + namespace: docs-system + chart: requarks/wiki + version: 2.2.22 + values: + - ./values/wikijs.values.yaml diff --git a/helm/values/wikijs.values.yaml b/helm/values/wikijs.values.yaml new file mode 100644 index 0000000..ca16de0 --- /dev/null +++ b/helm/values/wikijs.values.yaml @@ -0,0 +1,19 @@ +ingress: + enabled: true + hosts: + - host: docs.rihla.digital + paths: + - / + tls: + - secretName: docs-rihla-digital + hosts: + - docs.rihla.digital + +postgresql: + enabled: false + postgresqlDatabase: docs + postgresqlUser: docs + postgresqlHost: postgres-cluster-rw.postgres-system.svc.cluster.local + postgresqlPort: 5432 + existingSecret: docs-postgres + existingSecretKey: password