Skip to content

Commit c6610ea

Browse files
authored
Update README.md
1 parent 47bad6c commit c6610ea

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,35 @@ Please refer to [`blobfuse.csi.azure.com` driver parameters](./docs/driver-param
3333
### Install blobfuse CSI driver on a kubernetes cluster
3434
Please refer to [install blobfuse csi driver](https://github.com/csi-driver/blobfuse-csi-driver/blob/master/docs/install-blobfuse-csi-driver.md)
3535

36-
### E2E Usage example
37-
#### 1. create a pod with csi blobfuse driver mount on linux
38-
##### Option#1: Blobfuse Dynamic Provisioning
36+
## E2E Usage example
37+
### 1. create a pod with csi blobfuse driver mount on linux
38+
#### Blobfuse Dynamic Provisioning
3939
- Create an blobfuse CSI storage class
40-
```
40+
```sh
4141
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/storageclass-blobfuse-csi.yaml
4242
```
4343

4444
- Create an blobfuse CSI PVC
45+
```sh
46+
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi.yaml
47+
```
48+
49+
#### Blobfuse Static Provisioning(use an existing storage container)
50+
##### Option#1: use existing credentials in k8s cluster
51+
> make sure the existing credentials in k8s cluster(e.g. service principal, msi) could access the specified storage account
52+
- Download an blobfuse CSI storage class, edit `resourceGroup`, `storageAccount`, `containerName` to use existing storage container
53+
```sh
54+
wget -O storageclass-blobfuse-csi-existing-container.yaml https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/storageclass-blobfuse-csi-existing-container.yaml
55+
vi storageclass-blobfuse-csi-existing-container.yaml
56+
kubectl create -f storageclass-blobfuse-csi-existing-container.yaml
4557
```
58+
59+
- Create an blobfuse CSI PVC
60+
```sh
4661
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi.yaml
4762
```
4863

49-
##### Option#2: Blobfuse Static Provisioning(use an existing storage container)
64+
##### Option#2: provide storage account name and key
5065
- Use `kubectl create secret` to create `azure-secret` with existing storage account name and key
5166
```
5267
kubectl create secret generic azure-secret --from-literal accountname=NAME --from-literal accountkey="KEY" --type=Opaque
@@ -64,7 +79,7 @@ kubectl create -f pv-blobfuse-csi.yaml
6479
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi-static.yaml
6580
```
6681

67-
#### 2. validate PVC status and create an nginx pod
82+
#### 2. Validate PVC status and create an nginx pod
6883
- make sure pvc is created and in `Bound` status finally
6984
```
7085
watch kubectl describe pvc pvc-blobfuse

0 commit comments

Comments
 (0)