You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -154,12 +162,56 @@ You can use a dedicated user-assigned managed identity to mount the storage.
154
162
kubectl get pv
155
163
kubectl get pvc
156
164
157
-
# create deployment and service
165
+
# create deployment
158
166
kubectl apply -f deployment.yaml
159
167
# check pod
160
168
kubectl get pods
161
169
```
162
170
171
+
# dynamic provisioning in an existing resource group
172
+
173
+
1. Grant cluster system assigned identity and kubelet identity `Contributor` role to resource group, if mount in an existing storage account, then should also grant identity to storage account
174
+
175
+
1. Grant kubelet identity `Storage Blob Data Owner` role to resource group to mount blob storage, if mount in an existing storage account, then should also grant identity to storage account
176
+
177
+
1. Create a storage class and give an existing resource group, CSI will create a new storage account when `storageAccount` is not provided.
178
+
```yml
179
+
apiVersion: storage.k8s.io/v1
180
+
kind: StorageClass
181
+
metadata:
182
+
name: blob-fuse
183
+
provisioner: blob.csi.azure.com
184
+
parameters:
185
+
skuName: Premium_LRS
186
+
protocol: fuse
187
+
resourceGroup: EXISTING_RESOURCE_GROUP_NAME
188
+
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME # optional, if use existing storage account
189
+
containerName: EXISTING_CONTAINER_NAME # optional, if use existing container
0 commit comments