@@ -82,7 +82,7 @@ csi-hostpathplugin-0 2/2 Running 0 5m45s
8282From 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 ` :
8383
8484``` shell
85- $ kubectl create -f ./examples
85+ $ for i in ./examples/csi-storageclass.yaml ./examples/csi-pvc.yaml ./examples/csi-app.yaml ; do kubectl apply -f $i ; done
8686pod/my-csi-app created
8787persistentvolumeclaim/csi-pvc created
8888storageclass.storage.k8s.io/csi-hostpath-sc created
@@ -230,13 +230,14 @@ Since volume snapshot is an alpha feature starting in Kubernetes v1.12, you need
230230> Resource Version: 2418
231231> Self Link: /apis/snapshot.storage.k8s.io/v1alpha1/volumesnapshotclasses/csi-hostpath-snapclass
232232> UID: c8f5bc47-c716-11e8-8911-000c2967769a
233- > Snapshotter: csi- hostpath
233+ > Snapshotter: hostpath.csi.k8s.io
234234> Events: <none>
235235> ```
236236
237- Use the volume snapshot class to dynamically create a volume snapshot:
237+ After having created the `csi-pvc` as described in the example above,
238+ use the volume snapshot class to dynamically create a volume snapshot:
238239
239- > $ kubectl create -f examples/csi-snapshot.yaml
240+ > $ kubectl apply -f examples/csi-snapshot.yaml
240241> ```
241242> volumesnapshot.snapshot.storage.k8s.io/new-snapshot-demo created
242243> ```
@@ -299,7 +300,7 @@ Use the volume snapshot class to dynamically create a volume snapshot:
299300> Spec:
300301> Csi Volume Snapshot Source:
301302> Creation Time: 1538576205471577525
302- > Driver: csi- hostpath
303+ > Driver: hostpath.csi.k8s.io
303304> Restore Size: 1073741824
304305> Snapshot Handle: f55ff979-c716-11e8-bb16-000c2967769a
305306> Deletion Policy: Delete
@@ -324,7 +325,7 @@ Use the volume snapshot class to dynamically create a volume snapshot:
324325
325326Follow the following example to create a volume from a volume snapshot:
326327
327- > $ kubectl create -f examples/csi-restore.yaml
328+ > $ kubectl apply -f examples/csi-restore.yaml
328329> `persistentvolumeclaim/hpvc-restore created`
329330>
330331> $ kubectl get pvc
@@ -387,7 +388,7 @@ spec:
387388 volumes :
388389 - name : my-csi-volume
389390 csi :
390- driver : csi- hostpath
391+ driver : hostpath.csi.k8s.io
391392` ` `
392393
393394> See sample YAML file [here](./examples/csi-app-inline.yaml).
0 commit comments