Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

71%
+3 −0
Q&A How to declaratively enable RabbitMQ feature flags in Kubernetes

We use Kubernetes on a cloud (GKE, to be precise). We use RabbitMQ for messaging and we need to upgrade it from 3.10 to 3.12 . FWIW RabbitMQ has been added to our system using a chart from Bitnami...

0 answers  ·  posted 1y ago by FractionalRadix‭

Question RabbitMQ kubernetes
#1: Initial revision by user avatar FractionalRadix‭ · 2023-11-03T11:03:12Z (about 1 year ago)
How to declaratively enable RabbitMQ feature flags in Kubernetes
We use Kubernetes on a cloud (GKE, to be precise). We use RabbitMQ for messaging and we need to upgrade it from 3.10 to 3.12 .  
FWIW RabbitMQ has been added to our system using a chart from Bitnami.

The problem is that we need to enable RabbitMQ's [feature flags](https://www.rabbitmq.com/feature-flags.html).  

More specifically, the problem is that we need to enable the flags _before_ upgrading.  

There are several ways of enabling RabbitMQ's feature flags, according to the post linked above:
* One can go into RabbitMQ's Management Plugin UI and enable them, via "Admin > Feature Flags".
* One can go into the Pod and enable them from the command line, using `rabbitmqctl enable_feature flag`.

What I haven't found, however, is a way of enabling them from a configuration. I would like to configure Kubernetes so that, upon re-deploying the RabbitMQ Pod, it would automatically enable the feature flags.  

The options seem to be:
* Add a line to the Pod descriptor where we enter the container and execute `rabbitmqctl enable_feature_flag_all`.  
* Individually enter the different environments and manually enable the feature flags there (whether using the CLI or the Management Plugin UI).

However, I would much rather enable the feature flags in a more declarative fashion. What I'm really looking for is a way to set the feature flags via a ConfigMap, allowing the flags to be set automatically when the Pod is restarted. This would be safer than executing shell commands on container startup, and also more in keeping with the Kubernetes philosophy of doing everything declaratively.

The question is if there is such a "declarative" way to set RabbitMQ's feature flags?