From MicroK8s version: 1.21+
Supported arch: amd64
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
openebs-hostpath is recommended when using on a laptop or a single node cluster. Use
StorageClass for multi-node cluster.
openebs-jiva-default requires to have 3 replicas.
Using OpenEBS is as easy as creating a
As an example:
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: local-hostpath-pvc spec: storageClassName: openebs-hostpath accessModes: - ReadWriteOnce resources: requests: storage: 5G
microk8s disable openebs
microk8s disable openebs:force