Skip to content

Commit 54e3243

Browse files
Merge pull request #223778 from zioproto/patch-2
Note spec.capacity.storage is required but unused
2 parents 038cc0b + bbc3fb4 commit 54e3243

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/aks/azure-csi-blob-storage-static.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The following example demonstrates how to mount a Blob storage container as a pe
9191
name: pv-blob
9292
spec:
9393
capacity:
94-
storage: 10Gi
94+
storage: 1Pi
9595
accessModes:
9696
- ReadWriteMany
9797
persistentVolumeReclaimPolicy: Retain # If set as "Delete" container would be removed after pvc deletion
@@ -108,6 +108,8 @@ The following example demonstrates how to mount a Blob storage container as a pe
108108
containerName: containerName
109109
protocol: nfs
110110
```
111+
> [!NOTE]
112+
> While the [Kubernetes API](https://github.com/kubernetes/kubernetes/blob/release-1.26/pkg/apis/core/types.go#L303-L306) **capacity** attribute is mandatory, this value isn't used by the Azure Blob storage CSI driver because you can flexibly write data until you reach your storage account's capacity limit. The value of the `capacity` attribute is used only for size matching between *PersistentVolumes* and *PersistenVolumeClaims*. We recommend using a fictitious high value. The pod sees a mounted volume with a fictitious size of 5 Petabytes.
111113

112114
2. Run the following command to create the persistent volume using the `kubectl create` command referencing the YAML file created earlier:
113115

@@ -222,7 +224,7 @@ Kubernetes needs credentials to access the Blob storage container created earlie
222224
kubectl create -f pvc-blobfuse.yaml
223225
```
224226

225-
## Use the persistence volume
227+
## Use the persistent volume
226228

227229
The following YAML creates a pod that uses the persistent volume or persistent volume claim named **pvc-blob** created earlier, to mount the Azure Blob storage at the `/mnt/blob' path.
228230

0 commit comments

Comments
 (0)