Commit a421e3e1 authored by Shaun Elliott's avatar Shaun Elliott Committed by Jin Hyuk Chang

setting up a pvc to allow for neo4j backups (#212)

* * setting up a pvc to allow for neo4j backups

* * allowing pvc to be turned off
* allowing pvc size to be configurable
parent fb65bbdb
...@@ -38,10 +38,19 @@ spec: ...@@ -38,10 +38,19 @@ spec:
volumeMounts: volumeMounts:
- name: conf - name: conf
mountPath: /conf mountPath: /conf
{{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}}
- name: data
mountPath: /var/lib/neo4j/data
{{- end}}
volumes: volumes:
- name: conf - name: conf
configMap: configMap:
name: {{ .Chart.Name }}-configmap name: {{ .Chart.Name }}-configmap
{{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}}
- name: data
persistentVolumeClaim:
claimName: neo4j-pvc
{{- end}}
{{- with .Values.resources }} {{- with .Values.resources }}
resources: resources:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
......
{{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}}
kind: PersistentVolume
apiVersion: v1
metadata:
name: neo4j-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: {{ default "3Gi" .Values.neo4jpvcSize }}
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/ephemeral/neo4j/data"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: neo4j-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ default "3Gi" .Values.neo4jpvcSize }}
{{- end -}}
\ No newline at end of file
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