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

Add support to all k8s versions for VolumeSnapshot #160

Merged
merged 1 commit into from
Feb 19, 2020
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: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,16 @@ Since volume snapshot is an alpha feature starting in Kubernetes v1.12, you need
After having created the `csi-pvc` as described in the example above,
use the volume snapshot class to dynamically create a volume snapshot:

> $ kubectl apply -f examples/csi-snapshot.yaml
> For Kubernetes < v1.17
>
> - `$ kubectl apply -f examples/csi-snapshot.yaml`
>
> For Kubernetes >= v1.17
> - `$ kubectl apply -f examples/csi-snapshot-v1beta1.yaml`
> ```
> volumesnapshot.snapshot.storage.k8s.io/new-snapshot-demo created
> ```
>

>
> $ kubectl get volumesnapshot
> ```
Expand Down
8 changes: 8 additions & 0 deletions examples/csi-snapshot-v1beta1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshot
metadata:
name: new-snapshot-demo
spec:
volumeSnapshotClassName: csi-hostpath-snapclass
source:
persistentVolumeClaimName: csi-pvc