No description
- Dockerfile 100%
| base | ||
| build | ||
| instancetemplate | ||
| README.md | ||
NextCloud in OpenShift / OKD
This repo is a fast setup for Nextcloud on Openshift without too much overwriting.
Setup
- make a new repo for your nextcloud deployment
- add the nextcloud-okd repo as submodule:
git submodule add https://gitlab.pflaeging.net/pflaeging-net-public/nextcloud-okd.git - copy the content of this directory to the root of the new repo
cp nextcloud-okd/instancetemplate/* .
Config
- change admin password in secret.yaml (bas64 encoded)
- change in kustomization.yaml
- give the deployment a pre- and postfix (at the top)
- set the correct hostname (on 2 places)
- change the size of the persistence
- set the storage class
Rollout
Create the BuildConfig and build an image of nextcloud. See here
oc kustomize --enable-helm . | oc apply -f -
or
make an ArgoCd project and roll it out
Upgrading
- Change the chart version in
kustomization.yaml - Build the new
nextcloud-nonrootimage for the correct version (see here) - Optionally, increate the startup probe fail threshold temporarily so the container isn't killed during the upgrade
- in
./base/nextcloud/values.yaml, addfailureThreshold: 300to the startup probe
- in
- Rollout with
oc kustomize --enable-helm . | oc apply -f -