0

I edited my pvc for resizing. I tried restarting the statefulset after some time. Now my pvc resizing is stuck for around 3 hours. i tried restarting the statefulset many times. What can i do?

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

0

The reason for getting stuck in resizing PVC is spec in PVC is immutable which means you cannot change this value after creation. In PVC you can only change resource requests. spec is immutable after creation except resources.requests for bound claims If you need to change storage size, you need to remove this PVC and create another one.

For more information you can refer this Thread

RahulKumarShaw
  • 4,192
  • 2
  • 5
  • 11
0

Try to run this command, this might fix your issue.

az resource update --ids /subscriptions/<SUBSCRIPTION-ID>/resourcegroups/<RESOURCE-GROUP>/providers/Microsoft.ContainerService/managedClusters/<AKS-CLUSTER-NAME>/agentpools/<NODE-GROUP-NAME>
Vipul Sharda
  • 387
  • 3
  • 6