Difference between revisions of "Install WikiJS on OKD4x"
Jump to navigation
Jump to search
(→zabbix) |
|||
Line 1: | Line 1: | ||
=Tested with= | =Tested with= | ||
− | * Server Version: 4.7 | + | * Server Version: 4.7 |
− | * Kubernetes Version: v1.20 | + | * Kubernetes Version: v1.20 |
Revision as of 09:02, 7 April 2021
1 Tested with
- Server Version: 4.7
- Kubernetes Version: v1.20
1.1 zabbix
PROJECT=wiki-dev URL=$PROJECT.bitbull.ch oc new-project $PROJECT
oc process -n openshift mariadb-persistent MYSQL_DATABASE=wiki MYSQL_USER=wikijs MYSQL_PASSWORD=wikijsrocks VOLUME_CAPACITY=5Gi | oc create -f -
oc new-app --name wiki --docker-image requarks/wiki:2 DB_NAME=wiki DB_PASS=wikijsrocks DB_USER=wikijs DB_PORT=3306 DB_HOST=mariadb DB_TYPE=mysql
# wikijs needs more privileges, so we create a service account for that oc create serviceaccount anyuid oc adm policy add-scc-to-user anyuid -z anyuid
oc patch deployment.apps/wiki --patch '{"spec":{"template":{"spec":{"serviceAccountName": "anyuid"}}}}'
oc create route edge --service=wiki --port=3000 --hostname=$URL