@@ -33,20 +33,35 @@ Please refer to [`blobfuse.csi.azure.com` driver parameters](./docs/driver-param
33
33
### Install blobfuse CSI driver on a kubernetes cluster
34
34
Please refer to [ install blobfuse csi driver] ( https://github.com/csi-driver/blobfuse-csi-driver/blob/master/docs/install-blobfuse-csi-driver.md )
35
35
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
39
39
- Create an blobfuse CSI storage class
40
- ```
40
+ ``` sh
41
41
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/storageclass-blobfuse-csi.yaml
42
42
```
43
43
44
44
- 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
45
57
```
58
+
59
+ - Create an blobfuse CSI PVC
60
+ ``` sh
46
61
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi.yaml
47
62
```
48
63
49
- ##### Option #2 : Blobfuse Static Provisioning(use an existing storage container)
64
+ ##### Option #2 : provide storage account name and key
50
65
- Use ` kubectl create secret ` to create ` azure-secret ` with existing storage account name and key
51
66
```
52
67
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
64
79
kubectl create -f https://raw.githubusercontent.com/csi-driver/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi-static.yaml
65
80
```
66
81
67
- #### 2. validate PVC status and create an nginx pod
82
+ #### 2. Validate PVC status and create an nginx pod
68
83
- make sure pvc is created and in ` Bound ` status finally
69
84
```
70
85
watch kubectl describe pvc pvc-blobfuse
0 commit comments