Skip to content

Commit d069f95

Browse files
authored
Update e2e_usage.md
1 parent 570952e commit d069f95

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

deploy/example/e2e_usage.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
3435
Filesystem Size Used Avail Use% Mounted on
3536
...
3637
blobfuse 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>
121124
Filesystem Size Used Avail Use% Mounted on
122125
...
123126
blobfuse 14G 41M 13G 1% /mnt/blob
124127
...
125-
```
128+
</pre>
129+
126130
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

Comments
 (0)