@@ -15,7 +15,7 @@ This tutorial explains how to set up the CSI Hostpath Driver in minikube and cre
- latest version of minikube
## Tutorial
## What you’ll need
Support for volume snapshots in minikube is provided through the `volumesnapshots` addon. This addon provisions the required
CRDs and deploys the Volume Snapshot Controller. It is <b>disabled by default</b>.
...
...
@@ -44,3 +44,136 @@ name `hostpath.csi.k8s.io`. Use this wherever necessary (e.g. snapshot class def
Once both addons are enabled, you can create persistent volumes and snapshots using standard ways (for a quick test of
volume snapshots, you can find some example yaml files along with a step-by-step [here](https://kubernetes-csi.github.io/docs/snapshot-restore-feature.html)).
The driver stores all persistent volumes in the `/var/lib/csi-hostpath-data/` directory of minikube's host.
## Tutorial
In this tutorial, you use `volumesnapshots` addon(1) and `csi-hostpath-driver` addon(2a).
<h2class="step"><spanclass="fa-stack fa-1x"><iclass="fa fa-circle fa-stack-2x"></i><strongclass="fa-stack-1x text-primary">1</strong></span>Start your cluster</h2>
Before creating volume snapshot, you have to register [Volume Snapshot Classes](https://kubernetes.io/docs/concepts/storage/volume-snapshot-classes/) to your cluster.
Here is an example `VolumeSnapshotClass` config to register: