Difference between revisions of "Install WikiJS on OKD4x"
Jump to navigation
Jump to search
(Created page with "=Tested with= * Server Version: 4.7.0 * Kubernetes Version: v1.20.0 ==zabbix== PROJECT=wiki-dev URL=demo.bitbull.ch oc new-project $PROJECT oc process -n openshift maria...") |
(→zabbix) |
||
Line 6: | Line 6: | ||
==zabbix== | ==zabbix== | ||
PROJECT=wiki-dev | PROJECT=wiki-dev | ||
− | URL= | + | URL=$PROJECT.bitbull.ch |
oc new-project $PROJECT | oc new-project $PROJECT | ||
oc process -n openshift mariadb-persistent DB_TYPE=mysql MYSQL_DATABASE=wiki MYSQL_USER=wikijs MYSQL_PASSWORD=wikijsrocks VOLUME_CAPACITY=5Gi | oc create -f - | oc process -n openshift mariadb-persistent DB_TYPE=mysql MYSQL_DATABASE=wiki MYSQL_USER=wikijs MYSQL_PASSWORD=wikijsrocks VOLUME_CAPACITY=5Gi | oc create -f - | ||
Line 18: | Line 18: | ||
oc create route edge --service=wiki --port=3000 --hostname=$URL | oc create route edge --service=wiki --port=3000 --hostname=$URL | ||
+ | [[Category:OpenShift]] | ||
[[Category:V4x]] | [[Category:V4x]] | ||
− |
Revision as of 15:26, 6 April 2021
1 Tested with
- Server Version: 4.7.0
- Kubernetes Version: v1.20.0
1.1 zabbix
PROJECT=wiki-dev URL=$PROJECT.bitbull.ch oc new-project $PROJECT oc process -n openshift mariadb-persistent DB_TYPE=mysql MYSQL_DATABASE=wiki MYSQL_USER=wikijs MYSQL_PASSWORD=wikijsrocks VOLUME_CAPACITY=5Gi | oc create -f -
# 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