We have a kubernetes statefulset with a persistent volume claim for storage class "zookeeper"
There are 6 persistent volumes of storage class "zookeeper"
The deployment is done using a Helm chart. When I first install the helm chart with 3 replica count, the statefulset uses say, Pv1,Pv2 and Pv3. All running ok.
Delete purge the helm chart.
Re-install the same Helm chart with same number of replicas, 3 This time will the statefulset chose the same Persistent volumes, Pv1, Pv2 and Pv3 or will it choose any random Pv's from the 6 Pv's. This is important because across deployments, if the persistent volume changes, the zookeeper "myid" is messed-up.
StatefulSet
making the claim or you do it separately? – suren