Skip to content

Commit 5fb3638

Browse files
authored
Merge pull request #187866 from justindavies/patch-aks-csi
Update CSI documentation for patch operations
2 parents 497482b + cc8c1d7 commit 5fb3638

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/aks/csi-storage-drivers.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,19 @@ If you have created custom storage classes based on the in-tree storage drivers,
7171

7272
Whilst explicit migration to the CSI provider is not needed for your storage classes to still be valid, to be able to use CSI features (snapshotting etc.) you will need to carry out the migration.
7373

74-
Migration of these storage classes will involve deleting the existing storage classes, and re-provisioning them with the provisioner set to **disk.csi.azure.com** if using Azure Disks, and **files.csi.azure.com** if using Azure Files. As an example for Azure disks:
74+
Migration of these storage classes will involve deleting the existing storage classes, and re-provisioning them with the provisioner set to **disk.csi.azure.com** if using Azure Disks, and **files.csi.azure.com** if using Azure Files.
7575

76-
### Original In-tree storage class definition
76+
Whilst this will update the mapping of the storage classes, the binding of the Persistent Volume to the CSI provisioner will only take place at provisioning time. This could be during a cordon & drain operation (cluster update) or by detaching and reattaching the Volume.
77+
78+
> [!IMPORTANT]
79+
> If your Storage class reclaimPolicy is set to Delete you will need to change the Persistent Volume to Retain to persist your data. This can be achieved via a [patch operation on the PV](https://kubernetes.io/docs/tasks/administer-cluster/change-pv-reclaim-policy/).
80+
81+
82+
### Migrating Storage Class provisioner
83+
84+
As an example for Azure disks:
85+
86+
#### Original In-tree storage class definition
7787

7888
```yaml
7989
kind: StorageClass
@@ -87,7 +97,7 @@ parameters:
8797
kind: Managed
8898
```
8999
90-
### CSI storage class definition
100+
#### CSI storage class definition
91101
92102
```yaml
93103
kind: StorageClass

0 commit comments

Comments
 (0)