volume snapshot
Table of Content
volume snapshot¶
backup and restore using Kubernetes volume snapshot¶
https://kubernetes.io/docs/concepts/storage/volume-snapshots/
Similar to how API resources PersistentVolume and PersistentVolumeClaim are used to provision volumes for users and administrators, VolumeSnapshotContent and VolumeSnapshot API resources are provided to create volume snapshots for users and administrators.
A VolumeSnapshotContent is a snapshot taken from a volume in the cluster that has been provisioned by an administrator. It is a resource in the cluster just like a PersistentVolume is a cluster resource.
A VolumeSnapshot is a request for snapshot of a volume by a user. It is similar to a PersistentVolumeClaim.
directpv does not support volume snapshots¶
Oh no... Do I have to start all over?
setup¶
# before the setup
$ kubectl api-resources | grep csi
metricsinstances monitoring.grafana.com/v1alpha1 true MetricsInstance
csidrivers storage.k8s.io/v1 false CSIDriver
csinodes storage.k8s.io/v1 false CSINode
csistoragecapacities storage.k8s.io/v1 true CSIStorageCapacity
$ kubectl get csidrivers
NAME ATTACHREQUIRED PODINFOONMOUNT STORAGECAPACITY TOKENREQUESTS REQUIRESREPUBLISH MODES AGE
csi.tigera.io true true false <unset> false Ephemeral 45d
directpv-min-io false true false <unset> false Persistent,Ephemeral 45d