Member-only story
OpenEBS: LocalPV Hostpath
A light deployment of local pv storage class in Kubernetes
OpenEBS provides two classes of persistent storage: Local PV and Replicated PV. The Local PV has three backends: hostpath, lvm and zfs. In this article, we will provide a step-by-step guide to install and use the local PV with the hostpath. For more information on the other aspects of OpenEBS, please see its official website.
We will use the OpenEBS helm chart to install and configure it. For basic usage of helm package manager, see this helm article.
1. Getting an OpenEBS chart
helm repo add openebs https://openebs.github.io/openebs
helm search repo openebs
helm search repo openebs/openebs --versions
helm fetch openebs/openebs --version 4.1.0 --untar
Here, we get openebs 4.1.0 chart. The helm repo was moved to this location recently. The older versions than 4.0.0 version are available at the previous location.
2. Installation
The suggested helm command for local PV only is
helm install openebs --namespace openebs ./openebs \
--set engines.replicated.mayastor.enabled=false --create-namespace
However, this commend will install components for lvm and zfs local-PV provisioners as well. So, we would like to override some more values.
---
engines:
local:
lvm:
enabled: false
zfs:
enabled: false…