Mikrok8s storage cl...
 
Notifications
Clear all

[Solved] Mikrok8s storage cluster with Microceph, rook-ceph, PVC pending, waiting for a volume to be created by external provisioner

40 Posts
2 Users
3 Reactions
1,395 Views
Brandon Lee
Posts: 395
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

Starting a new forum thread here. I had this question: 

Hello, I have 3 nodes with Microk8s. I have installed Microceph - health ok (

) I have enabled rook-ceph. Then microk8s connect-external-ceph Everything is ok. When i create pod with pvc then it is still pending. I don't know what else i should check.

One of the first things to check:

kubectl get sc
39 Replies
Posts: 33
(@mscrocdile)
Eminent Member
Joined: 11 months ago

kubectl get sc

NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
ceph-rbd rook-ceph.rbd.csi.ceph.com Delete Immediate true 6h14m

Reply
Brandon Lee
Posts: 395
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

@mscrocdile would you be able to post a screenshot of that output as well? You can copy and paste images here as well.

Reply
1 Reply
(@mscrocdile)
Joined: 11 months ago

Eminent Member
Posts: 33
Brandon Lee
Posts: 395
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

@mscrocdile ok it may not be recognizing it as the default....let's run this:

 

kubectl patch storageclass ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Reply
Brandon Lee
Posts: 395
Admin
Topic starter
(@brandon-lee)
Member
Joined: 14 years ago

@mscrocdile, Actually just remembered, we need to prepend microk8s to that command:

microk8s kubectl patch storageclass ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
Reply
1 Reply
(@mscrocdile)
Joined: 11 months ago

Eminent Member
Posts: 33

@brandon-lee I did it and this is the result. 

image

(That pvc is still pending)

Reply
Page 1 / 2