Is changing storage class supported for strimzi after a strimzi kafka cluster is built? #6926
Replies: 2 comments 3 replies
-
No, it is not supported because Kubernetes does not support it. And in general it cannot be supported because changing storage class might mean completely changing the characteristics of the volume. You cannot change SSD into spinning drive or block storage into NFS just by changing some field. To fix the Strimzi warning, you can fix the annotation on the SattefulSets / StrimziPodSets. But that does not solve the underlying PVCs / PVs. |
Beta Was this translation helpful? Give feedback.
-
Since Strimzi is an operator, it can orchestrate a process of deleting brokers, and associated volumes and recreating them, waiting for the topics to be well replicated and then proceed to the next broker in in a rolling update. What do you think about my wild idea :) |
Beta Was this translation helpful? Give feedback.
-
We recently lost some namespace and it had a strimzi kafka cluster running in it
Now ,we were using deleteClaim: false
As we lost namespace ,we also lost our PVC's and since the storage class we were using had reclaimPolicy: Delete which meant that we lost all PV also
Now when we create a new storage class which has reclaimPolicy: Retain and use it in the kakfa CR objects in strimzi ,we see it complains with in the kubectl describe kafka
strimzi logs shows below
I plan to always patch the underlying PV's with a cronjob on the hour and keep using the same old storage class as a workaround
How do others handle this ?
Beta Was this translation helpful? Give feedback.
All reactions