Micke
1c192c41fd
This is the minumum needed to run a multinode customer in kubernetes. Each customer will run in their own namespace with a nextcloud container and a redis container. There is a proxysql cluster running in its own namespace, used by all customer. This is a monorepo that uses kustomize to allow using this repo for both prod and test (and other things we can think of in the future).
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
kind: StatefulSet
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: customer-node
|
|
labels:
|
|
app: customer-node
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: customer-node
|
|
spec:
|
|
initContainers:
|
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
|
name: init-config
|
|
env:
|
|
- name: MYSQL_DATABASE
|
|
value: "nextcloud_vr"
|
|
- name: MYSQL_USER
|
|
value: "nextcloud_vr"
|
|
- name: GSS_MASTER_URL
|
|
value: "https://drive.test.sunet.se"
|
|
- name: LOOKUP_SERVER
|
|
value: "https://lookup.drive.test.sunet.se"
|
|
- name: MAIL_DOMAIN
|
|
value: "drive.test.sunet.se"
|
|
- name: MAIL_SMTPNAME
|
|
value: "noreply@drive.test.sunet.se"
|
|
- name: NEXTCLOUD_TRUSTED_DOMAINS
|
|
value: "vr.drive.test.sunet.se"
|
|
- name: OBJECTSTORE_S3_BUCKET
|
|
value: "primary-vr-drive-test.sunet.se"
|
|
- name: SITE_NAME
|
|
value: "vr.drive.test.sunet.se"
|