@@ -29,13 +29,14 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-dri
29
29
30
30
- Execute ` df -h ` command in the container
31
31
``` console
32
- # kubectl exec -it statefulset-blob-0 sh
33
- # df -h
32
+ kubectl exec -it statefulset-blob-0 -- df -h
33
+ ```
34
+ <pre >
34
35
Filesystem Size Used Avail Use% Mounted on
35
36
...
36
37
blobfuse 14G 41M 13G 1% /mnt/blob
37
38
...
38
- ```
39
+ </ pre >
39
40
40
41
### Static Provisioning(use an existing storage account)
41
42
#### Option #1 : Use storage class
@@ -117,10 +118,27 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-dri
117
118
118
119
- Execute ` df -h ` command in the container
119
120
``` console
120
- $ kubectl exec -it nginx-blob -- df -h
121
+ kubectl exec -it nginx-blob -- df -h
122
+ ```
123
+ <pre >
121
124
Filesystem Size Used Avail Use% Mounted on
122
125
...
123
126
blobfuse 14G 41M 13G 1% /mnt/blob
124
127
...
125
- ```
128
+ </pre >
129
+
126
130
In 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