Persistent volumes [disks] are getting deleted when the kubernetes cluster is deleted #4909
-
Hi I am using azure kubernetes service to deploy my kafka cluster using strimzi. Azure disks will be created when we are using persistent volumes. But the problem is that the azure disks are getting deleted when the aks cluster is deleted because these azure disks are getting under node resource group. So when we delete aks cluster the node resource group will be deleted and all the underlying resources under this node resource group will be deleted. I want to retain the disks even if the aks cluster is deleted So what is the solution? Please answer my query. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't think it's a question you should ask here, because it's not related Strimzi itself. https://docs.microsoft.com/en-us/azure/aks/operator-best-practices-storage and even here talking about storage classes: https://docs.microsoft.com/en-us/azure/aks/concepts-storage#storage-classes It seems to be possible to specify a Anyway it's not Strimzi related. |
Beta Was this translation helpful? Give feedback.
I don't think it's a question you should ask here, because it's not related Strimzi itself.
Strimzi allows to configure the deletion (or not) of PVs when a Kafka cluster is deleted but not the corresponding Azure disks when the AKS instance is deleted.
You should find more information on the Azure related documentation:
https://docs.microsoft.com/en-us/azure/aks/operator-best-practices-storage
and even here talking about storage classes:
https://docs.microsoft.com/en-us/azure/aks/concepts-storage#storage-classes
It seems to be possible to specify a
reclaimPolicy: Retain
for your purpose.Anyway it's not Strimzi related.