Skip to content

Commit ba14dce

Browse files
authored
Merge pull request #110944 from matthiasguentert/aks-azure-disk-csi-update
added note about shrinking
2 parents a284869 + a0ba2d5 commit ba14dce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/aks/azure-disk-csi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ Expand the PVC by increasing the `spec.resources.requests.storage` field running
288288
kubectl patch pvc pvc-azuredisk --type merge --patch '{"spec": {"resources": {"requests": {"storage": "15Gi"}}}}'
289289
```
290290

291+
> [!NOTE]
292+
> Shrinking persistent volumes is currently not supported. Trying to patch an existing PVC with a smaller size than the current one leads to the following error message:
293+
> `The persistentVolumeClaim "pvc-azuredisk" is invalid: spec.resources.requests.storage: Forbidden: field can not be less than previous value.`
294+
291295
The output of the command resembles the following example:
292296

293297
```output

0 commit comments

Comments
 (0)