OpenEBS Operator

OpenEBS provides persistent, container-native, block storage for stateful applications running in a Kubernetes environment.

To install the OpenEBS operator, follow these steps:

  1. Install the OpenEBS Local Persistent Volumes (PV) backed by Logical Volume Manager (LVM) storage by running this command:

    kubectl apply -f https://openebs.github.io/charts/lvm-operator.yaml
  2. Copy the contents below to a file named sc.yaml, and change the volgroup to the name defined in your worker nodes and list the nodes one after the other for the LVM nodes.

    Contents of sc.yaml:

    apiVersion: storage.k8s.io/v1
    kind: StorageClass
    metadata:
      name: openebs-lvmpv
    allowVolumeExpansion: true
    parameters:
      storage: "lvm"
      volgroup: "<YOUR VOLUME GROUP NAME>"
    provisioner: local.csi.openebs.io
    allowedTopologies:
      - matchLabelExpressions:
        - key: kubernetes.io/hostname
          values:
            - << Specify the lvm nodes >>
  3. Install the customized storage class by running this command:

    kubectl apply -f sc.yaml

Last updated