DEPLOY-377: Updated default reclaim policy to Recycle and added additional information about persistence in helm notes.

This commit is contained in:
Sergiu-Alexandru Vidrascu
2018-02-27 16:11:28 +02:00
parent bd6dffb8ef
commit 5c9115d457
2 changed files with 12 additions and 3 deletions

View File

@@ -14,6 +14,15 @@ echo "http://$DNSNAME/share"
5. Note: if you deployed on a different namespace than the default one, then the kubectl commands should also specify the namespace to run in with --namespace
6. Depending on the storage you use for volumes you should be able to access the persisted db data in the following locations:
6. Persistent Storage
Depending on the storage you use for volumes you should be able to access the persisted db data in the following locations:
- On minikube the usual location is /tmp/hostpath-provisioning
- With docker-for-desktop the usual location is /Users/YourUser/.docker/Volumes/
- With docker-for-desktop the usual location is /Users/YourUser/.docker/Volumes/
If you choose to use EFS for persistence keep in mind that the persistent volume created has the ReclaimPolicy set to Recycle.
This means that by default, when you delete the release the saved data is deleted automatically.
To change this behaviour and keep the data you can set the persistence.reclaimPolicy value to Retain.
For more Information on Reclaim Policies checkout the official K8S documentation here -> https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaim-policy

View File

@@ -9,7 +9,7 @@ spec:
storage: {{ .Values.persistence.baseSize | quote }}
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: {{ .Values.persistence.reclaimPolicy | default "Delete" }}
persistentVolumeReclaimPolicy: {{ .Values.persistence.reclaimPolicy | default "Recycle" }}
nfs:
server: "{{ .Values.persistence.efs.dns }}"
path: "{{ .Values.persistence.efs.path }}"