Skip to content
Snippets Groups Projects
Unverified Commit 3a9c5e65 authored by Göran Pöhner's avatar Göran Pöhner Committed by GitHub
Browse files

Simplify rabbitmq configuration (#1244)

parent c14b8fbd
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,6 @@ type: application ...@@ -7,6 +7,6 @@ type: application
maintainers: maintainers:
- name: groundhog2k - name: groundhog2k
version: "0.6.18" version: "0.6.19"
appVersion: "3.11.16" appVersion: "3.11.16"
# RabbitMQ # RabbitMQ
![Version: 0.6.18](https://img.shields.io/badge/Version-0.6.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.11.16](https://img.shields.io/badge/AppVersion-3.11.16-informational?style=flat-square) ![Version: 0.6.19](https://img.shields.io/badge/Version-0.6.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.11.16](https://img.shields.io/badge/AppVersion-3.11.16-informational?style=flat-square)
## Changelog ## Changelog
...@@ -182,7 +182,7 @@ Section to define custom services ...@@ -182,7 +182,7 @@ Section to define custom services
| options.memory.totalAvailableOverrideValue | int | `nil` | Overwrites the value that is automatically calculated from resource.limits.memory | | options.memory.totalAvailableOverrideValue | int | `nil` | Overwrites the value that is automatically calculated from resource.limits.memory |
| options.memory.calculationStrategy | string | `nil` | Strategy for memory usage report (rss or allocated) | | options.memory.calculationStrategy | string | `nil` | Strategy for memory usage report (rss or allocated) |
## RabbitMQ communication parameters ## RabbitMQ communication and SSL parameters
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
...@@ -192,6 +192,10 @@ Section to define custom services ...@@ -192,6 +192,10 @@ Section to define custom services
| options.ssl.verify | bool | `false` | Enables or disables peer verification | | options.ssl.verify | bool | `false` | Enables or disables peer verification |
| options.ssl.failIfNoPeerCert | bool | `false` | Reject TLS connection when client fails to provide a certificate | | options.ssl.failIfNoPeerCert | bool | `false` | Reject TLS connection when client fails to provide a certificate |
| options.ssl.depth | int | `nil` | Client certificate verification depth | | options.ssl.depth | int | `nil` | Client certificate verification depth |
| options.ssl.certPaths | object | `{}` | Pathes of the certificate files |
| options.ssl.certPaths.cacert | string | `nil` | Path to the CA certificate(s) file |
| options.ssl.certPaths.cert | string | `nil` | Path to the server certificate file |
| options.ssl.certPaths.key | string | `nil` | Path to the private key file (Hint: ssl_options.password configuration needs to be provided as `extraSecretConfig:`) |
## RabbitMQ plugin base parameters ## RabbitMQ plugin base parameters
...@@ -208,11 +212,11 @@ Section to define custom services ...@@ -208,11 +212,11 @@ Section to define custom services
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| customConfig | string | `nil` | Custom configuration entries for rabbitmq.conf (see [RabbitMQ config](https://www.rabbitmq.com/configure.html#config-file)) | | customConfig | string | `nil` | Custom inline configuration entries for rabbitmq.conf (see [RabbitMQ config](https://www.rabbitmq.com/configure.html#config-file)) |
| extraSecretConfigs | string | `nil` | An existing secret with files that will be added to the `rabbitmq.conf` | | extraSecretConfigs | string | `nil` | An existing secret with files that will be added to the `rabbitmq.conf` |
| customAdvancedConfig | string | `nil` | Custom advanced configuration entries for advanced.config (see [RabbitMQ advanced config](https://www.rabbitmq.com/configure.html#advanced-config-file)) | | customAdvancedConfig | string | `nil` | Custom inline advanced configuration entries for advanced.config (see [RabbitMQ advanced config](https://www.rabbitmq.com/configure.html#advanced-config-file)) |
| extraSecretAdvancedConfigs | string | `nil` | An existing secret with files that will be added to the `advanced.conf` | | extraSecretAdvancedConfigs | string | `nil` | An existing secret with files that will be added to the `advanced.conf` |
| extraEnvSecrets | list | `[]` | A list of existing secrets that will be mounted into the container as environment variables | | extraEnvSecrets | list | `[]` | A list of existing secrets that will be mounted into the container as environment variables |
| extraSecrets | list | `[]` | A list of additional existing secrets that will be mounted into the container | | extraSecrets | list | `[]` | A list of additional existing secrets that will be mounted into the container |
| extraSecrets[].name | string | `nil` | Name of the existing K8s secret | | extraSecrets[].name | string | `nil` | Name of the existing Kubernetes secret |
| extraSecrets[].mountPath | string | `nil` | Mount path where the secret should be mounted into the container (f.e. /mysecretfolder) | | extraSecrets[].mountPath | string | `nil` | Mount path where the secret should be mounted into the container (f.e. /mysecretfolder) |
...@@ -76,4 +76,5 @@ ...@@ -76,4 +76,5 @@
| 0.6.16 | 3.11.15 | Upgraded to RabbitMQ 3.11.15 | | 0.6.16 | 3.11.15 | Upgraded to RabbitMQ 3.11.15 |
| 0.6.17 | 3.11.16 | Upgraded to RabbitMQ 3.11.16 | | 0.6.17 | 3.11.16 | Upgraded to RabbitMQ 3.11.16 |
| 0.6.18 | 3.11.16 | Simplified configuration options | | 0.6.18 | 3.11.16 | Simplified configuration options |
| 0.6.19 | 3.11.16 | Simplified and refactored SSL/TLS configuration options |
| | | | | | | |
...@@ -157,6 +157,17 @@ ssl_options.fail_if_no_peer_cert = {{ .failIfNoPeerCert }} ...@@ -157,6 +157,17 @@ ssl_options.fail_if_no_peer_cert = {{ .failIfNoPeerCert }}
{{- if .depth }} {{- if .depth }}
ssl_options.depth = {{ .depth }} ssl_options.depth = {{ .depth }}
{{- end }} {{- end }}
{{- with .certPaths }}
{{- if .cacert }}
ssl_options.cacertfile = {{ .cacert }}
{{- end }}
{{- if .cert }}
ssl_options.certfile = {{ .cert }}
{{- end }}
{{- if .key }}
ssl_options.keyfile = {{ .key }}
{{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
## Memory options ## Memory options
......
...@@ -279,8 +279,9 @@ options: ...@@ -279,8 +279,9 @@ options:
## AMQP tcp port (default: 5672) ## AMQP tcp port (default: 5672)
port: 5672 port: 5672
## RabbitMQ AMQP-over-SSL options are described at https://www.rabbitmq.com/ssl.html ## RabbitMQ AMQP-over-SSL options are described at https://www.rabbitmq.com/ssl.html
## If SSL is enabled certifactes must be provided as extraSecrets: and configured by customConfig: options ## If SSL is enabled certifactes must be provided as extraSecrets:
## ssl_options.cacertfile, ssl_options.certfile, ssl_options.keyfile, ssl_options.password ## ssl_options.cacertfile, ssl_options.certfile, ssl_options.keyfile are configurable by certPaths:
## Optional ssl_options.password needs to be provided as extraSecretConfig
ssl: ssl:
## Enable secure AMQP (amqps) ## Enable secure AMQP (amqps)
enabled: false enabled: false
...@@ -292,6 +293,14 @@ options: ...@@ -292,6 +293,14 @@ options:
failIfNoPeerCert: false failIfNoPeerCert: false
## Client certificate verification depth ## Client certificate verification depth
depth: depth:
## Pathes of the certificate files
certPaths: {}
## Path to the CA certificate(s) file
# cacert:
## Path to the server certificate file
# cert:
## Path to the private key file (Hint: ssl_options.password configuration needs to be provided as extraSecretConfig:)
# key:
## A list of additional existing secrets that will be mounted into the container ## A list of additional existing secrets that will be mounted into the container
## The mounted files of the secrets can be used for custom or advanced configuration option (see: customConfig) ## The mounted files of the secrets can be used for custom or advanced configuration option (see: customConfig)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment