I need to create a RabbitMQ queue from command line.
- I have a RabbitMQ setup in kubernetes.
- I login into a RabbitMQ pod and fetch the rabbitmqadmin for my version 3.8.14
- I run this:
./rabbitmqadmin -u user1 -p password1 -N rabbit@rabbitmq-0.rabbitmq.default.svc.cluster.local declare queue name=CompName.Player1
But instead of adding the queue I get:
**Not found: /api/queues/%2F/CompName.Player1
I tried these but had no success, also the rabbitmq log shows no events when running these rabbitmqadmin commands:
./rabbitmqadmin declare queue name=Test1
./rabbitmqadmin -u user1 -p password1 declare queue name=CompName.Player1
curl -i -u user1:password1 -H "content-type:application/json" -XPUT -d'{"durable":true}' http://localhost:15672/api/queues/%2f/CompName.Player1
Adding the queue manually via management web UI works but it's not an option for a kubernetes solution.