Commit 3466793d authored by TImothee Gosselin's avatar TImothee Gosselin

change pvc and volumes mount

parent 826940a5
name: nextcloud
version: 0.1.1
version: 0.2.0
appVersion: 13.0.0
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
......@@ -14,6 +14,6 @@ icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bdd
sources:
- https://github.com/nextcloud/server
maintainers:
- name: affix
email: opensource@keiran.scot
- name: timothee gosselin
email: timothee@indie.host
engine: gotpl
{{- if .Values.persistence.apache.enabled -}}
{{- if not .Values.persistence.apache.existingClaim -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "nextcloud.fullname" . }}-apache
spec:
accessModes:
- {{ .Values.persistence.apache.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.apache.size | quote }}
{{- if .Values.persistence.apache.storageClass }}
{{- if (eq "-" .Values.persistence.apache.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.apache.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
......@@ -90,23 +90,16 @@ spec:
resources:
{{ toYaml .Values.resources | indent 10 }}
volumeMounts:
- name: apache-data
mountPath: /var/www/html
- name: nextcloud-data
mountPath: /var/www/html/data
{{- range .Values.persistence.extraExistingClaimMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
readOnly: {{ .readOnly }}
{{- end }}
- name: nextcloud-data
mountPath: /var/www/html/custom_apps
subPath: custom_apps
- name: nextcloud-data
mountPath: /var/www/html/config
subPath: config
- name: nextcloud-data
mountPath: /var/www/html/data
subPath: nextclouddata
volumes:
- name: apache-data
{{- if .Values.persistence.apache.enabled }}
persistentVolumeClaim:
claimName: {{ if .Values.persistence.apache.existingClaim }}{{ .Values.persistence.apache.existingClaim }}{{- else }}{{ template "nextcloud.fullname" . }}-apache{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
- name: nextcloud-data
{{- if .Values.persistence.nextcloud.enabled }}
persistentVolumeClaim:
......@@ -114,9 +107,4 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- range .Values.persistence.extraExistingClaimMounts }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .existingClaim }}
{{- end }}
{{- end -}}
......@@ -3,7 +3,7 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "nextcloud.fullname" . }}-nextcloud
name: {{ template "nextcloud.fullname" . }}
spec:
accessModes:
- {{ .Values.persistence.nextcloud.accessMode | quote }}
......
......@@ -135,24 +135,6 @@ serviceType: LoadBalancer
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
persistence:
apache:
enabled: true
## apache data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
## A manually managed Persistent Volume and Claim
## Requires persistence.enabled: true
## If defined, PVC must be created manually before volume will be bound
# existingClaim:
accessMode: ReadWriteOnce
size: 1Gi
nextcloud:
enabled: true
## nextcloud data Persistent Volume Storage Class
......@@ -172,14 +154,6 @@ persistence:
accessMode: ReadWriteOnce
size: 8Gi
extraExistingClaimMounts: []
# - name: external-mount
# mountPath: /srv/external-mount
## A manually managed Persistent Volume and Claim
## If defined, PVC must be created manually before volume will be bound
# existingClaim:
# readOnly: true
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment