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:
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
Copy the contents below to a file named
sc.yaml
, and change thevolgroup
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 >>
Install the customized storage class by running this command:
kubectl apply -f sc.yaml
Last updated