---
title: 'Addon: OpenEBS'
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical.com/microk8s/docs/addon-openebs?format=md
---

*Submit*

# Addon: OpenEBS

Homepage: **<https://openebs.io/>**
From MicroK8s version: **1.21+**
Supported arch: **amd64, arm64 (1.22+)**

[OpenEBS](https://openebs.io/), is the most widely deployed and easy to use open-source storage solution for Kubernetes. can be enabled with:

`microk8s enable openebs`

The addon includes the following `StorageClass`

* `openebs-hostpath` and
* `openebs-jiva-default`

The `openebs-hostpath` is recommended when using on a laptop or a single node cluster. Use `openebs-jiva-default` `StorageClass` for multi-node cluster.

**Note: Using `openebs-jiva-default` requires to have 3 replicas.**

Using OpenEBS is as easy as creating a `PersistentVolumeClaim`.

### [On a single node MicroK8s](https://canonical.com/microk8s/docs/addon-openebs?format=md#p-26200-on-a-single-node-microk8s)

When using OpenEBS with a single node MicroK8s, it is recommended to use the openebs-hostpath StorageClass

To create a PersistentVolumeClaim utilizing the openebs-hostpath StorageClass

```
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: local-hostpath-pvc
spec:
  storageClassName: openebs-hostpath
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 5G
```

### [On multi-node MicroK8s](https://canonical.com/microk8s/docs/addon-openebs?format=md#p-26200-on-multi-node-microk8s)

If you are planning to use OpenEBS with multi nodes, you can use the `openebs-jiva-csi-default` StorageClass.
For example:

```
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: jiva-volume-claim
spec:
  storageClassName: openebs-jiva-csi-default
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 5G
```

**Note:** Running versions of Kubernetes prior to 1.23 will create the `openebs-jiva-default` storage class instead of `openebs-jiva-csi-default`

## [Disabling](https://canonical.com/microk8s/docs/addon-openebs?format=md#p-26200-disabling)

To disable `openebs`,

`microk8s disable openebs`
or
 `microk8s disable openebs:force`

Last updated 4 years ago. [Help improve this document in the forum](https://discuss.kubernetes.io/t/addon-openebs/15229).
