RabbitMQ cluster in microk8s #5094
-
Hello guys, I'm trying to deploy a RabbitMQ cluster in microk8s. I use the following config:
And the I created a LocalStorage:
And a PV
When I apply the config for the cluster, Pod is always in Pending state with this message:
Anyone knows how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @aleRizzolo, I've never used microk8s before, but when you create a RabbitmqCluster, the Cluster Operator creates a statefulSet which will create PersistentVolumeClaims. There is no need to preemptive create PV yourself. I would suggest: try to create a RabbitmqCluster again (no need to create a PV for it yourself), and if pod is still stuck at pending due to persistent volume error, you can double check the PersistentVolumeClaims by |
Beta Was this translation helpful? Give feedback.
Hi @aleRizzolo, I've never used microk8s before, but when you create a RabbitmqCluster, the Cluster Operator creates a statefulSet which will create PersistentVolumeClaims. There is no need to preemptive create PV yourself. I would suggest: try to create a RabbitmqCluster again (no need to create a PV for it yourself), and if pod is still stuck at pending due to persistent volume error, you can double check the PersistentVolumeClaims by
kubectl get pvc
and the corresponding PVC will follow a name pattern ofpersistence-RMQNAME-server-PODNUMBER
. If you have further questions, please also include the version of Cluster operator you're using.