diff --git a/stable/rabbitmq/Chart.yaml b/stable/rabbitmq/Chart.yaml index d566168e1808..d568a5073859 100644 --- a/stable/rabbitmq/Chart.yaml +++ b/stable/rabbitmq/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: rabbitmq -version: 6.1.0 +version: 6.1.1 appVersion: 3.7.15 description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP) keywords: diff --git a/stable/rabbitmq/README.md b/stable/rabbitmq/README.md index 0e9be9074de9..579c6fa1f8e3 100644 --- a/stable/rabbitmq/README.md +++ b/stable/rabbitmq/README.md @@ -73,6 +73,7 @@ The following table lists the configurable parameters of the RabbitMQ chart and | `rabbitmq.onlineSchedulers` | RabbitMQ online scheduler threads | `1` | | `rabbitmq.configuration` | Required cluster configuration | See values.yaml | | `rabbitmq.extraConfiguration` | Extra configuration to add to rabbitmq.conf | See values.yaml | +| `rabbitmq.advancedConfiguration` | Extra configuration (in classic format) to add to advanced.config | See values.yaml | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.port` | Amqp port | `5672` | | `service.distPort` | Erlang distribution server port | `25672` | diff --git a/stable/rabbitmq/templates/configuration.yaml b/stable/rabbitmq/templates/configuration.yaml index fd2c61878ec4..44448ee49169 100644 --- a/stable/rabbitmq/templates/configuration.yaml +++ b/stable/rabbitmq/templates/configuration.yaml @@ -16,3 +16,7 @@ data: default_pass=CHANGEME {{ .Values.rabbitmq.configuration | indent 4 }} {{ .Values.rabbitmq.extraConfiguration | indent 4 }} +{{ if .Values.rabbitmq.advancedConfiguration}} + advanced.config: |- +{{ .Values.rabbitmq.advancedConfiguration | indent 4 }} +{{ end }} diff --git a/stable/rabbitmq/templates/statefulset.yaml b/stable/rabbitmq/templates/statefulset.yaml index c499f59f6d59..a5efd486c6d7 100644 --- a/stable/rabbitmq/templates/statefulset.yaml +++ b/stable/rabbitmq/templates/statefulset.yaml @@ -263,6 +263,10 @@ spec: items: - key: rabbitmq.conf path: rabbitmq.conf + {{- if .Values.rabbitmq.advancedConfiguration}} + - key: advanced.config + path: advanced.config + {{- end }} - key: enabled_plugins path: enabled_plugins {{- if .Values.rabbitmq.loadDefinition.enabled }} diff --git a/stable/rabbitmq/values-production.yaml b/stable/rabbitmq/values-production.yaml index 7ab20c9524ff..f3d609e5678d 100644 --- a/stable/rabbitmq/values-production.yaml +++ b/stable/rabbitmq/values-production.yaml @@ -111,7 +111,7 @@ rabbitmq: secretName: load-definition ## Configuration file content: required cluster configuration - ## Do not override unless you know what you are doing. To add more configuration, use `extraConfiguration` instead + ## Do not override unless you know what you are doing. To add more configuration, use `extraConfiguration` of `advancedConfiguration` instead configuration: |- ## Clustering cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s @@ -129,6 +129,10 @@ rabbitmq: extraConfiguration: |- #disk_free_limit.absolute = 50MB #management.load_definitions = /app/load_definition.json + + ## Configuration file content: advanced configuration + ## Use this as additional configuraton in classic config format (Erlang term configuration format) + advancedConfiguration: |- ## Kubernetes service type service: diff --git a/stable/rabbitmq/values.yaml b/stable/rabbitmq/values.yaml index f3dad23689fb..a062066ed7ef 100644 --- a/stable/rabbitmq/values.yaml +++ b/stable/rabbitmq/values.yaml @@ -111,7 +111,7 @@ rabbitmq: secretName: load-definition ## Configuration file content: required cluster configuration - ## Do not override unless you know what you are doing. To add more configuration, use `extraConfiguration` instead + ## Do not override unless you know what you are doing. To add more configuration, use `extraConfiguration` of `advancedConfiguration` instead configuration: |- ## Clustering cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s @@ -130,6 +130,10 @@ rabbitmq: #disk_free_limit.absolute = 50MB #management.load_definitions = /app/load_definition.json + ## Configuration file content: advanced configuration + ## Use this as additional configuraton in classic config format (Erlang term configuration format) + advancedConfiguration: |- + ## Kubernetes service type service: type: ClusterIP