Commit 73d85ab6 authored by Varac's avatar Varac

Merge branch '14-install-onlyoffice-or-collabora' into 'master'

Resolve "Install Collabora"

Closes #14

See merge request !18
parents 67a3c9df 45c85a33
......@@ -33,9 +33,6 @@ Do these three steps to prepare the installation process:
```bash
# Get the local-storage chart locally
$ git clone https://code.greenhost.net/openappstack/local-storage ../local-storage
# Get our fork of the helm charts repo (necessary until this PR is merged:
# https://github.com/helm/charts/pull/9112)
$ git clone https://code.greenhost.net/openappstack/charts ../charts
```
1. The repo assumes you have a configuration file called `local.yaml` in the
......@@ -46,11 +43,20 @@ Do these three steps to prepare the installation process:
1. You need to set some environment variables:
- `$NEXTCLOUD_PASSWORD` to set the Nextcloud administrator password
- `$COLLABORA_PASSWORD` to set the Collabora administrator password
- `$NEXTCLOUD_MARIADB_ROOT_PASSWORD` for the MariaDB that NextCloud uses
1. OAS allows you to override the nginx configuration by setting variables in
a file at `/oas/config/values/apps/nginx.yaml`. You can leave this file
empty, but it *has* to exist.
1. The repo installs certmanager, which uses some custom resource definitions.
You need to add these resource definitions like so:
```
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.7/deploy/manifests/00-crds.yaml
```
### Installation
Install all the applications by running:
......@@ -66,3 +72,24 @@ Where:
- `-f helmfile.d` means you want to use the description in files in the local
`helmfile.d` directory
- `apply` syncs your kubernetes cluster state to the one desired by the files.
**NOTE:** If you have installed this repo before, check if you still have old
`pvc`'s for mariadb lying around. They can mess up the installation process,
especially if you use different passwords than before.
For example:
```
$ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
data-oas-test-files-mariadb-0 Bound pvc-2a0dfd8f-7176-11e9-8ea4-00160a765c00 512Mi RWO local 9m
```
The mariadb pvc can collide with your installation. Remove it (note, this also
removes all the data that was in that database!) by running:
```
kubectl delete pvc data-oas-test-files-mariadb-0
```
......@@ -3,10 +3,15 @@ environments:
values:
- "../../../../config/values/local.yaml"
# Note: needs helm-git plugin (https://github.com/aslafy-z/helm-git)
repositories:
- name: nextcloud
url: git+https://code.greenhost.net/openappstack/nextcloud@nextcloud?ref=master
releases:
- name: "oas-{{ .Environment.Values.releaseName }}-files"
namespace: "oas-apps"
chart: "stable/nextcloud"
chart: "nextcloud/nextcloud-collabora"
values:
- "../values/nextcloud.yaml.gotmpl"
wait: true
nextcloud:
host: "files.{{ .Environment.Values.domain }}"
password: "{{ requiredEnv "NEXTCLOUD_PASSWORD" }}"
nextcloud:
host: "files.{{ .Environment.Values.domain }}"
password: "{{ requiredEnv "NEXTCLOUD_PASSWORD" }}"
ingress:
enabled: true
annotations:
# Tell cert-manager to automatically get a TLS certificate
kubernetes.io/tls-acme: "true"
hosts:
- "files.{{ .Environment.Values.domain }}"
tls:
- hosts:
- "files.{{ .Environment.Values.domain }}"
secretName: oas-{{ .Environment.Values.releaseName }}-files
ingress:
enabled: true
annotations:
# Tell cert-manager to automatically get a TLS certificate
kubernetes.io/tls-acme: "true"
hosts:
- "files.{{ .Environment.Values.domain }}"
tls:
- hosts:
- "files.{{ .Environment.Values.domain }}"
secretName: oas-{{ .Environment.Values.releaseName }}-files
# Use 2 GB of storage for NC storage (maybe make configurable later?)
persistence:
enabled: true
size: 2Gi
# Use 2 GB of storage for NC storage (maybe make configurable later?)
persistence:
enabled: true
size: 2Gi
# Disable use of internal database
internalDatabase:
enabled: false
# Explicitly disable use of internal database
internalDatabase:
enabled: false
# Enable and configure MariaDB chart
mariadb:
enabled: true
master:
persistence:
## Enable PostgreSQL persistence using Persistent Volume Claims.
enabled: true
size: 512Mi
replication:
enabled:
false
# Enable and configure MariaDB chart
mariadb:
db:
password: "{{ requiredEnv "NEXTCLOUD_MARIADB_PASSWORD" }}"
enabled: true
master:
persistence:
## Enable PostgreSQL persistence using Persistent Volume Claims.
enabled: true
size: 512Mi
replication:
enabled: false
rootUser:
password: "{{ requiredEnv "NEXTCLOUD_MARIADB_ROOT_PASSWORD" }}"
collabora-code:
ingress:
enabled: true
annotations:
# Tell cert-manager to automatically get a TLS certificate
kubernetes.io/tls-acme: "true"
paths:
- "/"
hosts:
- "office.{{ .Environment.Values.domain }}"
tls:
- hosts:
- "office.{{ .Environment.Values.domain }}"
secretName: oas-{{ .Environment.Values.releaseName }}-office
collabora:
domain: "files.{{ .Environment.Values.domain }}"
server_name: "office.{{ .Environment.Values.domain }}"
password: "{{ requiredEnv "COLLABORA_PASSWORD" }}"
username: admin
dictionaries: en_GB
extra_params: --o:ssl.termination=true --o:ssl.enable=false
controller:
# scope:
# enabled: true
# namespace: oas-apps
service:
externalIPs:
- "{{ .Environment.Values.ip }}"
externalIPs: ["{{ .Environment.Values.ip }}"]
resources:
limits:
cpu: 100m
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment