luxas / kubeadm-workshop

Showcasing a bare-metal multi-platform kubeadm setup with persistent storage and monitoring
MIT License
680 stars 190 forks source link

Error on rook-rook-user command #20

Open andrewchron opened 7 years ago

andrewchron commented 7 years ago

So far so good the workshop, however when i run the command kubectl get secret rook-rook-user -oyaml | sed "/resourceVer/d;/uid/d;/self/d;/creat/d;/namespace/d" | kubectl -n kube-system apply -f -

I get as a response

-Error from server (NotFound): secrets "rook-rook-user" not found error: no objects passed to apply

Is it something obvious i am missing since i am new to kubernetes?

Thanks in advance.

luxas commented 7 years ago

@andrewchron Unfortunately it seems like Rook is pretty much broken right now. It's probably neither of us' fault, instead I think there's a slight bug in the operator that made it stop working now.

I'll look into it.

Dr-Agonite commented 7 years ago

@andrewchron and @luxas: I ran into the same issue with rook. I used nfs for persistent volume provisioning as an alternative.

I changed luxas files as follows: https://github.com/Dr-Agonite/rpi-kubernetes/tree/master/demos

Hope this helps.

Dr-Agonite commented 7 years ago

Another option is to use an older version of rook. Version 0.5.0 supports rook-rook-user.

You need to change one line in rook-operator.yaml before: image: rook/rook:v0.5.1 after: image: rook/rook:v0.5.0

Same applies for rook-cluster.yaml. before: versionTag: v0.5.1 after: versionTag: v0.5.0

rook-storageclass.yaml stays unchanged.