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