File tree 6 files changed +31
-21
lines changed
6 files changed +31
-21
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,21 @@ kubectl create secret generic azure-secret --from-literal azurestorageaccountnam
82
82
apiVersion : v1
83
83
kind : PersistentVolume
84
84
metadata :
85
+ annotations :
86
+ pv.kubernetes.io/provisioned-by : blob.csi.azure.com
85
87
name : pv-blob
86
88
spec :
87
89
capacity :
88
90
storage : 10Gi
89
91
accessModes :
90
92
- ReadWriteMany
91
- persistentVolumeReclaimPolicy : Retain # "Delete" is not supported in static provisioning
93
+ persistentVolumeReclaimPolicy : Retain
92
94
csi :
93
95
driver : blob.csi.azure.com
94
96
readOnly : false
95
- # make sure volumeid is unique for every identical storage blob container in the cluster
96
- # character `#` is reserved for internal use and cannot be used in volumehandle
97
- volumeHandle : unique-volumeid
97
+ # make sure volumeid is unique for every storage blob container in the cluster
98
+ # the # character is reserved for internal use
99
+ volumeHandle : account-name_container-name
98
100
volumeAttributes :
99
101
containerName : EXISTING_CONTAINER_NAME
100
102
nodeStageSecretRef :
Original file line number Diff line number Diff line change 2
2
apiVersion : v1
3
3
kind : PersistentVolume
4
4
metadata :
5
+ annotations :
6
+ pv.kubernetes.io/provisioned-by : blob.csi.azure.com
5
7
name : pv-blob
6
8
spec :
7
9
capacity :
8
10
storage : 10Gi
9
11
accessModes :
10
12
- ReadWriteMany
11
- persistentVolumeReclaimPolicy : Retain # "Delete" is not supported in static provisioning
13
+ persistentVolumeReclaimPolicy : Retain
12
14
storageClassName : blob-fuse
13
15
mountOptions :
14
16
- -o allow_other
15
17
- --file-cache-timeout-in-seconds=120
16
18
csi :
17
19
driver : blob.csi.azure.com
18
20
readOnly : false
19
- # make sure volumeid is unique for every identical storage blob container in the cluster
20
- # character `#` is reserved for internal use and cannot be used in volumehandle
21
- volumeHandle : unique-volumeid
21
+ # make sure volumeid is unique for every storage blob container in the cluster
22
+ # the # character is reserved for internal use
23
+ volumeHandle : account-name_container-name
22
24
volumeAttributes :
23
25
resourceGroup : EXISTING_RESOURCE_GROUP_NAME
24
26
storageAccount : EXISTING_STORAGE_ACCOUNT_NAME
Original file line number Diff line number Diff line change 2
2
apiVersion : v1
3
3
kind : PersistentVolume
4
4
metadata :
5
+ annotations :
6
+ pv.kubernetes.io/provisioned-by : blob.csi.azure.com
5
7
name : pv-blob-keyvault
6
8
spec :
7
9
capacity :
8
10
storage : 10Gi
9
11
accessModes :
10
12
- ReadWriteMany
11
- persistentVolumeReclaimPolicy : Retain # If set as "Delete" container would be removed after pvc deletion
13
+ persistentVolumeReclaimPolicy : Retain
12
14
storageClassName : blob-fuse
13
15
csi :
14
16
driver : blob.csi.azure.com
15
17
readOnly : false
16
- # make sure volumeid is unique for every identical storage blob container in the cluster
17
- # character `#` is reserved for internal use and cannot be used in volumehandle
18
- volumeHandle : unique-volumeid
18
+ # make sure volumeid is unique for every storage blob container in the cluster
19
+ # the # character is reserved for internal use
20
+ volumeHandle : account-name_container-name
19
21
volumeAttributes :
20
22
containerName : EXISTING_CONTAINER_NAME
21
23
storageAccountName : EXISTING_STORAGE_ACCOUNT_NAME
Original file line number Diff line number Diff line change 2
2
apiVersion : v1
3
3
kind : PersistentVolume
4
4
metadata :
5
+ annotations :
6
+ pv.kubernetes.io/provisioned-by : blob.csi.azure.com
5
7
name : pv-blob
6
8
spec :
7
9
capacity :
8
10
storage : 10Gi
9
11
accessModes :
10
12
- ReadWriteMany
11
- persistentVolumeReclaimPolicy : Retain # If set as "Delete" container would be removed after pvc deletion
13
+ persistentVolumeReclaimPolicy : Retain
12
14
storageClassName : blob-fuse
13
15
mountOptions :
14
16
- -o allow_other
15
17
- --file-cache-timeout-in-seconds=120
16
18
csi :
17
19
driver : blob.csi.azure.com
18
20
readOnly : false
19
- # make sure volumeid is unique for every identical storage blob container in the cluster
20
- # character `#` is reserved for internal use and cannot be used in volumehandle
21
- volumeHandle : unique-volumeid
21
+ # make sure volumeid is unique for every storage blob container in the cluster
22
+ # the # character is reserved for internal use
23
+ volumeHandle : account-name_container-name
22
24
volumeAttributes :
23
25
resourceGroup : EXISTING_RESOURCE_GROUP_NAME
24
26
storageAccount : EXISTING_STORAGE_ACCOUNT_NAME
Original file line number Diff line number Diff line change 2
2
apiVersion : v1
3
3
kind : PersistentVolume
4
4
metadata :
5
+ annotations :
6
+ pv.kubernetes.io/provisioned-by : blob.csi.azure.com
5
7
name : pv-blob
6
8
spec :
7
9
capacity :
8
10
storage : 10Gi
9
11
accessModes :
10
12
- ReadWriteMany
11
- persistentVolumeReclaimPolicy : Retain # If set as "Delete" container would be removed after pvc deletion
13
+ persistentVolumeReclaimPolicy : Retain
12
14
storageClassName : blob-nfs
13
15
csi :
14
16
driver : blob.csi.azure.com
15
17
readOnly : false
16
- # make sure volumeid is unique for every identical storage blob container in the cluster
17
- # character `#` is reserved for internal use and cannot be used in volumehandle
18
- volumeHandle : unique-volumeid
18
+ # make sure volumeid is unique for every storage blob container in the cluster
19
+ # the # character is reserved for internal use
20
+ volumeHandle : account-name_container-name
19
21
volumeAttributes :
20
22
resourceGroup : EXISTING_RESOURCE_GROUP_NAME
21
23
storageAccount : EXISTING_STORAGE_ACCOUNT_NAME
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pvc-92a4d7f2-f23b-4904-bad4-2cbfcff6e388
69
69
70
70
Name | Meaning | Available Value | Mandatory | Default value
71
71
--- | --- | --- | --- | ---
72
- volumeHandle | Specify a value the driver can use to uniquely identify the storage blob container in the cluster. | A recommended way to produce a unique value is to combine the globally unique storage account name and container name: {account-name}_ {container-name}. Note: The # character is reserved for internal use and can't be used in a volume handle . | Yes |
72
+ volumeHandle | Specify a value the driver can use to uniquely identify the storage blob container in the cluster. | A recommended way to produce a unique value is to combine the globally unique storage account name and container name: {account-name}_ {container-name}. Note: the # character is reserved for internal use. | Yes |
73
73
volumeAttributes.resourceGroup | Azure resource group name | existing resource group name | No | if empty, driver will use the same resource group name as current k8s cluster
74
74
volumeAttributes.storageAccount | existing storage account name | existing storage account name | Yes |
75
75
volumeAttributes.containerName | existing container name | existing container name | Yes |
You can’t perform that action at this time.
0 commit comments