[stable/neo4j] Fix dataVolume Persistence (#4046)

* make data volume persistent + make subPath optional

* fix README format

* change minor version
This commit is contained in:
Sebastian Melchior
2018-04-07 02:50:07 -07:00
committed by k8s-ci-robot
parent 494b80b66a
commit 60ddfec894
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: neo4j
home: https://www.neo4j.com
version: 0.6.1
version: 0.7.0
appVersion: 3.2.3
description: Neo4j is the world's leading graph database
icon: http://info.neo4j.com/rs/773-GON-065/images/neo4j_logo.png
+1
View File
@@ -64,6 +64,7 @@ their default values.
| `core.persistentVolume.storageClass` | Storage class of backing PVC | `standard` (uses beta storage class annotation) |
| `core.persistentVolume.size` | Size of data volume | `10Gi` |
| `core.persistentVolume.mountPath` | Persistent Volume mount root path | `/data` |
| `core.persistentVolume.subPath` | Subdirectory of the volume to mount | `nil` |
| `core.persistentVolume.annotations` | Persistent Volume Claim annotations | `{}` |
| `readReplica.numberOfServers` | Number of machines in READ_REPLICA mode | `0` |
| `readReplica.initContainers` | Init containers to add to the replica pod. Example use case is a script that installs the APOC library | `{}` |
+3 -2
View File
@@ -76,8 +76,9 @@ spec:
volumeMounts:
- name: datadir
mountPath: "{{ .Values.core.persistentVolume.mountPath }}"
subPath: "{{ .Values.core.persistentVolume.subPath }}"
volumeMounts:
{{- if .Values.core.persistentVolume.subPath }}
subPath: {{ .Values.core.persistentVolume.subPath }}
{{- end }}
- name: plugins
mountPath: /plugins
resources:
+1 -1
View File
@@ -46,7 +46,7 @@ core:
## Subdirectory of core server data Persistent Volume to mount
## Useful if the volume's root directory is not empty
##
subPath: ""
## subPath: ""
## Pass extra environment variables to the Neo4j container.
##