Skip to content

Latest commit

 

History

History
 
 

snapshot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Snapshot Example

Attention: Since volume snapshot is an alpha feature in Kubernetes currently, you need to enable a new alpha feature gate called VolumeSnapshotDataSource in the Kubernetes master.

--feature-gates=VolumeSnapshotDataSource=true

Create a StorageClass

kubectl apply -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/storageclass-azurefile-csi.yaml

Create a PVC

kubectl apply -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/pvc-azurefile-csi.yaml

Create a VolumeSnapshotClass

kubectl apply -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/snapshot/volumesnapshotclass-azurefile.yaml

Create a VolumeSnapshot

kubectl apply -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/snapshot/volumesnapshot-azurefile.yaml

Delete a VolumeSnapshot

kubectl delete -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/snapshot/volumesnapshot-azurefile.yaml

Delete a VolumeSnapshotClass

kubectl delete -f $GOPATH/src/github.com/kubernetes-sigs/azurefile-csi-driver/deploy/example/snapshot/volumesnapshotclass-azurefile.yaml