Helm chartv2.2.0App latest

The most powerful and extensible open source Wiki software.

About this chart



A modern, lightweight and powerful wiki app built on NodeJS

Wiki.js is an open source project that has been made possible due to the generous contributions by community backers. If you are interested in supporting this project, please consider becoming a sponsor, becoming a patron, donating to our OpenCollective, via Paypal or via Ethereum (0xe1d55c19ae86f6bcbfb17e7f06ace96bdbb22cb5).


Introduction

This chart bootstraps a Wiki.js deployment on a Kubernetes cluster using the Helm package manager.

It also optionally packages the PostgreSQL as the database but you are free to bring your own.

Prerequisites

  • PV provisioner support in the underlying infrastructure (with persistence storage enabled) if you want data persistance

Installing the Chart

To install the chart with the release name my-release run the following from this (helm) directory:

Using Helm 3:

$ helm install my-release .

Using Helm 2:

$ helm install --name my-release . 

The command deploys Wiki.js on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Warning: Persistant Volume Claims for the database are not deleted automatically. They need to be manually deleted

$ kubectl delete pvc/data-wiki-postgresql-0

Configuration

The following table lists the configurable parameters of the Wiki.js chart and their default values.

ParameterDescriptionDefault
image.repositoryWiki.js imagerequarks/wiki
image.tagWiki.js image taglatest
imagePullPolicyImage pull policyIfNotPresent
replicacountAmount of wiki.js service pods to run1
resources.limitswiki.js service resource limitsnil
resources.requestswiki.js service resource requestsnil
nodeSelectorNode labels for wiki.js pod assignment{}
affinityAffinity settings for wiki.js pod assignment{}
schedulerNameName of an alternate scheduler for wiki.js podnil
tolerationsToleration labels for wiki.jsk pod assignment[]
ingress.enabledEnable ingress controller resourcefalse
ingress.annotationsIngress annotations{}
ingress.hostsList of ingress rules[{"host": "wiki.local", "paths": ["/"]}]
ingress.tlsIngress TLS configuration[]
postgresql.enabledDeploy postgres server (see below)true
postgresql.postgresqlDatabasePostgres database namewiki
postgresql.postgresqlUserPostgres usernamepostgres
postgresql.postgresqlHostExternal postgres hostnil
postgresql.postgresqlPasswordExternal postgres passwordnil
postgresql.existingSecretProvide an existing Secret for postgresnil
postgresql.existingSecretKeyThe postgres password key in the existing Secretpostgresql-password
postgresql.postgresqlPortExternal postgres port5432
postgresql.sslEnable external postgres SSL connectionfalse
postgresql.caCertificate of Authority path for postgresnil
postgresql.persistence.enabledEnable postgres persistence using PVCtrue
postgresql.persistence.existingClaimProvide an existing PersistentVolumeClaim for postgresnil
postgresql.persistence.storageClassPostgres PVC Storage Class (example: nfs)nil
postgresql.persistence.sizePostgers PVC Storage Request8Gi

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name my-release \
  --set postgresql.persistence.enabled=false \
   . 

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml . 

Tip: You can use the default values.yaml

PostgresSQL

By default, PostgreSQL is installed as part of the chart.

Using an external PostgreSQL server

To use an external PostgreSQL server, set postgresql.enabled to false and then set postgresql.postgresqlHost and postgresql.postgresqlPassword. To use an existing Secret, set postgresql.existingSecret. The other options (postgresql.postgresqlDatabase, postgresql.postgresqlUser, postgresql.postgresqlPort and postgresql.existingSecretKey) may also want changing from their default values.

To

Deploy wiki with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wiki on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwiki is pinned at v2.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply