Install WikiJS in OpenShift / OKD 4 with Crunchy PostgreSQL
At Binero Group, we work every day to improve software delivery. The company has Open Source in its veins, and therefore we try to give back to our clients and customers as much as possible of what we develop.
In the search for a Kubernetes-based Wiki, we came across WikiJS, a modern Wiki that supports markdown files and multiple storage backends such as git and PostgreSQL.
The website provides information about installation on Kubernetes, but OpenShift has some additional security features that must be considered when installing software on it.
If you prefer to go straight to the code and a brief explanation, you can find the Git repo here with a reference to the author who started the project, but please read on if you want to know more about the background of the setup.
First, we want to use products that have a large installation base and a high level of automation, so that the efforts to maintain the software are kept to a minimum: we want to focus as much as possible on efficient use and take advantage of the opportunities Kubernetes offers for this. For that reason, we choose to use Crunchy Data Postgres Operator to install PostgreSQL as the storage backend for WikiJS, as it is the best supported.
Next, we show how to build a docker image that can be added to an internal registry if needed and used for so-called sideloading mode, which means that the files that the installation requires are packaged in the container, so no internet connection is needed to pull the files during initialization. The image is publicly available on Docker Hub and is currently updated manually – this may change in the future, we recommend setting up the build yourself to have the latest required version.


