Skip to content

Commit

Permalink
Merge pull request #193 from andyzhangx/rename
Browse files Browse the repository at this point in the history
doc: rename examples
  • Loading branch information
andyzhangx authored Aug 5, 2020
2 parents a8c142b + eb4b8c8 commit 47327da
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions deploy/example/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kind: Deployment
metadata:
labels:
app: nginx
name: deployment-blobfuse
name: deployment-blob
spec:
replicas: 1
selector:
Expand All @@ -26,18 +26,18 @@ spec:
metadata:
labels:
app: nginx
name: deployment-blobfuse
name: deployment-blob
spec:
containers:
- name: deployment-blobfuse
- name: deployment-blob
image: nginx
command:
- "/bin/sh"
- "-c"
- while true; do echo $(date) >> /mnt/blobfuse/outfile; sleep 1; done
- while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
volumeMounts:
- name: blobfuse
mountPath: "/mnt/blobfuse"
mountPath: "/mnt/blob"
readOnly: false
volumes:
- name: blobfuse
Expand Down
12 changes: 6 additions & 6 deletions deploy/example/e2e_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi

- Create a blobfuse CSI PVC
```console
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blob-csi.yaml
```

### Static Provisioning(use an existing storage account)
Expand All @@ -35,7 +35,7 @@ kubectl create -f storageclass-blobfuse-csi-existing-container.yaml

- Create a blobfuse CSI PVC
```console
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blob-csi.yaml
```

#### Option#2: provide storage account name and key(or sastoken)
Expand Down Expand Up @@ -76,7 +76,7 @@ kubectl create -f pv-blobfuse-csi.yaml

- Create a blobfuse CSI PVC which would be bound to the above PV
```console
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi-static.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blob-csi-static.yaml
```

#### 2. Validate PVC status and create an nginx pod
Expand All @@ -87,7 +87,7 @@ watch kubectl describe pvc pvc-blobfuse

- create a pod with blobfuse CSI PVC
```console
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/nginx-pod-blobfuse.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/nginx-pod-blob.yaml
```

#### 3. enter the pod container to do validation
Expand All @@ -97,8 +97,8 @@ $ watch kubectl describe po nginx-blobfuse
$ kubectl exec -it nginx-blobfuse -- bash
Filesystem Size Used Avail Use% Mounted on
...
blobfuse 30G 8.9G 21G 31% /mnt/blobfuse
blobfuse 30G 8.9G 21G 31% /mnt/blob
/dev/sda1 30G 8.9G 21G 31% /etc/hosts
...
```
In the above example, there is a `/mnt/blobfuse` directory mounted as `blobfuse` filesystem.
In the above example, there is a `/mnt/blob` directory mounted as `blobfuse` filesystem.
4 changes: 2 additions & 2 deletions deploy/example/nfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi

- enter pod to check
```console
$ exec -it statefulset-blobfuse-0 bash
$ exec -it statefulset-blob-0 bash
# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda1 29G 11G 19G 37% /etc/hosts
accountname.blob.core.windows.net:/accountname/pvc-cce02240-5d13-4bcb-b9eb-f9c7eeaaa640 256T 0 256T 0% /mnt/blobfuse
accountname.blob.core.windows.net:/accountname/pvc-cce02240-5d13-4bcb-b9eb-f9c7eeaaa640 256T 0 256T 0% /mnt/blob
...
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ spec:
command:
- "/bin/sh"
- "-c"
- while true; do echo $(date) >> /mnt/blobfuse/outfile; sleep 1; done
- while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
volumeMounts:
- name: blobfuse01
mountPath: "/mnt/blobfuse"
mountPath: "/mnt/blob"
volumes:
- name: blobfuse01
persistentVolumeClaim:
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions deploy/example/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: statefulset-blobfuse
name: statefulset-blob
labels:
app: nginx
spec:
serviceName: statefulset-blobfuse
serviceName: statefulset-blob
replicas: 1
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: statefulset-blobfuse
- name: statefulset-blob
image: nginx
command:
- "/bin/sh"
- "-c"
- while true; do echo $(date) >> /mnt/blobfuse/outfile; sleep 1; done
- while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done
volumeMounts:
- name: persistent-storage
mountPath: /mnt/blobfuse
mountPath: /mnt/blob
updateStrategy:
type: RollingUpdate
selector:
Expand Down
2 changes: 1 addition & 1 deletion docs/read-from-keyvault.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ kubectl apply -f pv-blobfuse-csi-keyvault.yaml
## Create PVC

```console
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blobfuse-csi-static.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/deploy/example/pvc-blob-csi-static.yaml
```

0 comments on commit 47327da

Please sign in to comment.