openebs

by apecloud

Helm chartv3.10.0App 3.10.0Verified publisher

Containerized Attached Storage for Kubernetes

About this chart

:warning: Compatibility

The OpenEBS helm chart now supports the installation of Mayastor. Please note the following before installing Mayastor:

  1. Mayastor is incompatible with NDM (openebs-ndm) and cStor (cstor). Installing Mayastor alongside NDM and cStor may cause it to behave in unexpected ways.
  2. A helm install with the --set mayastor.enabled=true option set will not deploy the LocalPV Provisioner and NDM.
  3. A helm upgrade with the --set mayastor.enabled=true option set will remove the LocalPV Provisioner and NDM, if they are present. This does not affect any LocalPV volumes you have already provisioned, they will continue to work as expected.
  4. Mayastor deployment scenarios involving other OpenEBS storage engines are not tested. It is recommended that you do not install Mayastor along with other storage engines.

OpenEBS Helm Chart

OpenEBS helps Developers and Platform SREs easily deploy Kubernetes Stateful Workloads that require fast and highly reliable container attached storage. OpenEBS can be deployed on any Kubernetes cluster - either in cloud, on-premise (virtual or bare metal) or developer laptop (minikube).

OpenEBS Data Engines and Control Plane are implemented as micro-services, deployed as containers and orchestrated by Kubernetes itself. An added advantage of being a completely Kubernetes native solution is that administrators and developers can interact and manage OpenEBS using all the wonderful tooling that is available for Kubernetes like kubectl, Helm, Prometheus, Grafana, etc.

OpenEBS turns any storage available on the Kubernetes worker nodes into local or distributed Kubernetes Persistent Volumes.

  • Local Volumes are accessible only from a single node in the cluster. Pods using Local Volume have to be scheduled on the node where volume is provisioned. Local Volumes are typically preferred for distributed workloads like Cassandra, MongoDB, Elastic, etc that are distributed in nature and have high availability built into them. Depending on the type of storage attached to your Kubernetes worker nodes, you can select from different flavors of Dynamic Local PV - Hostpath, Device, LVM, ZFS or Rawfile.
  • Replicated Volumes as the name suggests, are those that have their data synchronously replicated to multiple nodes. Volumes can sustain node failures. The replication also can be setup across availability zones helping applications move across availability zones. Depending on the type of storage attached to your Kubernetes worker nodes and application performance requirements, you can select from Jiva, cStor or Mayastor.

Documentation and user guides

You can run OpenEBS on any Kubernetes 1.21+ cluster in a matter of minutes. See the Quickstart Guide to OpenEBS for detailed instructions.

Getting started

How to customize OpenEBS Helm chart?

OpenEBS helm chart is an umbrella chart that pulls together engine specific charts. The engine charts are included as dependencies. arts/openebs/Chart.yaml). OpenEBS helm chart will includes common components that are used by multiple engines like:

  • Node Disk Manager related components
  • Dynamic Local Provisioner related components
  • Security Policies like RBAC, PSP, Kyverno
openebs
├── (default) openebs-ndm
├── (default) localpv-provisioner
├── mayastor
├── jiva
├── cstor
├── zfs-localpv
└── lvm-localpv
└── nfs-provisioner

To install the engine charts, the helm install must be provided with a engine enabled flag like cstor.enabled=true or zfs-localpv.enabled=true or by passing a custom values.yaml with required engines enabled.

Prerequisites

  • Kubernetes 1.18+ with RBAC enabled
  • When using cstor and jiva engines, iSCSI utils must be installed on all the nodes where stateful pods are going to run.
  • Depending on the engine and type of platform, you may have to customize the values or run additional pre-requisistes. Refer to documentation.

Setup Helm Repository

Before installing OpenEBS Helm charts, you need to add the OpenEBS Helm repository to your Helm client.

helm repo add openebs https://openebs.github.io/charts
helm repo update

Installing OpenEBS

helm install --name `my-release` --namespace openebs openebs/openebs --create-namespace

Examples:

  • Assuming the release will be called openebs, the command would be:
    helm install --name openebs --namespace openebs openebs/openebs --create-namespace
    
  • To install OpenEBS with mayastor CSI driver, run
    helm install openebs openebs/openebs --namespace openebs --create-namespace --set mayastor.enabled=true
    

Note: : mayastor will be installed without the default openebs engines

  • To install OpenEBS with cStor CSI driver, run

    helm install openebs openebs/openebs --namespace openebs --create-namespace --set cstor.enabled=true
    
  • To install/enable a new engine on the installed helm release openebs, you can run the helm upgrade command as follows:

    helm upgrade openebs openebs/openebs --namespace openebs --reuse-values --set jiva.enabled=true 
    
  • To disable legacy out of tree jiva and cstor provisioners, run the following command.

    helm upgrade openebs openebs/openebs --namespace openebs --reuse-values --set legacy.enabled=false 
    

To uninstall/delete instance with release name

helm ls --all
helm delete `my-release`

Tip: Prior to deleting the helm chart, make sure all the storage volumes and pools are deleted.

Configuration

The following table lists the common configurable parameters of the OpenEBS chart and their default values. For a full list of configurable parameters check out the values.yaml.

ParameterDescriptionDefault
apiserver.enabledEnable API Servertrue
apiserver.imageImage for API Serveropenebs/m-apiserver
apiserver.imageTagImage Tag for API Server2.12.2
cleanup.image.registryCleanup pre hook image registrynil
cleanup.image.repositoryCleanup pre hook image repository"bitnami/kubectl"
cleanup.image.tagCleanup pre hook image tagif not provided determined by the k8s version
crd.enableInstallEnable installation of CRDs by OpenEBStrue
cstor.pool.imageImage for cStor Poolopenebs/cstor-pool
cstor.pool.imageTagImage Tag for cStor Pool2.12.2
cstor.poolMgmt.imageImage for cStor Pool Managementopenebs/cstor-pool-mgmt
cstor.poolMgmt.imageTagImage Tag for cStor Pool Management2.12.2
cstor.target.imageImage for cStor Targetopenebs/cstor-istgt
cstor.target.imageTagImage Tag for cStor Target2.12.2
cstor.volumeMgmt.imageImage for cStor Volume Managementopenebs/cstor-volume-mgmt
cstor.volumeMgmt.imageTagImage Tag for cStor Volume Management2.12.2
defaultStorageConfig.enabledEnable default storage class installationtrue
featureGates.enabledEnable feature gatestrue
featureGates.GPTBasedUUID.enabledEnable feature gate : GPTBasedUUIDtrue
featureGates.APIService.enabledEnable feature gate : APIServicefalse
featureGates.UseOSDisk.enabledEnable feature gate : UseOSDiskfalse
featureGates.ChangeDetection.enabledEnable feature gate : ChangeDetectionfalse
healthCheck.initialDelaySecondsDelay before liveness probe is initiated30
healthCheck.periodSecondsHow often to perform the liveness probe60
helper.imageImage for helperopenebs/linux-utils
helper.imageTagImage Tag for helper3.4.0
image.pullPolicyContainer pull policyIfNotPresent
image.repositorySpecify which docker registry to use""
jiva.defaultStoragePathhostpath used by default Jiva StorageClass/var/openebs
jiva.imageImage for Jivaopenebs/jiva
jiva.imageTagImage Tag for Jiva2.12.2
jiva.replicasNumber of Jiva Replicas3
localprovisioner.basePathBasePath for hostPath volumes on Nodes/var/openebs/local
localprovisioner.enabledEnable localProvisionertrue
localprovisioner.imageImage for localProvisioneropenebs/provisioner-localpv
localprovisioner.imageTagImage Tag for localProvisioner3.5.0
mayastor.enabledEnable mayastor (disables localprovisioner and ndm)false
mayastor.etcd.replicaCountSet the number of etcd replicas in the3
mayastor.etcd.persistence.storageClassSet the StorageClass name used to provision the volume(s) for the etcd""
`mayastor.etcd.persis

Deploy openebs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openebs on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopenebs is pinned at v3.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply