Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples fix #65

Merged
merged 1 commit into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ csi-hostpathplugin-0 2/2 Running 0 5m45s
From the root directory, deploy the application pods including a storage class, a PVC, and a pod which mounts a volume using the Hostpath driver found in directory `./examples`:

```shell
$ kubectl create -f ./examples
$ for i in ./examples/csi-storageclass.yaml ./examples/csi-pvc.yaml ./examples/csi-app.yaml; do kubectl apply -f $i; done
pod/my-csi-app created
persistentvolumeclaim/csi-pvc created
storageclass.storage.k8s.io/csi-hostpath-sc created
Expand Down Expand Up @@ -234,9 +234,10 @@ Since volume snapshot is an alpha feature starting in Kubernetes v1.12, you need
> Events: <none>
> ```

Use the volume snapshot class to dynamically create a volume snapshot:
After having created the `csi-pvc` as described in the example above,
use the volume snapshot class to dynamically create a volume snapshot:

> $ kubectl create -f examples/csi-snapshot.yaml
> $ kubectl apply -f examples/csi-snapshot.yaml
> ```
> volumesnapshot.snapshot.storage.k8s.io/new-snapshot-demo created
> ```
Expand Down Expand Up @@ -324,7 +325,7 @@ Use the volume snapshot class to dynamically create a volume snapshot:

Follow the following example to create a volume from a volume snapshot:

> $ kubectl create -f examples/csi-restore.yaml
> $ kubectl apply -f examples/csi-restore.yaml
> `persistentvolumeclaim/hpvc-restore created`
>
> $ kubectl get pvc
Expand Down
2 changes: 1 addition & 1 deletion examples/csi-app-inline.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: Pod
apiVersion: v1
metadata:
name: my-csi-app
name: my-csi-app-inline
spec:
containers:
- name: my-frontend
Expand Down