Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Support OS #66

Open
PowerYangcl opened this issue Nov 21, 2023 · 3 comments
Open

About Support OS #66

PowerYangcl opened this issue Nov 21, 2023 · 3 comments
Assignees

Comments

@PowerYangcl
Copy link

Hello Sir,this project just support Ubuntu? What about CentOS 7.9 ? I installed using CentOS 7.9, but I haven't been able to experiment successfully. Do you have to use the Ubuntu operating system?

@niladrih
Copy link
Member

Hi @PowerYangcl -- Could you tell me more about the issue that you faced when using CentOS?

@PowerYangcl
Copy link
Author

Env:Docker 23.0.1、Kubernetes 1.26.5; 1master + 2 work。
Linux:centOS 7.9

k8s-master1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 222.6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
├─sda3 8:3 0 40G 0 part /
└─sda4 8:4 0 80G 0 part
sdb 8:16 0 7T 0 disk

k8s-node1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 222.6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
├─sda3 8:3 0 40G 0 part /
└─sda4 8:4 0 80G 0 part
nvme0n1 259:0 0 1.8T 0 disk

【openebs-device-sc.yaml】
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: openebs-device-sc
annotations:
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: "device"
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer

【local-device-pod.yaml】
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: local-device-pvc
spec:
storageClassName: openebs-device-sc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50G

kind: Pod
apiVersion: v1
metadata:
name: local-device-pod
spec:
volumes:

  • name: local-storage
    persistentVolumeClaim:
    claimName: local-device-pvc
    containers:
  • name: hello-container
    image: nginx
    command:
    • sh
    • -c
    • 'while true; do echo "date [hostname] OpenEBS Local PV." >> /mnt/store/greet.txt; sleep $((1 % 5)); done'
      volumeMounts:
    • mountPath: /mnt/store
      name: local-storage

【local-device-pod1.yaml】
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: local-device-pvc1
spec:
storageClassName: openebs-device-sc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50G

apiVersion: v1
kind: Pod
metadata:
name: local-device-pod1
spec:
volumes:

  • name: local-storage
    persistentVolumeClaim:
    claimName: local-device-pvc1
    containers:
  • name: hello-container
    image: nginx
    command:
    • sh
    • -c
    • 'while true; do echo "date [hostname] OpenEBS Local PV." >> /mnt/store/greet.txt; sleep $((1 % 5)); done'
      volumeMounts:
    • mountPath: /mnt/store
      name: local-storage

@rohan2794
Copy link

@PowerYangcl Can you please attach controller logs as well as kubectl describe of controller sts ? Also please describe the issue which you are facing with CentOS 7.9 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants