Fix volume claim
This commit is contained in:
parent
e2cbca972f
commit
f60cdc2630
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-config-template
|
name: nextcloud-configmap
|
||||||
data:
|
data:
|
||||||
config.php: |
|
config.php: |
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -10,6 +10,16 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: nextcloud-config
|
||||||
|
spec:
|
||||||
|
storageClassName: mayastor-3
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp:
|
creationTimestamp:
|
||||||
|
@ -25,7 +35,7 @@ spec:
|
||||||
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
mountPath: /var/www/html/config/config.php
|
mountPath: /var/www/html/config/
|
||||||
subPath: config.php
|
subPath: config.php
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: docker.sunet.se/sunet/docker-jinja:latest
|
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||||
|
@ -35,7 +45,7 @@ spec:
|
||||||
mountPath: /tmp/config.php.template
|
mountPath: /tmp/config.php.template
|
||||||
subPath: config.php
|
subPath: config.php
|
||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
mountPath: /var/www/html/config/config.php
|
mountPath: /var/www/html/config/
|
||||||
subPath: config.php
|
subPath: config.php
|
||||||
env:
|
env:
|
||||||
- name: ADMIN_PASSWORD
|
- name: ADMIN_PASSWORD
|
||||||
|
|
Loading…
Reference in a new issue