Config generation

This commit is contained in:
Micke Nordin 2023-03-28 17:59:43 +02:00
parent f0e0d7ffcc
commit 12a9d898da
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -28,6 +28,9 @@ spec:
- name: server-storage
mountPath: /var/www/html
subPath: server-data
- name: nextcloud-config
mountPath: /var/www/html/config
subPath: config.php
env:
- name: GSS_MASTER_URL
value: "https://drive.test.sunet.se"
@ -121,6 +124,29 @@ spec:
key: "redis_password"
- name: SITE_NAME
value: "customer.drive.test.sunet.se"
initContainers:
- image: docker.sunet.se/sunet/docker-jinja:latest
name: init-config
volumeMounts:
- name: nextcloud-config-template
mountPath: /tmp/config.php.template
subPath: config.php
- name: nextcloud-config
mountPath: /var/www/html/config
subPath: config.php
env:
- name: ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: proxysql-secret
key: "proxysql_admin_password"
volumes:
- name: nextcloud-config-template
configMap:
name: nextcloud-configmap
items:
- key: "config.php"
path: "config.php"
resources: {}
strategy: {}
status: {}