I have just configured openebs as the storageclass type on k0s but when I then attempt to create a persistent volume claim it gets stuck in Pending mode.
As a check to satisfy the WaitForFirstConsumer constraint I created a deployment but after some time the persistent volume claim still remains in Pending mode.
I am pretty sure storageclass is configured well now (unless otherwise !) because when I run k0s kubectl get storageclass
I get :
openebs-device openebs.io/local Delete WaitForFirstConsumer false 11h
openebs-hostpath openebs.io/local Delete WaitForFirstConsumer false 11h
For context my local-pvc.yaml is as below:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mssql-claim
spec:
storageClassName: openebs.io/local
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
This one however gives an error after I add the storageClassName attribute (Is the attribute mandatory for provisioning of the pvc? If so whats the exact value? ).
The original deployment doesnt contain the attribute though and I had to add it after some digging around. Im not entirely sure about which value i should configure for storageClassName: value.
What am I missing ?