Skip to content

How do I add a sidecar to rabbitmq - Kuberenetes #1366

Answered by Zerpet
Ruchira-R asked this question in Q&A
Discussion options

You must be logged in to vote

There is a side car example in our repo: https://github.com/rabbitmq/cluster-operator/tree/main/docs/examples/sidecar

Once you have the side car override, it's just a matter of adding the env section, as you would do for any StatefulSet.

You can also use kubectl explain to explore what does an object accept. Specifically to your case:

kubectl explain rmq.spec.override.statefulSet.spec.template.spec.containers

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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