Hello everyone. I have a microk8s cluster running but I am having trouble configuring openebs correctly. Openebs is enabled as an addon for microk8s. To create a storage pool, I created this configuration file (cstor-pool1-config.yaml):
#Use the following YAMLs to create a cStor Storage Pool.
apiVersion: openebs.io/v1alpha1
kind: StoragePoolClaim
metadata:
name: cstor-disk-pool
annotations:
cas.openebs.io/config: |
- name: PoolResourceRequests
value: |-
memory: 2Gi
- name: PoolResourceLimits
value: |-
memory: 4Gi
spec:
name: cstor-disk-pool
type: disk
poolSpec:
poolType: striped
blockDevices:
blockDeviceList:
- blockdevice-293f51b46b26e80d7d712b7a1e61bebb
- blockdevice-dd0052270b42ba1c5a54af97b2f457f9
- blockdevice-022c7e8a63953a598a3af5276af37828
But when I use the command “microk8s kubectl apply -f cstor-pool1-config.yaml”, I get the following error message:
error: unable to recognize “cstor-pool1-config.yaml”: no matches for kind “StoragePoolClaim” in version ‘openebs.io/v1alpha1’
What am I doing wrong?
Cluster information:
Kubernetes version: v1.22.4
Cloud being used: bare-metal
Installation method: snap
Host OS: Ubuntu 18.04