Migrate RabbitMQ from docker to Kubernetes

Currently I have a docker container with the bitnami/rabbitmq:3.12 image which I run with the following command:

docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 -h d45f45203d52 -e RABBITMQ_NODE_NAME=rabbit@d45f45203d52 -v /data/rabbitmq/mnesia:/bitnami/rabbitmq/mnesia bitnami/rabbitmq:3.12.2

The goal is migrate to kubernetes using the bitnami chart (github.com/bitnami/charts/tree/main/bitnami/rabbitmq).

I need to know how to load my current configuration, which is stored in the mnesia folder.

I have tried to copy the files inside the pvc, but as the hostname of the pod and the RABBITMQ_NODE_NAME is different it does not load the correct configuration.

I’m a beginner with aspects of RabbitMQ, so any help is appreciated.

Thx

Read more here: Source link