-
Notifications
You must be signed in to change notification settings - Fork 68
Description
kubectl version
Client Version: v1.28.5
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.5
openebs version : v3.10
OS : Redhat 9.3
K8 cluster details: 1 Mater and 3 worker nodes and each worker node have a 30GB block device to configure cStor storage and use cStor Volumes.
I followed below reference to configure cStor storage and use cStor Volumes https://openebs.io/docs/user-guides/cstor .
This is my cspc.yaml file.
apiVersion: cstor.openebs.io/v1
kind: CStorPoolCluster
metadata:
name: cstor-disk-pool
namespace: openebs
spec:
pools:
-
nodeSelector:
kubernetes.io/hostname: "w1"
dataRaidGroups:- blockDevices:
- blockDeviceName: "blockdevice-9a843b022682f2aa1944b12b8d7ab747"
poolConfig:
dataRaidGroupType: "stripe"
- blockDeviceName: "blockdevice-9a843b022682f2aa1944b12b8d7ab747"
- blockDevices:
-
nodeSelector:
kubernetes.io/hostname: "w2"
dataRaidGroups:- blockDevices:
- blockDeviceName: "blockdevice-bde7812927b09755e58513aa632f5f7a"
poolConfig:
dataRaidGroupType: "stripe"
- blockDeviceName: "blockdevice-bde7812927b09755e58513aa632f5f7a"
- blockDevices:
-
nodeSelector:
kubernetes.io/hostname: "w3"
dataRaidGroups:- blockDevices:
- blockDeviceName: "blockdevice-8421c0539cade1d43d8cc2dc49971f86"
poolConfig:
dataRaidGroupType: "stripe"
- blockDeviceName: "blockdevice-8421c0539cade1d43d8cc2dc49971f86"
- blockDevices:
2.Output of created CSPC,Storage class, volumes ,Blockdevices,pool instances
3.Every thing look flawless right even i to thought the same till now but i tried to deploy a pod using cstor-pvc pvc then pod is stucked at ContainerCreating
dummypod.yaml
apiVersion: v1
kind: Pod
metadata:
name: busybox
namespace: default
spec:
containers:
- command:
- sh
- -c
- 'date >> /mnt/openebs-csi/date.txt; hostname >> /mnt/openebs-csi/hostname.txt; sync; sleep 5; sync; tail -f /dev/null;'
image: busybox
imagePullPolicy: Always
name: busybox
volumeMounts: - mountPath: /mnt/openebs-csi
name: demo-vol
volumes:
- name: demo-vol
persistentVolumeClaim:
claimName: cstor-pvc