Skip to content

Feature Request: Allow definition files to be supplied as ENV var for docker / kubernetes environment #2465

Closed
@sspieker-cc

Description

@sspieker-cc

I have an application that already utilizes RabbitMQ 3.8.9 and has its own methods of configuration. I would like to extend this configuration utilizing an exported definitions.json file so that the same configuration is restored when the container(s) are restarted.

Currently it seems that the only way to provide this information is in the form of the rabbitmq.conf file using:
load_definitions = /path/to/definitions/file.json

Mounting the .conf file from a kubernetes secret causes this file to be read-only and therefore ignored and causing the container to eventually fail to start. If the load_definitions parameter could be supplied as an environment variable, the behavior of the read-only file would be avoided entirely.

Rolling a 'custom' rabbitmq image would be a possible solution however, upgrades to the application that currently utilize rabbitmq-management would need to be managed by hand and it is fraught with all of the dangers that a manual process includes. It seems that the environment variable option would be a good and possible solution that should work rather well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions