Use stateful set
If persistency is enabled (PVC), redeployments will fail as the PVC can only be used by a single pod. Using a stateful set resolves that.
I just ran into this as well
Hi, update your values.yaml with deploymentStrategy: Recreate. By default Kubernetes Deployment uses RollingUpdate which brings up new pods before the old ones are deleted. Using Recreate will delete the pod first and free the PVC.
There is an upcoming feature #83 that will use StatefulSets for replicated architectures. In theory, you can use zero replicas and run a standalone architecture with StatefulSet.
@gershon-perry and @psychonic Can you confirm that deploymentStrategy: Recreate fixes this issue?
Yes, that seemed to work as a workaround.
Ok, I'll close this issue as there is a workaround. I'll add a note in the values.yaml so that people know what to do if they get the same issue.