Addon: OpenEBS
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
andopenebs-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
.
As an example:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: local-hostpath-pvc
spec:
storageClassName: openebs-hostpath
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5G
To disable openebs
,
microk8s disable openebs
ormicrok8s disable openebs:force
Last updated 9 days ago. Help improve this document in the forum.