Try to run init container as root
This commit is contained in:
parent
abd64c96ee
commit
20331e2338
|
@ -56,6 +56,9 @@ spec:
|
||||||
- name: log-volume
|
- name: log-volume
|
||||||
mountPath: /var/log/apache2
|
mountPath: /var/log/apache2
|
||||||
subPath: apache2
|
subPath: apache2
|
||||||
|
- name: conf-volume
|
||||||
|
mountPath: /etc/apache2/mods-enabled
|
||||||
|
subPath: mods-enabled
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 1500m
|
cpu: 1500m
|
||||||
|
@ -77,11 +80,13 @@ spec:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: nextcloud-http
|
name: nextcloud-http
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "rm /etc/apache2/mods-enabled/ssl.load /etc/apache2/mods-enabled/ssl.conf; apachectl -D FOREGROUND"]
|
args: ["-c", "apachectl -D FOREGROUND"]
|
||||||
#command: ["/bin/sh","-c", "apachectl -D FOREGROUND; tail -f /dev/null"]
|
#command: ["/bin/sh","-c", "apachectl -D FOREGROUND; tail -f /dev/null"]
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: docker.sunet.se/sunet/docker-jinja:latest
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
name: init-config
|
name: init-config
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-config-template
|
- name: nextcloud-config-template
|
||||||
mountPath: /tmp/config.php.template
|
mountPath: /tmp/config.php.template
|
||||||
|
@ -89,6 +94,9 @@ spec:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html/config
|
mountPath: /var/www/html/config
|
||||||
subPath: config
|
subPath: config
|
||||||
|
- name: conf-volume
|
||||||
|
mountPath: /etc/apache2/mods-enabled
|
||||||
|
subPath: mods-enabled
|
||||||
env:
|
env:
|
||||||
- name: GSS_MASTER_URL
|
- name: GSS_MASTER_URL
|
||||||
value: "https://drive.test.sunet.se"
|
value: "https://drive.test.sunet.se"
|
||||||
|
@ -182,7 +190,7 @@ spec:
|
||||||
key: "redis_password"
|
key: "redis_password"
|
||||||
- name: SITE_NAME
|
- name: SITE_NAME
|
||||||
value: "customer.drive.test.sunet.se"
|
value: "customer.drive.test.sunet.se"
|
||||||
command: ["/bin/sh", "-c", "/usr/bin/j2 -f env -o /var/www/html/config/config.php /tmp/config.php.template"]
|
command: ["/bin/sh", "-c", "rm /etc/apache2/mods-enabled/ssl.load /etc/apache2/mods-enabled/ssl.conf; /usr/bin/j2 -f env -o /var/www/html/config/config.php /tmp/config.php.template"]
|
||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-config-template
|
- name: nextcloud-config-template
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -217,3 +225,6 @@ spec:
|
||||||
- name: log-volume
|
- name: log-volume
|
||||||
emptyDir:
|
emptyDir:
|
||||||
sizeLimit: 500Mi
|
sizeLimit: 500Mi
|
||||||
|
- name: conf-volume
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 500Mi
|
||||||
|
|
Loading…
Reference in a new issue