WikiJS¶
WikiJS is a modern, lightweight and powerful wiki app built on NodeJS, Git and Markdown.
Requirements¶
Note
First we need a Postgres database. Please refer to Postgres.
Install¶
You can simply use the
makecommand in theWikifolder 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.localdb.port:5432db.user: The user you defined for the databasedb.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