question

BALAKRISHNAA-6881 avatar image
0 Votes"
BALAKRISHNAA-6881 asked TravisCragg-MSFT answered

azure aks nodepool

we had deployed the AKS with 4 node pool in development environment and we require to shutdown the VM when its not in use . once we shutdown the VM and power on the VM all my data wipes

azure-kubernetes-service
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What drive are you storing your application data on?

0 Votes 0 ·

we are using local disk as persistent volume claim

0 Votes 0 ·

1 Answer

TravisCragg-MSFT avatar image
1 Vote"
TravisCragg-MSFT answered

Are you stopping your AKS cluster? This will reduce your pod count to 0. Any data that is not on a persistent volume will be deleted when the pods are removed, so I would start by double checking what drive your persistent volume claim is mapped to, and also keep in mind that if you have 4 pods and 4 disks attached, and each pod is changing the disks in different ways, each disk will have their own changes.

I would also review the best practices and use cases for storage in AKS to make sure that you are using the correct type of storage. Typically an AKS cluster that needs to make permanent changes to a data set will use a remote database or use Azure Files to connect all of your pods to a single persistent file share.

Can you share your storage class and persistent volume claim configuration for the cluster?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.