Skip to content

WikiJS

WikiJS is a modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown.

Docs

Requirements

Note

First we need a Postgres database. Please refer to Postgres.

Install

You can simply use the make command in the Wiki folder to make the config and apply the files

Namespace

Create the namespace for the application:

kubectl create ns wiki-ns

Config

Edit the database config/config.yml based on the Postgres config.

  • db.host: <postgres-service-name>.<namespace>.svc.cluster.local
  • db.port: 5432
  • db.user: The user you defined for the database
  • db.pass: The password for the user from the secret.

Create the configmap from the file:

kubectl create configmap config-configmap --from-file=config/config.yml -n wiki-ns

Deployment

Deploy the application:

kubectl apply -f wiki-deployment.yaml,wiki-service.yaml,wiki-ingress.yaml -n wiki-ns

Access the application: https://wiki.k3s.test


Last update: 2023-09-27