@@ -29,13 +29,14 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-dri
2929
3030 - Execute ` df -h ` command in the container
3131``` console
32- # kubectl exec -it statefulset-blob-0 sh
33- # df -h
32+ kubectl exec -it statefulset-blob-0 -- df -h
33+ ```
34+ <pre >
3435Filesystem Size Used Avail Use% Mounted on
3536...
3637blobfuse 14G 41M 13G 1% /mnt/blob
3738...
38- ```
39+ </ pre >
3940
4041### Static Provisioning(use an existing storage account)
4142#### Option #1 : Use storage class
@@ -117,10 +118,27 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-dri
117118
118119 - Execute ` df -h ` command in the container
119120``` console
120- $ kubectl exec -it nginx-blob -- df -h
121+ kubectl exec -it nginx-blob -- df -h
122+ ```
123+ <pre >
121124Filesystem Size Used Avail Use% Mounted on
122125...
123126blobfuse 14G 41M 13G 1% /mnt/blob
124127...
125- ```
128+ </pre >
129+
126130In the above example, there is a ` /mnt/blob ` directory mounted as ` blobfuse ` filesystem.
131+
132+ #### Option #3 : Inline volume
133+ > only available from ` v1.2.0 `
134+ - Use ` kubectl create secret ` to create ` azure-secret ` with existing storage account name and key
135+ ``` console
136+ kubectl create secret generic azure-secret --from-literal accountname=NAME --from-literal accountkey="KEY" --type=Opaque
137+ ```
138+
139+ - download ` nginx-pod-azurefile-inline-volume.yaml ` file and edit ` containerName ` , ` secretName ` , ` secretNamespace `
140+ ``` console
141+ wget https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/deploy/example/nginx-blobfuse-inline-volume.yaml
142+ #edit nginx-blobfuse-inline-volume.yaml
143+ kubectl create -f nginx-blobfuse-inline-volume.yaml
144+ ```
0 commit comments