HostPath CSI Driver for Trilio for Kubernetes
This section describes installation of Hostpath CSI driver
Deprecated Documentation
This document is deprecated and no longer supported. For accurate, up-to-date information, please refer to the documentation for the latest version of Trilio.
HostPath CSI Driver for Trilio for Kubernetes
HostPath is a storage type where volumes refer to directories on the Node (VM/machine) where your Pod is scheduled for running.
In this section, we are going to see how to enable HostPath for your Kubernetes Cluster and test the VolumeSnapshot functionality which is the prerequisite for Trilio for Kubernetes.
Follow the steps below to install and validate the HostPath CSI driver :
Clone the hostpath GitHub repository:
Go to the specific directory where the installation script is available. This depends on your Kubernetes cluster version
Skip this step if the Kubernetes version is less than 1.17
Run the shell script based on your cluster OCP/K8s Version. Make sure you install this driver in the Default namespace
Wait for the installation to complete and verify if the driver is installed correctly.
Create a Storage Class for Hostpath
Create a VolumeSnapshot Class for Hostpath. At this step, we need to use the API version based on K8s/OCP Version.
OCP 4.3/k8s 1.16 :
apiVersion: snapshot.storage.k8s.io/v1alpha1
OCP 4.4/K8s 1.17+ :
apiVersion: snapshot.storage.k8s.io/v1beta1
Create a test volume eg: task-pv-claim
Create a snapshot of task-pv-claim.
If using the Alpha version of the API
If using the Beta version of the API
Verify if snapshot and volume snapshot content shows created snapshot.
Last updated