openebs

by OpenEBS

Helm chartv4.7.0-developApp 4.7.0-developVerified publisher

Containerized Attached Storage for Kubernetes

About this chart

OpenEBS Helm Repository

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 system (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 PV

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 the Kubernetes worker, OpenEBS offers different flavors of Local PV - Hostpath, LVM, ZFS and Rawfile.

Replicated PV

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. OpenEBS offers Replicated PV Mayastor as an replicated storage solution, which provides high availability and high performance.

Documentation and user guides

OpenEBS can run on any Kubernetes 1.23+ 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 a unified Helm chart that pulls together engine specific charts. The engine charts are included as dependencies.

openebs
├── (default) Local PV HostPath
├── (default) Local PV LVM
├── (default) Local PV ZFS
├── (default) Local PV Rawfile
└── (default) Replicated PV Mayastor

Prerequisites

Setup Helm Repository

Before installing OpenEBS Helm chart, the OpenEBS Helm repository needs to be added to the Helm client.

Setup Helm repository

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

Install OpenEBS Helm chart with default values.

helm install openebs --namespace openebs openebs/openebs --create-namespace

The above commands will install OpenEBS LocalPV Hostpath, OpenEBS LocalPV LVM, OpenEBS LocalPV ZFS and OpenEBS Mayastor components in openebs namespace with chart name as openebs.

Replicated PV Mayastor can be excluded during the installation with the following command:

helm install openebs --namespace openebs openebs/openebs --set engines.replicated.mayastor.enabled=false --create-namespace

As a next step verify the installation and do the post installation steps.

For more details on customizing and installing OpenEBS please see the chart values.

To uninstall/delete instance with release name

helm delete `<RELEASE NAME>` -n `<RELEASE NAMESPACE>`

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

Chart Dependencies

RepositoryNameVersion
openebs-crds4.7.0-develop
https://grafana.github.io/helm-chartsalloy1.0.1
https://grafana.github.io/helm-chartsloki6.29.0
https://openebs.github.io/dynamic-localpv-provisionerlocalpv-provisioner4.7.0-develop
https://openebs.github.io/lvm-localpvlvm-localpv1.11.0-develop
https://openebs.github.io/mayastor-extensionsmayastor0.0.0
https://openebs.github.io/rawfile-localpvrawfile-localpv0.15.1
https://openebs.github.io/zfs-localpvzfs-localpv2.12.0-develop

Values

KeyDescriptionDefault
alloy.​enabledEnable/Disable Alloy.true
alloy.​logging_config.​labelsLabels to enable scraping on, at-least one of these labels should be present.{"openebs.io/logging":true}
alloy.​logging_config.​tenant_idX-Scope-OrgID to be populated when pushing logs. Make sure the caller also uses the same."openebs"
engines.​local.​hostpath.​enabledEnable/Disable Dynamic LocalPV Provisionertrue
engines.​local.​lvm.​enabledEnable/Disable LocalPV LVM Storage Enginetrue
engines.​local.​rawfile.​enabledEnable/Disable LocalPV Rawfile Storage Enginefalse
engines.​local.​zfs.​enabledEnable/Disable LocalPV ZFS Storage Enginetrue
engines.​replicated.​mayastor.​enabledEnable/Disable Replicated PV Mayastor Storage Enginetrue
global.​imagePullPolicyGlobal override for image pull policy""
global.​imagePullSecretsGlobal image pull secrets (merged with local imagePullSecrets and not overridden) - secret[]
global.​imageRegistryGlobal override for container image registry""
loki.​enabledEnable/Disable loki.true
loki.​localpvScConfig.​loki.​basePathHost path where local loki data is stored in."/var/local/{{ .Release.Name }}/localpv-hostpath/loki"
loki.​localpvScConfig.​loki.​reclaimPolicyReclaimPolicy of loki's localpv hostpath storage class."Delete"
loki.​localpvScConfig.​loki.​volumeBindingModeVolumeBindingMode of loki's localpv hostpath storage class."WaitForFirstConsumer"
loki.​localpvScConfig.​minio.​basePathHost path where local minio data is stored in."/var/local/{{ .Release.Name }}/localpv-hostpath/minio"
loki.​localpvScConfig.​minio.​reclaimPolicyReclaimPolicy of minio's localpv hostpath storage class."Delete"
loki.​localpvScConfig.​minio.​volumeBindingModeVolumeBindingMode of minio's localpv hostpath storage class."WaitForFirstConsumer"
loki.​minio.​enabledDisable this if you want to enable external s3 bucket, and uncomment the storage section above.true
loki.​minio.​persistence.​enabledEnabled persistence for miniotrue
loki.​minio.​persistence.​sizeSize of minio local storage volume"2Gi"
loki.​minio.​persistence.​storageClassStorage class for minio storage"openebs-minio-localpv"
loki.​minio.​replicasSpecify the number of Minio Replicas.3
loki.​singleBinary.​persistence.​enabledEnabled persistence for lokitrue
loki.​singleBinary.​persistence.​sizeSize of loki local storage volume"2Gi"
loki.​singleBinary.​persistence.​storageClassStorage class for loki storage"openebs-loki-localpv"
mayastor.​etcd.​clusterDomainKubernetes Cluster Domain"cluster.local"
openebs-crds.​csi.​volumeSnapshots.​enabledEnable/Disable installation of Volume Snapshot CRD'strue
preUpgradeHook.​enabledEnable/Disable openebs pre-upgrade hooktrue
preUpgradeHook.​image.​pullPolicyThe imagePullPolicy for the container"IfNotPresent"
preUpgradeHook.​image.​registryThe container image registry URL for the hook job"docker.io"
preUpgradeHook.​image.​repoThe container repository for the hook job"openebs/kubectl"
preUpgradeHook.​image.​tagThe container image tag for the hook job"1.25.15"
preUpgradeHook.​imagePullSecretsOptional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/[]
preUpgradeHook.​tolerationsNode tolerations for server scheduling to nodes with taints # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ #[]

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 v4.7.0-develop 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