spotahome / redis-operator

Redis Operator creates/configures/manages high availability redis with sentinel automatic failover atop Kubernetes.
Apache License 2.0
1.49k stars 356 forks source link

add storage to pvc using CR #638

Closed matzik12 closed 11 months ago

matzik12 commented 11 months ago

Hello, I am using openshift 4.12 - k8s 1.25 the operator is 1.2.4

I filled my redis database in data. After changing in the CR the size of the persistentVolumeClaim it has changed in the statefulset (the operator did its job) but the statefulset cannot update the size of the pvc. The only way I found to solve this was deleting the statefulset and delete the pvc of each pod, after that the statefulset has been created by the operator again and the pvc created again with the new size by the statefulset, this process means down time until all creates again and loosing all the data i had if i don't save the data aside and put it in the new cluster which means more down time...

I must have missed something about it... Hope someone got answer for that problem, how to resize the pvc using CR.

THANKS!

matzik12 commented 11 months ago

i found a problem on my k8s cluster and after fixing it all works well...