Skip to content

How to create a RabbitmqCluster with an existing username and password stored in a Kubernetes secret? #1875

Closed Answered by mkuratczyk
s-cho-25 asked this question in Q&A
Discussion options

You must be logged in to vote

If you create the secret first (using the same name and structure of a secret that the Operator would generate), it will be used. So the easiest option is to simply create the secret before you create RabbitmqCluster.

You can also tell the Operator explicitly that you will generate the secret yourself: https://github.com/rabbitmq/cluster-operator/tree/main/docs/examples/external-admin-secret-credentials
This way you can create it after the cluster is created.

Other options include:
Use https://github.com/rabbitmq/messaging-topology-operator to define a user. The default user with random credentials will still exist, but you can have an additional one with your credentials.

Or import defin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by s-cho-25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants