Friends, I am trying to deploy a rabbitmq cluster on Minikube and its not working. What I did so far was this:
helm repo add bitnami https://charts.bitnami.com/bitnami helm install my-release bitnami/rabbitmq
When I check the logs of my pod, I get the following results:
13:38:04.69 Welcome to the Bitnami rabbitmq container 13:38:04.69 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-rabbitmq 13:38:04.70 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-rabbitmq/issues 13:38:04.70 13:38:04.70 INFO ==> ** Starting RabbitMQ setup ** 13:38:04.71 INFO ==> Validating settings in RABBITMQ_* env vars.. 13:38:04.71 INFO ==> Initializing RabbitMQ... 13:38:04.73 INFO ==> Starting RabbitMQ in background... 13:39:53.90 ERROR ==> Couldn't start RabbitMQ in background.
And when I describe my pod I see two information which may help to solve the problem:
Warning FailedMount 35m (x3 over 35m) kubelet MountVolume.NodeAffinity check failed for volume "pvc-1e09903f-de6a-4fcd-8c3f-490305bb28a6" : error retrieving node: node "minikube" not found. Warning Unhealthy 9h (x2 over 10h) kubelet Readiness probe failed: Error: unable to perform an operation on node '[email protected]'.
Any idea what I can do to make this work?
1 Answer
For installing RabbitMQ
on minikube
you can follow this example which is
an example that demonstrates a RabbitMQ deployment on Kubernetes with peer discovery via rabbitmq-peer-discovery-k8s plugin.
It creates 3 replicas of rabbitmq pods using StatefulSet
.
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobW5pYmyBdHyOoaawZaSkeqWxz6WmsmWRYr%2BirsGiq6apXZi5tr%2FTnqlmp55iuqq6yKSsm51dqsCqusZmq6GdXZe2tbrApqBmoJWhum6vx5qprQ%3D%3D