Homepage: https://openebs.io/
From MicroK8s version: 1.21+
Supported arch: amd64, arm64 (1.22+)
OpenEBS, 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
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
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
To disable openebs
,
microk8s disable openebs
or
microk8s disable openebs:force