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?
Asked
Active
Viewed 491 times
0
-
What kind of storage is the PVC using? – CSharpRocks Apr 26 '22 at 13:36
-
Can you post the output of `kubectl describe pvc
` to your question. – gohm'c Apr 27 '22 at 03:00
2 Answers
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