[stable/rabbitmq-ha] env variables and init containers (#14932)

* add rabbitmq env variables

Signed-off-by: radu mazilu <radumazi2@gmail.com>

* add extra init containers

Signed-off-by: radu mazilu <radumazi2@gmail.com>

* PR changes

Signed-off-by: radu mazilu <radumazi2@gmail.com>

* Bump chart version

Signed-off-by: radu mazilu <radumazi2@gmail.com>
This commit is contained in:
radumazi
2019-06-25 08:52:37 -07:00
committed by Kubernetes Prow Robot
parent 471065b438
commit 479ef89dcd
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: rabbitmq-ha
apiVersion: v1
appVersion: 3.7.15
version: 1.28.0
version: 1.29.0
description: Highly available RabbitMQ cluster, the open source message broker
software that implements the Advanced Message Queuing Protocol (AMQP).
keywords:
+8
View File
@@ -69,6 +69,8 @@ and their default values.
| `existingSecret` | Use an existing secret for password, managementPassword & erlang cookie | `""`                               |
| `extraPlugins` | Additional plugins to add to the default configmap | `rabbitmq_shovel, rabbitmq_shovel_management, rabbitmq_federation, rabbitmq_federation_management,` |
| `extraConfig` | Additional configuration to add to default configmap | `{}` |
| `extraInitContainers` | Additional init containers passed through the tpl | `[]` |
| `env` | Environment variables to set for Rabbitmq container | `{}` |
| `advancedConfig` | Additional configuration in classic config format | `""` |
| `definitions.users` | Additional users | `""` |
| `definitions.vhosts` | Additional vhosts | `""` |
@@ -253,3 +255,9 @@ the following keys:
### Prometheus Monitoring & Alerts
Prometheus and its features can be enabled by setting `prometheus.enabled` to `true`. See values.yaml for more details and configuration options
### Usage of the `tpl` Function
The `tpl` function allows us to pass values from `values.yaml` through the templating engine. It is used for the following values:
* `extraInitContainers`
@@ -76,6 +76,9 @@ spec:
mountPath: /etc/rabbitmq
- name: {{ .Values.persistentVolume.name }}
mountPath: /var/lib/rabbitmq
{{- if .Values.extraInitContainers }}
{{ tpl (toYaml .Values.extraInitContainers) . | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
@@ -174,6 +177,10 @@ spec:
- name: RABBITMQ_HIPE_COMPILE
value: {{ .Values.rabbitmqHipeCompile | quote }}
{{- end }}
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 12 }}
volumeMounts:
+6
View File
@@ -343,6 +343,9 @@ initContainer:
# cpu: 100m
# memory: 128Mi
## Additional init containers
extraInitContainers: []
## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
@@ -450,6 +453,9 @@ securityContext:
runAsNonRoot: true
runAsUser: 100
## Sets environment variables for the rabbitmq container
env: {}
prometheus:
## Configures Prometheus Exporter to expose and scrape stats.
exporter: