Skip to content

Commit 343e444

Browse files
authored
Update e2e_usage.md
1 parent e74ad83 commit 343e444

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deploy/example/e2e_usage.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
22
#### 1. create a pod with csi azurefile driver mount on linux
33
##### Option#1: Azurefile Dynamic Provisioning
44
- Create an azurefile CSI storage class
5-
```
5+
```console
66
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/storageclass-azurefile-csi.yaml
77
```
88

99
- Create an azurefile CSI PVC
10-
```
10+
```console
1111
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/pvc-azurefile-csi.yaml
1212
```
1313

1414
##### Option#2: Azurefile Static Provisioning(use an existing azure file share)
1515
- Use `kubectl create secret` to create `azure-secret` with existing storage account name and key
16-
```
16+
```console
1717
kubectl create secret generic azure-secret --from-literal accountname=NAME --from-literal accountkey="KEY" --type=Opaque
1818
```
1919

2020
- Create an azurefile CSI PV, download `pv-azurefile-csi.yaml` file and edit `shareName` in `volumeAttributes`
21-
```
21+
```console
2222
wget https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/pv-azurefile-csi.yaml
2323
vi pv-azurefile-csi.yaml
2424
kubectl create -f pv-azurefile-csi.yaml
2525
```
2626

2727
- Create an azurefile CSI PVC which would be bound to the above PV
28-
```
28+
```console
2929
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/pvc-azurefile-csi-static.yaml
3030
```
3131

3232
#### 2. validate PVC status and create an nginx pod
3333
- make sure pvc is created and in `Bound` status finally
34-
```
34+
```console
3535
watch kubectl describe pvc pvc-azurefile
3636
```
3737

3838
- create a pod with azurefile CSI PVC
39-
```
39+
```console
4040
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy/example/nginx-pod-azurefile.yaml
4141
```
4242

4343
#### 3. enter the pod container to do validation
4444
- watch the status of pod until its Status changed from `Pending` to `Running` and then enter the pod container
45-
```
45+
```console
4646
$ watch kubectl describe po nginx-azurefile
4747
$ kubectl exec -it nginx-azurefile -- bash
4848
root@nginx-azurefile:/# df -h

0 commit comments

Comments
 (0)