From fa19319dc6e0fd87eb821b5337a4fbb07fa2e55b Mon Sep 17 00:00:00 2001 From: jjanik <11janci@seznam.cz> Date: Fri, 4 Sep 2020 16:59:16 +0200 Subject: [PATCH] third --- .../tutorials/volume_snapshots_and_csi.md | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/site/content/en/docs/tutorials/volume_snapshots_and_csi.md b/site/content/en/docs/tutorials/volume_snapshots_and_csi.md index 19386c7a5df6..53c3ade5a822 100644 --- a/site/content/en/docs/tutorials/volume_snapshots_and_csi.md +++ b/site/content/en/docs/tutorials/volume_snapshots_and_csi.md @@ -18,12 +18,18 @@ This tutorial explains how to set up the CSI Hostpath Driver in minikube and cre ## Tutorial 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 enabled by default. +CRDs and deploys the Volume Snapshot Controller. It is disabled by default. -However, the default storage provider in minikube does not implement the CSI interface and thus is NOT capable of -creating/handling volume snapshots. To utilize the volume snapshots functionality, you must first deploy a CSI driver. -To make this easy, minikube offers the `csi-hostpath-driver` addon, which deploys the [CSI Hostpath Driver](https://github.com/kubernetes-csi/csi-driver-host-path). -By default, this addon is disabled. +Furthermore, the default storage provider in minikube does not implement the CSI interface and thus is NOT capable of creating/handling +volume snapshots. For that, you must first deploy a CSI driver. To make this step easy, minikube offers the `csi-hostpath-driver` addon, +which deploys the [CSI Hostpath Driver](https://github.com/kubernetes-csi/csi-driver-host-path). This addon is disabled +by default as well. + +Thus, to utilize the volume snapshots functionality, you must: + +1\) enable the `volumesnapshots` addon AND\ +2a\) either enable the `csi-hostpth-driver` addon OR\ +2b\) deploy your own CSI driver You can enable/disable either of the above-mentioned addons using ```shell script @@ -33,8 +39,8 @@ minikube addons disable [ADDON_NAME] The `csi-hostpath-driver` addon deploys its required resources into the `kube-system` namespace and sets up a dedicated storage class called `csi-hostpath-sc` that you need to reference in your PVCs. The driver itself is created under the -name `hostpath.csi.k8s.io`. Use this wherever necessary (for example snapshot class definitions). +name `hostpath.csi.k8s.io`. Use this wherever necessary (e.g. snapshot class definitions). 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 with a step-by-step [here](https://kubernetes-csi.github.io/docs/snapshot-restore-feature.html)). +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. \ No newline at end of file