valkey-helm icon indicating copy to clipboard operation
valkey-helm copied to clipboard

Use stateful set

Open gershon-perry opened this issue 4 weeks ago • 4 comments

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.

gershon-perry avatar Nov 27 '25 08:11 gershon-perry

I just ran into this as well

psychonic avatar Nov 27 '25 18:11 psychonic

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.

sgissi avatar Nov 28 '25 15:11 sgissi

@gershon-perry and @psychonic Can you confirm that deploymentStrategy: Recreate fixes this issue?

sgissi avatar Dec 02 '25 03:12 sgissi

Yes, that seemed to work as a workaround.

psychonic avatar Dec 02 '25 03:12 psychonic

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.

sgissi avatar Dec 02 '25 15:12 sgissi