From 5c9115d457c29b0f6f28daf48f09ccceb19f5b77 Mon Sep 17 00:00:00 2001 From: Sergiu-Alexandru Vidrascu Date: Tue, 27 Feb 2018 16:11:28 +0200 Subject: [PATCH] DEPLOY-377: Updated default reclaim policy to Recycle and added additional information about persistence in helm notes. --- helm/alfresco-content-services/templates/NOTES.txt | 13 +++++++++++-- helm/alfresco-content-services/templates/pvc.yaml | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/helm/alfresco-content-services/templates/NOTES.txt b/helm/alfresco-content-services/templates/NOTES.txt index 58384621ca..bb73ee9e57 100644 --- a/helm/alfresco-content-services/templates/NOTES.txt +++ b/helm/alfresco-content-services/templates/NOTES.txt @@ -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/ \ No newline at end of file + - 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 diff --git a/helm/alfresco-content-services/templates/pvc.yaml b/helm/alfresco-content-services/templates/pvc.yaml index 478d9acf8d..c7f9d73b7f 100644 --- a/helm/alfresco-content-services/templates/pvc.yaml +++ b/helm/alfresco-content-services/templates/pvc.yaml @@ -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 }}"