DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
rabbitmq logoHELM

rabbitmq

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
3
# Copyright Chainguard, Inc. All Rights Reserved.
4
# Chainguard, Inc. modifications are subject to the license
5
# available at: https://www.chainguard.dev/legal/software-license-agreement
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
10
## @section Global parameters
11
## Global Docker image parameters
12
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
14
##
15
16
## @param global.imageRegistry Global Docker image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
21
##
22
global:
23
imageRegistry: ""
24
useImageTags: false
25
## E.g.
26
## imagePullSecrets:
27
## - myRegistryKeySecretName
28
##
29
imagePullSecrets: []
30
defaultStorageClass: ""
31
storageClass: ""
32
## Security parameters
33
##
34
security:
35
## @param global.security.allowInsecureImages Allows skipping image verification
36
allowInsecureImages: false
37
## Compatibility adaptations for Kubernetes platforms
38
##
39
compatibility:
40
## Compatibility adaptations for Openshift
41
##
42
openshift:
43
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
44
##
45
adaptSecurityContext: auto
46
org: ""
47
## @section RabbitMQ Image parameters
48
## Iamguarded RabbitMQ image version
49
## @param image.registry [default: REGISTRY_NAME] RabbitMQ image registry
50
## @param image.repository [default: REPOSITORY_NAME/rabbitmq] RabbitMQ image repository
51
## @skip image.tag RabbitMQ image tag (immutable tags are recommended)
52
## @param image.digest RabbitMQ image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
53
## @param image.pullPolicy RabbitMQ image pull policy
54
## @param image.pullSecrets Specify docker-registry secret names as an array
55
## @param image.debug Set to true if you would like to see extra information on logs
56
##
57
image:
58
registry: cgr.dev
59
repository: chainguard-private/rabbitmq-iamguarded
60
tag: 4.4.1
61
digest: ""
62
## set to true if you would like to see extra information on logs
63
## It turns BASH and/or NAMI debugging in the image
64
##
65
debug: false
66
## Specify a imagePullPolicy
67
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
68
##
69
pullPolicy: IfNotPresent
70
## Optionally specify an array of imagePullSecrets.
71
## Secrets must be manually created in the namespace.
72
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
73
## Example:
74
## pullSecrets:
75
## - myRegistryKeySecretName
76
##
77
pullSecrets: []
78
## @section Common parameters
79
##
80
81
## @param nameOverride String to partially override rabbitmq.fullname template (will maintain the release name)
82
##
83
nameOverride: ""
84
## @param fullnameOverride String to fully override rabbitmq.fullname template
85
##
86
fullnameOverride: ""
87
## @param namespaceOverride String to fully override common.names.namespace
88
##
89
namespaceOverride: ""
90
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
91
##
92
kubeVersion: ""
93
## @param clusterDomain Kubernetes Cluster Domain
94
##
95
clusterDomain: cluster.local
96
## @param extraDeploy Array of extra objects to deploy with the release
97
##
98
extraDeploy: []
99
## @param commonAnnotations Annotations to add to all deployed objects
100
##
101
commonAnnotations: {}
102
## @param servicenameOverride String to partially override headless service name
103
##
104
servicenameOverride: ""
105
## @param commonLabels Labels to add to all deployed objects
106
##
107
commonLabels: {}
108
## @param serviceBindings.enabled Create secret for service binding (Experimental)
109
## Ref: https://servicebinding.io/service-provider/
110
##
111
serviceBindings:
112
enabled: false
113
## @param enableServiceLinks Whether information about services should be injected into pod's environment variable
114
## The environment variables injected by service links are not used, but can lead to slow boot times or slow running of the scripts when there are many services in the current namespace.
115
## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
116
##
117
enableServiceLinks: true
118
## @param usePasswordFiles Mount credentials as files instead of using environment variables
119
##
120
usePasswordFiles: true
121
## Enable diagnostic mode in the deployment
122
##
123
diagnosticMode:
124
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
125
##
126
enabled: false
127
## @param diagnosticMode.command Command to override all containers in the deployment
128
##
129
command:
130
- sleep
131
## @param diagnosticMode.args Args to override all containers in the deployment
132
##
133
args:
134
- infinity
135
## @param automountServiceAccountToken Mount Service Account token in pod
136
##
137
automountServiceAccountToken: true
138
## @param hostAliases Deployment pod host aliases
139
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
140
##
141
hostAliases: []
142
## @param dnsPolicy DNS Policy for pod
143
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
144
## E.g.
145
## dnsPolicy: ClusterFirst
146
##
147
dnsPolicy: ""
148
## @param dnsConfig DNS Configuration pod
149
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
150
## E.g.
151
## dnsConfig:
152
## options:
153
## - name: ndots
154
## value: "4"
155
##
156
dnsConfig: {}
157
## RabbitMQ Authentication parameters
158
##
159
auth:
160
## @param auth.username RabbitMQ application username
161
##
162
username: user
163
## @param auth.password RabbitMQ application password
164
##
165
password: ""
166
## @param auth.securePassword Whether to set the RabbitMQ password securely. This is incompatible with loading external RabbitMQ definitions and 'true' when not setting the auth.password parameter.
167
##
168
securePassword: true
169
## @param auth.updatePassword Update RabbitMQ password on secret change
170
##
171
updatePassword: false
172
## @param auth.existingPasswordSecret Existing secret with RabbitMQ credentials (existing secret must contain a value for `rabbitmq-password` key or override with setting auth.existingSecretPasswordKey)
173
## e.g:
174
## existingPasswordSecret: name-of-existing-secret
175
##
176
existingPasswordSecret: ""
177
## @param auth.existingSecretPasswordKey [default: rabbitmq-password] Password key to be retrieved from existing secret
178
## NOTE: ignored unless `auth.existingSecret` parameter is set
179
##
180
existingSecretPasswordKey: ""
181
## @param auth.enableLoopbackUser If enabled, the user `auth.username` can only connect from localhost
182
##
183
enableLoopbackUser: false
184
## @param auth.erlangCookie Erlang cookie to determine whether different nodes are allowed to communicate with each other
185
##
186
erlangCookie: ""
187
## @param auth.existingErlangSecret Existing secret with RabbitMQ Erlang cookie (must contain a value for `rabbitmq-erlang-cookie` key or override with auth.existingSecretErlangKey)
188
## e.g:
189
## existingErlangSecret: name-of-existing-secret
190
##
191
existingErlangSecret: ""
192
## @param auth.existingSecretErlangKey [default: rabbitmq-erlang-cookie] Erlang cookie key to be retrieved from existing secret
193
## NOTE: ignored unless `auth.existingErlangSecret` parameter is set
194
##
195
existingSecretErlangKey: ""
196
## Enable encryption to rabbitmq
197
## ref: https://www.rabbitmq.com/ssl.html
198
## @param auth.tls.enabled Enable TLS support on RabbitMQ
199
## @param auth.tls.autoGenerated Generate automatically self-signed TLS certificates
200
## @param auth.tls.failIfNoPeerCert When set to true, TLS connection will be rejected if client fails to provide a certificate
201
## @param auth.tls.sslOptionsVerify Should [peer verification](https://www.rabbitmq.com/ssl.html#peer-verification) be enabled?
202
## @param auth.tls.sslOptionsPassword.enabled Enable usage of password for private Key
203
## @param auth.tls.sslOptionsPassword.existingSecret Name of existing Secret containing the sslOptionsPassword
204
## @param auth.tls.sslOptionsPassword.key Enable Key referring to sslOptionsPassword in Secret specified in auth.tls.sslOptionsPassword.existingSecret
205
## @param auth.tls.sslOptionsPassword.password Use this string as Password. If set, auth.tls.sslOptionsPassword.existingSecret and auth.tls.sslOptionsPassword.key are ignored
206
## @param auth.tls.caCertificate Certificate Authority (CA) bundle content
207
## @param auth.tls.serverCertificate Server certificate content
208
## @param auth.tls.serverKey Server private key content
209
## @param auth.tls.existingSecret Existing secret with certificate content to RabbitMQ credentials
210
## @param auth.tls.existingSecretFullChain Whether or not the existing secret contains the full chain in the certificate (`tls.crt`). Will be used in place of `ca.cert` if `true`.
211
## @param auth.tls.overrideCaCertificate Existing secret with certificate content be mounted instead of the `ca.crt` coming from caCertificate or existingSecret/existingSecretFullChain.
212
##
213
tls:
214
enabled: false
215
autoGenerated: false
216
failIfNoPeerCert: true
217
sslOptionsVerify: verify_peer
218
sslOptionsPassword:
219
enabled: false
220
existingSecret: ""
221
key: ""
222
password: ""
223
caCertificate: ""
224
serverCertificate: ""
225
serverKey: ""
226
existingSecret: ""
227
existingSecretFullChain: false
228
overrideCaCertificate: ""
229
## @param logs Path of the RabbitMQ server's Erlang log file. Value for the `RABBITMQ_LOGS` environment variable
230
## ref: https://www.rabbitmq.com/logging.html#log-file-location
231
##
232
logs: "-"
233
## @param ulimitNofiles RabbitMQ Max File Descriptors
234
## ref: https://www.rabbitmq.com/install-debian.html#kernel-resource-limits
235
##
236
ulimitNofiles: "65535"
237
## RabbitMQ maximum available scheduler threads and online scheduler threads. By default it will create a thread per CPU detected, with the following parameters you can tune it manually.
238
## ref: https://hamidreza-s.github.io/erlang/scheduling/real-time/preemptive/migration/2016/02/09/erlang-scheduler-details.html#scheduler-threads
239
## @param maxAvailableSchedulers RabbitMQ maximum available scheduler threads
240
## @param onlineSchedulers RabbitMQ online scheduler threads
241
##
242
maxAvailableSchedulers: ""
243
onlineSchedulers: ""
244
## The memory threshold under which RabbitMQ will stop reading from client network sockets, in order to avoid being killed by the OS
245
## ref: https://www.rabbitmq.com/alarms.html
246
## ref: https://www.rabbitmq.com/memory.html#threshold
247
##
248
memoryHighWatermark:
249
## @param memoryHighWatermark.enabled Enable configuring Memory high watermark on RabbitMQ
250
##
251
enabled: false
252
## @param memoryHighWatermark.type Memory high watermark type. Either `absolute` or `relative`
253
##
254
type: "relative"
255
## Memory high watermark value.
256
## @param memoryHighWatermark.value Memory high watermark value
257
## The default value of 0.4 stands for 40% of available RAM
258
## Note: the memory relative limit is applied to the resourcesPreset memory limit or the resource.limits.memory to calculate the memory threshold
259
## You can also use an absolute value, e.g.: 256Mi
260
##
261
value: 0.4
262
## @param plugins List of default plugins to enable (should only be altered to remove defaults; for additional plugins use `extraPlugins`)
263
##
264
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"
265
## @param queue_leader_locator Changes the queue_leader_locator setting in the rabbitmq config file
266
##
267
queue_leader_locator: balanced
268
## @param queue_master_locator DEPRECATED. Use queue_leader_locator instead
269
##
270
queue_master_locator: ""
271
## @param communityPlugins List of Community plugins (URLs) to be downloaded during container initialization
272
## Combine it with extraPlugins to also enable them.
273
##
274
communityPlugins: ""
275
## @param extraPlugins Extra plugins to enable (single string containing a space-separated list)
276
## Use this instead of `plugins` to add new plugins
277
##
278
extraPlugins: "rabbitmq_auth_backend_ldap"
279
## Clustering settings
280
##
281
clustering:
282
## @param clustering.enabled Enable RabbitMQ clustering
283
##
284
enabled: true
285
## @param clustering.name RabbitMQ cluster name
286
## If not set, a name is generated using the common.names.fullname template
287
##
288
name: ""
289
## @param clustering.addressType Switch clustering mode. Either `ip` or `hostname`
290
##
291
addressType: hostname
292
## @param clustering.rebalance Rebalance master for queues in cluster when new replica is created
293
## ref: https://www.rabbitmq.com/rabbitmq-queues.8.html#rebalance
294
##
295
rebalance: false
296
## @param clustering.forceBoot Force boot of an unexpectedly shut down cluster (in an unexpected order).
297
## forceBoot executes 'rabbitmqctl force_boot' to force boot cluster shut down unexpectedly in an unknown order
298
## ref: https://www.rabbitmq.com/rabbitmqctl.8.html#force_boot
299
##
300
forceBoot: false
301
## @param clustering.partitionHandling Switch Partition Handling Strategy. Either `autoheal` or `pause_minority` or `pause_if_all_down` or `ignore`
302
## ref: https://www.rabbitmq.com/partitions.html#automatic-handling
303
##
304
partitionHandling: autoheal
305
## Loading a RabbitMQ definitions file to configure RabbitMQ
306
##
307
loadDefinition:
308
## @param loadDefinition.enabled Enable loading a RabbitMQ definitions file to configure RabbitMQ
309
##
310
enabled: false
311
## @param loadDefinition.file Name of the definitions file
312
##
313
file: "/app/load_definition.json"
314
## @param loadDefinition.existingSecret Existing secret with the load definitions file
315
## Can be templated if needed, e.g:
316
## existingSecret: "{{ .Release.Name }}-load-definition"
317
##
318
existingSecret: ""
319
## @param command Override default container command (useful when using custom images)
320
##
321
command: []
322
## @param args Override default container args (useful when using custom images)
323
##
324
args: []
325
## @param lifecycleHooks Overwrite livecycle for the RabbitMQ container(s) to automate configuration before or after startup
326
##
327
lifecycleHooks: {}
328
## @param terminationGracePeriodSeconds Default duration in seconds k8s waits for container to exit before sending kill signal.
329
## Any time in excess of 10 seconds will be spent waiting for any synchronization necessary for cluster not to lose data.
330
##
331
terminationGracePeriodSeconds: 120
332
## @param extraEnvVars Extra environment variables to add to RabbitMQ pods
333
## E.g:
334
## extraEnvVars:
335
## - name: FOO
336
## value: BAR
337
##
338
extraEnvVars: []
339
## @param extraEnvVarsCM Name of existing ConfigMap containing extra environment variables
340
##
341
extraEnvVarsCM: ""
342
## @param extraEnvVarsSecret Name of existing Secret containing extra environment variables (in case of sensitive data)
343
##
344
extraEnvVarsSecret: ""
345
## Container Ports
346
## @param containerPorts.amqp
347
## @param containerPorts.amqpTls
348
## @param containerPorts.dist
349
## @param containerPorts.manager
350
## @param containerPorts.epmd
351
## @param containerPorts.metrics
352
##
353
containerPorts:
354
amqp: 5672
355
amqpTls: 5671
356
dist: 25672
357
manager: 15672
358
epmd: 4369
359
metrics: 9419
360
## Host Ports
361
## @param hostPorts.amqp
362
## @param hostPorts.amqpTls
363
## @param hostPorts.manager
364
## @param hostPorts.metrics
365
##
366
hostPorts:
367
amqp: ""
368
amqpTls: ""
369
manager: ""
370
metrics: ""
371
## @param initScripts Dictionary of init scripts. Evaluated as a template.
372
## Specify dictionary of scripts to be run at first boot
373
## Alternatively, you can put your scripts under the files/docker-entrypoint-initdb.d directory
374
## For example:
375
## initScripts:
376
## my_init_script.sh: |
377
## #!/bin/sh
378
## echo "Do something."
379
##
380
initScripts: {}
381
## @param initScriptsCM ConfigMap with the init scripts. Evaluated as a template.
382
## Note: This will override initScripts
383
##
384
initScriptsCM: ""
385
## @param initScriptsSecret Secret containing `/docker-entrypoint-initdb.d` scripts to be executed at initialization time that contain sensitive data. Evaluated as a template.
386
##
387
initScriptsSecret: ""
388
## @param extraContainerPorts Extra ports to be included in container spec, primarily informational
389
## E.g:
390
## extraContainerPorts:
391
## - name: new_port_name
392
## containerPort: 1234
393
##
394
extraContainerPorts: []
395
## @param configuration [string] RabbitMQ Configuration file content: required cluster configuration
396
## Do not override unless you know what you are doing.
397
## To add more configuration, use `extraConfiguration` of `advancedConfiguration` instead
398
##
399
400
## RabbitMQ tcp_listen_options parameters
401
## See : https://www.rabbitmq.com/networking.html for additional information
402
##
403
tcpListenOptions:
404
## @param tcpListenOptions.enabled Enable TCP listen options of RabbitMQ
405
##
406
enabled: true
407
## @param tcpListenOptions.backlog Maximum size of the unaccepted TCP connections queue
408
##
409
backlog: 128
410
## @param tcpListenOptions.nodelay When set to true, deactivates Nagle's algorithm. Default is true. Highly recommended for most users.
411
##
412
nodelay: true
413
## tcpListenOptions.linger
414
##
415
linger:
416
## @param tcpListenOptions.linger.lingerOn Enable Server socket lingering
417
##
418
lingerOn: true
419
## @param tcpListenOptions.linger.timeout Server Socket lingering timeout
420
##
421
timeout: 0
422
## @param tcpListenOptions.keepalive When set to true, enables TCP keepalives
423
##
424
keepalive: false
425
configuration: |-
426
## Username and password
427
default_user = {{ .Values.auth.username }}
428
{{- if and (not .Values.auth.securePassword) .Values.auth.password }}
429
default_pass = {{ .Values.auth.password }}
430
{{- end }}
431
{{- if .Values.clustering.enabled }}
432
## Clustering
433
##
434
cluster_name = {{ default (include "common.names.fullname" .) .Values.clustering.name }}
435
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
436
cluster_formation.k8s.host = kubernetes.default
437
cluster_formation.k8s.address_type = {{ .Values.clustering.addressType }}
438
{{- $svcName := printf "%s-%s" (include "common.names.fullname" .) (default "headless" .Values.servicenameOverride) }}
439
cluster_formation.k8s.service_name = {{ $svcName }}
440
cluster_formation.k8s.hostname_suffix = .{{ $svcName }}.{{ include "common.names.namespace" . }}.svc.{{ .Values.clusterDomain }}
441
cluster_formation.node_cleanup.interval = 10
442
cluster_formation.node_cleanup.only_log_warning = true
443
cluster_partition_handling = {{ .Values.clustering.partitionHandling }}
444
{{- end }}
445
{{ if and .Values.clustering.enabled .Values.loadDefinition.enabled }}
446
cluster_formation.target_cluster_size_hint = {{ .Values.replicaCount }}
447
{{ end }}
448
{{- if .Values.loadDefinition.enabled }}
449
load_definitions = {{ .Values.loadDefinition.file }}
450
{{- end }}
451
# queue leader locator
452
queue_leader_locator = {{ include "rabbitmq.queueLocator" . }}
453
# enable loopback user
454
{{- if not (empty .Values.auth.username) }}
455
{{- $sanitizedUsername := regexQuoteMeta .Values.auth.username }}
456
loopback_users.{{ $sanitizedUsername }} = {{ .Values.auth.enableLoopbackUser }}
457
{{- else}}
458
loopback_users.guest = {{ .Values.auth.enableLoopbackUser }}
459
{{- end }}
460
{{ template "rabbitmq.extraConfiguration" . }}
461
{{- if .Values.auth.tls.enabled }}
462
ssl_options.verify = {{ .Values.auth.tls.sslOptionsVerify }}
463
listeners.ssl.default = {{ .Values.service.ports.amqpTls }}
464
ssl_options.fail_if_no_peer_cert = {{ .Values.auth.tls.failIfNoPeerCert }}
465
ssl_options.cacertfile = /opt/iamguarded/rabbitmq/certs/ca_certificate.pem
466
ssl_options.certfile = /opt/iamguarded/rabbitmq/certs/server_certificate.pem
467
ssl_options.keyfile = /opt/iamguarded/rabbitmq/certs/server_key.pem
468
{{- if .Values.auth.tls.sslOptionsPassword.enabled }}
469
ssl_options.password = {{ include "common.secrets.passwords.manage" (dict "secret" .Values.auth.tls.sslOptionsPassword.existingSecret "key" .Values.auth.tls.sslOptionsPassword.key "providedValues" (list "auth.tls.sslOptionsPassword.password") "skipB64enc" true "failOnNew" false "context" $) }}
470
{{- end }}
471
{{- end }}
472
{{- if .Values.ldap.enabled }}
473
auth_backends.1.authn = ldap
474
auth_backends.1.authz = {{ ternary "ldap" "internal" .Values.ldap.authorisationEnabled }}
475
auth_backends.2 = internal
476
{{- $host := list }}
477
{{- $port := ternary 636 389 .Values.ldap.tls.enabled }}
478
{{- if .Values.ldap.uri }}
479
{{- $hostPort := get (urlParse .Values.ldap.uri) "host" }}
480
{{- $host = list (index (splitList ":" $hostPort) 0) -}}
481
{{- if (contains ":" $hostPort) }}
482
{{- $port = index (splitList ":" $hostPort) 1 -}}
483
{{- end }}
484
{{- end }}
485
{{- range $index, $server := concat $host .Values.ldap.servers }}
486
auth_ldap.servers.{{ add $index 1 }} = {{ $server }}
487
{{- end }}
488
auth_ldap.port = {{ coalesce .Values.ldap.port $port }}
489
{{- if or .Values.ldap.user_dn_pattern .Values.ldap.userDnPattern }}
490
auth_ldap.user_dn_pattern = {{ coalesce .Values.ldap.user_dn_pattern .Values.ldap.userDnPattern }}
491
{{- end }}
492
{{- if .Values.ldap.basedn }}
493
auth_ldap.dn_lookup_base = {{ .Values.ldap.basedn }}
494
{{- end }}
495
{{- if .Values.ldap.uidField }}
496
auth_ldap.dn_lookup_attribute = {{ .Values.ldap.uidField }}
497
{{- end }}
498
{{- if .Values.ldap.binddn }}
499
auth_ldap.dn_lookup_bind.user_dn = {{ .Values.ldap.binddn }}
500
auth_ldap.dn_lookup_bind.password = {{ required "'ldap.bindpw' is required when 'ldap.binddn' is defined" .Values.ldap.bindpw }}
501
{{- end }}
502
{{- if .Values.ldap.tls.enabled }}
503
auth_ldap.use_ssl = {{ not .Values.ldap.tls.startTls }}
504
auth_ldap.use_starttls = {{ .Values.ldap.tls.startTls }}
505
{{- if .Values.ldap.tls.CAFilename }}
506
auth_ldap.ssl_options.cacertfile = {{ .Values.ldap.tls.certificatesMountPath }}/{{ .Values.ldap.tls.CAFilename }}
507
{{- end }}
508
{{- if .Values.ldap.tls.certFilename }}
509
auth_ldap.ssl_options.certfile = {{ .Values.ldap.tls.certificatesMountPath }}/{{ .Values.ldap.tls.certFilename }}
510
auth_ldap.ssl_options.keyfile = {{ .Values.ldap.tls.certificatesMountPath }}/{{ required "'ldap.tls.certKeyFilename' is required when 'ldap.tls.certFilename' is defined" .Values.ldap.tls.certKeyFilename }}
511
{{- end }}
512
{{- if .Values.ldap.tls.skipVerify }}
513
auth_ldap.ssl_options.verify = verify_none
514
auth_ldap.ssl_options.fail_if_no_peer_cert = false
515
{{- else if .Values.ldap.tls.verify }}
516
auth_ldap.ssl_options.verify = {{ .Values.ldap.tls.verify }}
517
{{- end }}
518
{{- end }}
519
{{- end }}
520
## Prometheus metrics
521
##
522
prometheus.tcp.port = {{ .Values.containerPorts.metrics }}
523
{{- if .Values.memoryHighWatermark.enabled }}
524
## Memory Threshold
525
##
526
{{- if (dig "limits" "memory" "" .Values.resources) }}
527
total_memory_available_override_value = {{ include "rabbitmq.toBytes" (dig "limits" "memory" "" .Values.resources) }}
528
{{- end }}
529
{{- if (eq .Values.memoryHighWatermark.type "absolute") }}
530
vm_memory_high_watermark.{{ .Values.memoryHighWatermark.type }} = {{ include "rabbitmq.toBytes" .Values.memoryHighWatermark.value }}
531
{{- else if (eq .Values.memoryHighWatermark.type "relative") }}
532
vm_memory_high_watermark.{{ .Values.memoryHighWatermark.type }} = {{ .Values.memoryHighWatermark.value }}
533
{{- end }}
534
{{- end }}
535
{{- if .Values.tcpListenOptions.enabled }}
536
## TCP Listen Options
537
##
538
tcp_listen_options.backlog = {{ .Values.tcpListenOptions.backlog }}
539
tcp_listen_options.nodelay = {{ .Values.tcpListenOptions.nodelay }}
540
tcp_listen_options.linger.on = {{ .Values.tcpListenOptions.linger.lingerOn }}
541
tcp_listen_options.linger.timeout = {{ .Values.tcpListenOptions.linger.timeout }}
542
tcp_listen_options.keepalive = {{ .Values.tcpListenOptions.keepalive }}
543
{{- end }}
544
## @param configurationExistingSecret Existing secret with the configuration to use as rabbitmq.conf.
545
## Must contain the key "rabbitmq.conf"
546
## Takes precedence over `configuration`, so do not use both simultaneously
547
## With providing an existingSecret, extraConfiguration and extraConfigurationExistingSecret do not take any effect
548
##
549
configurationExistingSecret: ""
550
## @param extraConfiguration [string] Configuration file content: extra configuration to be appended to RabbitMQ configuration
551
## Use this instead of `configuration` to add more configuration
552
## Do not use simultaneously with `extraConfigurationExistingSecret`
553
##
554
extraConfiguration: |-
555
#default_vhost = {{ .Release.Namespace }}-vhost
556
#disk_free_limit.absolute = 50MB
557
## @param extraConfigurationExistingSecret Existing secret with the extra configuration to append to `configuration`.
558
## Must contain the key "extraConfiguration"
559
## Takes precedence over `extraConfiguration`, so do not use both simultaneously
560
##
561
extraConfigurationExistingSecret: ""
562
## @param advancedConfiguration Configuration file content: advanced configuration
563
## Use this as additional configuration in classic config format (Erlang term configuration format)
564
##
565
## LDAP authorisation example:
566
## advancedConfiguration: |-
567
## [{rabbitmq_auth_backend_ldap,[
568
## {tag_queries, [{administrator, {constant, true}},
569
## {management, {constant, true}}]}
570
## ]}].
571
##
572
## If both, advancedConfiguration and advancedConfigurationExistingSecret are set, then advancedConfiguration
573
## will be used instead of the secret.
574
#
575
advancedConfiguration: ""
576
## @param advancedConfigurationExistingSecret Existing secret with the advanced configuration file (must contain a key `advanced.config`).
577
## Use this as additional configuration in classic config format (Erlang term configuration format) as in advancedConfiguration
578
## Do not use in combination with advancedConfiguration, will be ignored
579
##
580
advancedConfigurationExistingSecret: ""
581
## This subsystem was introduced in RabbitMQ 3.8.0 to allow rolling upgrades of cluster members without shutting down the entire cluster.
582
## Feature flags are a mechanism that controls what features are considered to be enabled or available on all cluster nodes. If a feature flag is enabled, so is its associated feature (or behavior). If not then all nodes in the cluster will disable the feature (behavior).
583
## e.g, drop_unroutable_metric,empty_basic_get_metric,implicit_default_bindings,maintenance_mode_status,quorum_queue,virtual_host_metadata
584
## @param featureFlags that controls what features are considered to be enabled or available on all cluster nodes.
585
##
586
featureFlags: ""
587
## LDAP configuration
588
##
589
ldap:
590
## @param ldap.enabled Enable LDAP support
591
##
592
enabled: false
593
## @param ldap.uri LDAP connection string.
594
##
595
uri: ""
596
## @param ldap.servers List of LDAP servers hostnames. This is valid only if ldap.uri is not set
597
##
598
servers: []
599
## @param ldap.port LDAP servers port. This is valid only if ldap.uri is not set
600
##
601
port: ""
602
## DEPRECATED ldap.user_dn_pattern it will removed in a future, please use userDnPattern instead
603
## Pattern used to translate the provided username into a value to be used for the LDAP bind
604
## @param ldap.userDnPattern Pattern used to translate the provided username into a value to be used for the LDAP bind.
605
## ref: https://www.rabbitmq.com/ldap.html#usernames-and-dns
606
##
607
userDnPattern: ""
608
## @param ldap.binddn DN of the account used to search in the LDAP server.
609
##
610
binddn: ""
611
## @param ldap.bindpw Password for binddn account.
612
##
613
bindpw: ""
614
## @param ldap.basedn Base DN path where binddn account will search for the users.
615
##
616
basedn: ""
617
## @param ldap.uidField Field used to match with the user name (uid, samAccountName, cn, etc). It matches with 'dn_lookup_attribute' in RabbitMQ configuration
618
## ref: https://www.rabbitmq.com/ldap.html#usernames-and-dns
619
##
620
## @param ldap.uidField Field used to match with the user name (uid, samAccountName, cn, etc). It matches with 'dn_lookup_attribute' in RabbitMQ configuration
621
##
622
uidField: ""
623
## @param ldap.authorisationEnabled Enable LDAP authorisation. Please set 'advancedConfiguration' with tag, topic, resources and vhost mappings
624
## ref: https://www.rabbitmq.com/ldap.html#authorisation
625
##
626
authorisationEnabled: false
627
## @param ldap.tls.enabled Enabled TLS configuration.
628
## @param ldap.tls.startTls Use STARTTLS instead of LDAPS.
629
## @param ldap.tls.skipVerify Skip any SSL verification (hostanames or certificates)
630
## @param ldap.tls.verify Verify connection. Valid values are 'verify_peer' or 'verify_none'
631
## @param ldap.tls.certificatesMountPath Where LDAP certifcates are mounted.
632
## @param ldap.tls.certificatesSecret Secret with LDAP certificates.
633
## @param ldap.tls.CAFilename CA certificate filename. Should match with the CA entry key in the ldap.tls.certificatesSecret.
634
## @param ldap.tls.certFilename Client certificate filename to authenticate against the LDAP server. Should match with certificate the entry key in the ldap.tls.certificatesSecret.
635
## @param ldap.tls.certKeyFilename Client Key filename to authenticate against the LDAP server. Should match with certificate the entry key in the ldap.tls.certificatesSecret.
636
##
637
tls:
638
enabled: false
639
startTls: false
640
skipVerify: false
641
verify: "verify_peer"
642
certificatesMountPath: /opt/iamguarded/rabbitmq/ldap/certs
643
certificatesSecret: ""
644
CAFilename: ""
645
certFilename: ""
646
certKeyFilename: ""
647
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts
648
## Examples:
649
## extraVolumeMounts:
650
## - name: extras
651
## mountPath: /usr/share/extras
652
## readOnly: true
653
##
654
extraVolumeMounts: []
655
## @param extraVolumes Optionally specify extra list of additional volumes .
656
## Example:
657
## extraVolumes:
658
## - name: extras
659
## emptyDir: {}
660
##
661
extraVolumes: []
662
## @param extraSecrets Optionally specify extra secrets to be created by the chart.
663
## This can be useful when combined with load_definitions to automatically create the secret containing the definitions to be loaded.
664
## Example:
665
## extraSecrets:
666
## load-definition:
667
## load_definition.json: |
668
## {
669
## ...
670
## }
671
##
672
extraSecrets: {}
673
## @param extraSecretsPrependReleaseName Set this flag to true if extraSecrets should be created with <release-name> prepended.
674
##
675
extraSecretsPrependReleaseName: false
676
## @section Statefulset parameters
677
##
678
679
## @param replicaCount Number of RabbitMQ replicas to deploy
680
##
681
replicaCount: 1
682
## @param schedulerName Use an alternate scheduler, e.g. "stork".
683
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
684
##
685
schedulerName: ""
686
## RabbitMQ should be initialized one by one when building cluster for the first time.
687
## Therefore, the default value of podManagementPolicy is 'OrderedReady'
688
## Once the RabbitMQ participates in the cluster, it waits for a response from another
689
## RabbitMQ in the same cluster at reboot, except the last RabbitMQ of the same cluster.
690
## If the cluster exits gracefully, you do not need to change the podManagementPolicy
691
## because the first RabbitMQ of the statefulset always will be last of the cluster.
692
## However if the last RabbitMQ of the cluster is not the first RabbitMQ due to a failure,
693
## you must change podManagementPolicy to 'Parallel'.
694
## ref : https://www.rabbitmq.com/clustering.html#restarting
695
## @param podManagementPolicy Pod management policy
696
##
697
podManagementPolicy: OrderedReady
698
## @param podLabels RabbitMQ Pod labels. Evaluated as a template
699
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
700
##
701
podLabels: {}
702
## @param podAnnotations RabbitMQ Pod annotations. Evaluated as a template
703
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
704
##
705
podAnnotations: {}
706
## @param updateStrategy.type Update strategy type for RabbitMQ statefulset
707
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
708
##
709
updateStrategy:
710
## StrategyType
711
## Can be set to RollingUpdate or OnDelete
712
##
713
type: RollingUpdate
714
## @param statefulsetLabels RabbitMQ statefulset labels. Evaluated as a template
715
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
716
##
717
statefulsetLabels: {}
718
## @param statefulsetAnnotations RabbitMQ statefulset annotations. Evaluated as a template
719
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
720
##
721
statefulsetAnnotations: {}
722
## @param priorityClassName Name of the priority class to be used by RabbitMQ pods, priority class needs to be created beforehand
723
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
724
##
725
priorityClassName: ""
726
## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
727
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
728
##
729
podAffinityPreset: ""
730
## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
731
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
732
##
733
podAntiAffinityPreset: soft
734
## Node affinity preset
735
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
736
##
737
nodeAffinityPreset:
738
## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
739
##
740
type: ""
741
## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
742
## E.g.
743
## key: "kubernetes.io/e2e-az-name"
744
##
745
key: ""
746
## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
747
## E.g.
748
## values:
749
## - e2e-az1
750
## - e2e-az2
751
##
752
values: []
753
## @param affinity Affinity for pod assignment. Evaluated as a template
754
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
755
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
756
##
757
affinity: {}
758
## @param nodeSelector Node labels for pod assignment. Evaluated as a template
759
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
760
##
761
nodeSelector: {}
762
## @param tolerations Tolerations for pod assignment. Evaluated as a template
763
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
764
##
765
tolerations: []
766
## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
767
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
768
##
769
topologySpreadConstraints: []
770
## RabbitMQ pods' Security Context
771
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
772
## @param podSecurityContext.enabled Enable RabbitMQ pods' Security Context
773
## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
774
## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
775
## @param podSecurityContext.supplementalGroups Set filesystem extra groups
776
## @param podSecurityContext.fsGroup Set RabbitMQ pod's Security Context fsGroup
777
##
778
podSecurityContext:
779
enabled: true
780
fsGroupChangePolicy: Always
781
sysctls: []
782
supplementalGroups: []
783
fsGroup: 1001
784
## @param containerSecurityContext.enabled Enabled RabbitMQ containers' Security Context
785
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
786
## @param containerSecurityContext.runAsUser Set RabbitMQ containers' Security Context runAsUser
787
## @param containerSecurityContext.runAsGroup Set RabbitMQ containers' Security Context runAsGroup
788
## @param containerSecurityContext.runAsNonRoot Set RabbitMQ container's Security Context runAsNonRoot
789
## @param containerSecurityContext.allowPrivilegeEscalation Set container's privilege escalation
790
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
791
## @param containerSecurityContext.capabilities.drop Set container's Security Context runAsNonRoot
792
## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
793
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
794
## Example:
795
## containerSecurityContext:
796
## capabilities:
797
## drop: ["NET_RAW"]
798
## readOnlyRootFilesystem: true
799
##
800
containerSecurityContext:
801
enabled: true
802
seLinuxOptions: {}
803
runAsUser: 1001
804
runAsGroup: 1001
805
runAsNonRoot: true
806
allowPrivilegeEscalation: false
807
readOnlyRootFilesystem: true
808
capabilities:
809
drop: ["ALL"]
810
seccompProfile:
811
type: "RuntimeDefault"
812
## RabbitMQ containers' resource requests and limits
813
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
814
## We usually recommend not to specify default resources and to leave this as a conscious
815
## choice for the user. This also increases chances charts run on environments with little
816
## resources, such as Minikube. If you do want to specify resources, uncomment the following
817
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
818
## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
819
##
820
resourcesPreset: "micro"
821
## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
822
## Example:
823
## resources:
824
## requests:
825
## cpu: 2
826
## memory: 512Mi
827
## limits:
828
## cpu: 3
829
## memory: 1024Mi
830
##
831
resources: {}
832
## Configure RabbitMQ containers' extra options for liveness probe
833
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
834
## @param livenessProbe.enabled Enable livenessProbe
835
## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
836
## @param livenessProbe.periodSeconds Period seconds for livenessProbe
837
## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
838
## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
839
## @param livenessProbe.successThreshold Success threshold for livenessProbe
840
##
841
livenessProbe:
842
enabled: true
843
initialDelaySeconds: 120
844
timeoutSeconds: 20
845
periodSeconds: 30
846
failureThreshold: 6
847
successThreshold: 1
848
## Configure RabbitMQ containers' extra options for readiness probe
849
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
850
## @param readinessProbe.enabled Enable readinessProbe
851
## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
852
## @param readinessProbe.periodSeconds Period seconds for readinessProbe
853
## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
854
## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
855
## @param readinessProbe.successThreshold Success threshold for readinessProbe
856
##
857
readinessProbe:
858
enabled: true
859
initialDelaySeconds: 10
860
timeoutSeconds: 20
861
periodSeconds: 30
862
failureThreshold: 3
863
successThreshold: 1
864
## Configure RabbitMQ containers' extra options for startup probe
865
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
866
## @param startupProbe.enabled Enable startupProbe
867
## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
868
## @param startupProbe.periodSeconds Period seconds for startupProbe
869
## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
870
## @param startupProbe.failureThreshold Failure threshold for startupProbe
871
## @param startupProbe.successThreshold Success threshold for startupProbe
872
##
873
startupProbe:
874
enabled: false
875
initialDelaySeconds: 10
876
timeoutSeconds: 20
877
periodSeconds: 30
878
failureThreshold: 3
879
successThreshold: 1
880
## @param customLivenessProbe Override default liveness probe
881
##
882
customLivenessProbe: {}
883
## @param customReadinessProbe Override default readiness probe
884
##
885
customReadinessProbe: {}
886
## @param customStartupProbe Define a custom startup probe
887
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
888
##
889
customStartupProbe: {}
890
## @param initContainers Add init containers to the RabbitMQ pod
891
## Example:
892
## initContainers:
893
## - name: your-image-name
894
## image: your-image
895
## imagePullPolicy: Always
896
## ports:
897
## - name: portname
898
## containerPort: 1234
899
##
900
initContainers: []
901
## @param sidecars Add sidecar containers to the RabbitMQ pod
902
## Example:
903
## sidecars:
904
## - name: your-image-name
905
## image: your-image
906
## imagePullPolicy: Always
907
## ports:
908
## - name: portname
909
## containerPort: 1234
910
##
911
sidecars: []
912
## Pod Disruption Budget configuration
913
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
914
##
915
pdb:
916
## @param pdb.create Enable/disable a Pod Disruption Budget creation
917
##
918
create: true
919
## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
920
##
921
minAvailable: ""
922
## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
923
##
924
maxUnavailable: ""
925
## @section RBAC parameters
926
##
927
928
## RabbitMQ pods ServiceAccount
929
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
930
##
931
serviceAccount:
932
## @param serviceAccount.create Enable creation of ServiceAccount for RabbitMQ pods
933
##
934
create: true
935
## @param serviceAccount.name Name of the created serviceAccount
936
## If not set and create is true, a name is generated using the rabbitmq.fullname template
937
##
938
name: ""
939
## @param serviceAccount.automountServiceAccountToken Auto-mount the service account token in the pod
940
##
941
automountServiceAccountToken: false
942
## @param serviceAccount.annotations Annotations for service account. Evaluated as a template. Only used if `create` is `true`.
943
##
944
annotations: {}
945
## Role Based Access
946
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
947
##
948
rbac:
949
## @param rbac.create Whether RBAC rules should be created
950
## binding RabbitMQ ServiceAccount to a role
951
## that allows RabbitMQ pods querying the K8s API
952
##
953
create: true
954
## @param rbac.rules Custom RBAC rules
955
## Example:
956
## rules:
957
## - apiGroups:
958
## - ""
959
## resources:
960
## - pods
961
## verbs:
962
## - get
963
## - list
964
##
965
rules: []
966
## @section Persistence parameters
967
##
968
persistence:
969
## @param persistence.enabled Enable RabbitMQ data persistence using PVC
970
##
971
enabled: true
972
## @param persistence.storageClass PVC Storage Class for RabbitMQ data volume
973
## If defined, storageClassName: <storageClass>
974
## If set to "-", storageClassName: "", which disables dynamic provisioning
975
## If undefined (the default) or set to null, no storageClassName spec is
976
## set, choosing the default provisioner. (gp2 on AWS, standard on
977
## GKE, AWS & OpenStack)
978
##
979
storageClass: ""
980
## @param persistence.selector Selector to match an existing Persistent Volume
981
## selector:
982
## matchLabels:
983
## app: my-app
984
##
985
selector: {}
986
## @param persistence.accessModes PVC Access Modes for RabbitMQ data volume
987
##
988
accessModes:
989
- ReadWriteOnce
990
## @param persistence.existingClaim Provide an existing PersistentVolumeClaims
991
## The value is evaluated as a template
992
## So, for example, the name can depend on .Release or .Chart
993
##
994
existingClaim: ""
995
## @param persistence.mountPath The path the volume will be mounted at
996
## Note: useful when using custom RabbitMQ images
997
##
998
mountPath: /opt/iamguarded/rabbitmq/.rabbitmq/mnesia
999
## @param persistence.subPath The subdirectory of the volume to mount to
1000
## Useful in dev environments and one PV for multiple services
1001
##
1002
subPath: ""
1003
## @param persistence.size PVC Storage Request for RabbitMQ data volume
1004
## If you change this value, you might have to adjust `rabbitmq.diskFreeLimit` as well
1005
##
1006
size: 8Gi
1007
## @param persistence.annotations Persistence annotations. Evaluated as a template
1008
## Example:
1009
## annotations:
1010
## example.io/disk-volume-type: SSD
1011
##
1012
annotations: {}
1013
## @param persistence.labels Persistence labels. Evaluated as a template
1014
## Example:
1015
## labels:
1016
## app: my-app
1017
labels: {}
1018
## Persistent Volume Claim Retention Policy
1019
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1020
##
1021
persistentVolumeClaimRetentionPolicy:
1022
## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for rabbitmq Statefulset
1023
##
1024
enabled: false
1025
## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1026
##
1027
whenScaled: Retain
1028
## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1029
##
1030
whenDeleted: Retain
1031
## @section Exposure parameters
1032
##
1033
1034
## Kubernetes service type
1035
##
1036
service:
1037
## @param service.type Kubernetes Service type
1038
##
1039
type: ClusterIP
1040
## @param service.portEnabled Amqp port. Cannot be disabled when `auth.tls.enabled` is `false`. Listener can be disabled with `listeners.tcp = none`.
1041
##
1042
portEnabled: true
1043
## @param service.distPortEnabled Erlang distribution server port
1044
##
1045
distPortEnabled: true
1046
## @param service.managerPortEnabled RabbitMQ Manager port
1047
##
1048
managerPortEnabled: true
1049
## @param service.epmdPortEnabled RabbitMQ EPMD Discovery service port
1050
##
1051
epmdPortEnabled: true
1052
## Service ports
1053
## @param service.ports.amqp Amqp service port
1054
## @param service.ports.amqpTls Amqp TLS service port
1055
## @param service.ports.dist Erlang distribution service port
1056
## @param service.ports.manager RabbitMQ Manager service port
1057
## @param service.ports.metrics RabbitMQ Prometheues metrics service port
1058
## @param service.ports.epmd EPMD Discovery service port
1059
##
1060
ports:
1061
amqp: 5672
1062
amqpTls: 5671
1063
dist: 25672
1064
manager: 15672
1065
metrics: 9419
1066
epmd: 4369
1067
## Service ports name
1068
## @param service.portNames.amqp Amqp service port name
1069
## @param service.portNames.amqpTls Amqp TLS service port name
1070
## @param service.portNames.dist Erlang distribution service port name
1071
## @param service.portNames.manager RabbitMQ Manager service port name
1072
## @param service.portNames.metrics RabbitMQ Prometheues metrics service port name
1073
## @param service.portNames.epmd EPMD Discovery service port name
1074
##
1075
portNames:
1076
amqp: "amqp"
1077
amqpTls: "amqp-tls"
1078
dist: "dist"
1079
manager: "http-stats"
1080
metrics: "metrics"
1081
epmd: "epmd"
1082
## Node ports to expose
1083
## @param service.nodePorts.amqp Node port for Ampq
1084
## @param service.nodePorts.amqpTls Node port for Ampq TLS
1085
## @param service.nodePorts.dist Node port for Erlang distribution
1086
## @param service.nodePorts.manager Node port for RabbitMQ Manager
1087
## @param service.nodePorts.epmd Node port for EPMD Discovery
1088
## @param service.nodePorts.metrics Node port for RabbitMQ Prometheues metrics
1089
##
1090
nodePorts:
1091
amqp: ""
1092
amqpTls: ""
1093
dist: ""
1094
manager: ""
1095
epmd: ""
1096
metrics: ""
1097
## @param service.extraPorts Extra ports to expose in the service
1098
## E.g.:
1099
## extraPorts:
1100
## - name: new_svc_name
1101
## port: 1234
1102
## targetPort: 1234
1103
##
1104
extraPorts: []
1105
## @param service.extraPortsHeadless Extra ports to expose in the headless service
1106
## E.g.:
1107
## extraPortsHeadless:
1108
## - name: new_svc_name
1109
## port: 1234
1110
## targetPort: 1234
1111
##
1112
extraPortsHeadless: []
1113
## @param service.loadBalancerSourceRanges Address(es) that are allowed when service is `LoadBalancer`
1114
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1115
## e.g:
1116
## loadBalancerSourceRanges:
1117
## - 10.10.10.0/24
1118
##
1119
loadBalancerSourceRanges: []
1120
## @param service.allocateLoadBalancerNodePorts Whether to allocate node ports when service type is LoadBalancer
1121
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-nodeport-allocation
1122
##
1123
allocateLoadBalancerNodePorts: true
1124
## @param service.externalIPs Set the ExternalIPs
1125
##
1126
externalIPs: []
1127
## @param service.externalTrafficPolicy Enable client source IP preservation
1128
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1129
##
1130
externalTrafficPolicy: Cluster
1131
## @param service.loadBalancerClass Set the LoadBalancerClass
1132
##
1133
loadBalancerClass: ""
1134
## @param service.loadBalancerIP Set the LoadBalancerIP
1135
##
1136
loadBalancerIP: ""
1137
## @param service.clusterIP Kubernetes service Cluster IP
1138
## e.g.:
1139
## clusterIP: None
1140
##
1141
clusterIP: ""
1142
## @param service.labels Service labels. Evaluated as a template
1143
##
1144
labels: {}
1145
## @param service.annotations Service annotations. Evaluated as a template
1146
## Example:
1147
## annotations:
1148
## service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
1149
##
1150
annotations: {}
1151
## DEPRECATED service.annotationsHeadless it will removed in a future release, please use service.headless.annotations instead
1152
## @param service.annotationsHeadless Headless Service annotations. Evaluated as a template
1153
## Example:
1154
## annotations:
1155
## external-dns.alpha.kubernetes.io/internal-hostname: rabbitmq.example.com
1156
##
1157
annotationsHeadless: {}
1158
## Headless service properties
1159
##
1160
headless:
1161
## @param service.headless.annotations Annotations for the headless service.
1162
##
1163
annotations: {}
1164
## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1165
## If "ClientIP", consecutive client requests will be directed to the same Pod
1166
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1167
##
1168
sessionAffinity: None
1169
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
1170
## sessionAffinityConfig:
1171
## clientIP:
1172
## timeoutSeconds: 300
1173
##
1174
sessionAffinityConfig: {}
1175
## @param service.trafficDistribution Traffic Distribution provides another
1176
## way to influence traffic routing within a Kubernetes Service.
1177
##
1178
trafficDistribution: "PreferClose"
1179
## Configure the ingress resource that allows you to access the
1180
## RabbitMQ installation. Set up the URL
1181
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
1182
##
1183
ingress:
1184
## @param ingress.enabled Enable ingress resource for Management console
1185
##
1186
enabled: false
1187
## @param ingress.path Path for the default host. You may need to set this to '/*' in order to use this with ALB ingress controllers.
1188
##
1189
path: /
1190
## @param ingress.pathType Ingress path type
1191
##
1192
pathType: ImplementationSpecific
1193
## @param ingress.hostname Default host for the ingress resource
1194
##
1195
hostname: rabbitmq.local
1196
## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1197
## For a full list of possible ingress annotations, please see
1198
## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
1199
## Use this parameter to set the required annotations for cert-manager, see
1200
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1201
##
1202
## e.g:
1203
## annotations:
1204
## kubernetes.io/ingress.class: nginx
1205
## cert-manager.io/cluster-issuer: cluster-issuer-name
1206
##
1207
annotations: {}
1208
## @param ingress.tls Enable TLS configuration for the hostname defined at `ingress.hostname` parameter
1209
## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
1210
## You can:
1211
## - Use the `ingress.secrets` parameter to create this TLS secret
1212
## - Rely on cert-manager to create it by setting the corresponding annotations
1213
## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
1214
##
1215
tls: false
1216
## @param ingress.selfSigned Set this to true in order to create a TLS secret for this ingress record
1217
## using self-signed certificates generated by Helm
1218
##
1219
selfSigned: false
1220
## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
1221
## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
1222
## e.g:
1223
## extraHosts:
1224
## - name: rabbitmq.local
1225
## path: /
1226
##
1227
extraHosts: []
1228
## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1229
## e.g:
1230
## extraPaths:
1231
## - path: /*
1232
## backend:
1233
## serviceName: ssl-redirect
1234
## servicePort: use-annotation
1235
##
1236
extraPaths: []
1237
## @param ingress.extraRules The list of additional rules to be added to this ingress record. Evaluated as a template
1238
## Useful when looking for additional customization, such as using different backend
1239
##
1240
extraRules: []
1241
## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
1242
## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1243
## e.g:
1244
## extraTls:
1245
## - hosts:
1246
## - rabbitmq.local
1247
## secretName: rabbitmq.local-tls
1248
##
1249
extraTls: []
1250
## @param ingress.secrets Custom TLS certificates as secrets
1251
## NOTE: 'key' and 'certificate' are expected in PEM format
1252
## NOTE: 'name' should line up with a 'secretName' set further up
1253
## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
1254
## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
1255
## It is also possible to create and manage the certificates outside of this helm chart
1256
## Please see README.md for more information
1257
## e.g:
1258
## secrets:
1259
## - name: rabbitmq.local-tls
1260
## key: |-
1261
## -----BEGIN RSA PRIVATE KEY-----
1262
## ...
1263
## -----END RSA PRIVATE KEY-----
1264
## certificate: |-
1265
## -----BEGIN CERTIFICATE-----
1266
## ...
1267
## -----END CERTIFICATE-----
1268
##
1269
secrets: []
1270
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1271
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1272
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1273
##
1274
ingressClassName: ""
1275
## @param ingress.existingSecret It is you own the certificate as secret.
1276
##
1277
existingSecret: ""
1278
## Network Policies
1279
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1280
##
1281
networkPolicy:
1282
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1283
##
1284
enabled: true
1285
## @param networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
1286
##
1287
kubeAPIServerPorts: [443, 6443, 8443]
1288
## @param networkPolicy.allowExternal Don't require server label for connections
1289
## The Policy model to apply. When set to false, only pods with the correct
1290
## server label will have network access to the ports server is listening
1291
## on. When true, server will accept connections from any source
1292
## (with the correct destination port).
1293
##
1294
allowExternal: true
1295
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1296
##
1297
allowExternalEgress: true
1298
## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
1299
##
1300
addExternalClientAccess: true
1301
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1302
## e.g:
1303
## extraIngress:
1304
## - ports:
1305
## - port: 1234
1306
## from:
1307
## - podSelector:
1308
## - matchLabels:
1309
## - role: frontend
1310
## - podSelector:
1311
## - matchExpressions:
1312
## - key: role
1313
## operator: In
1314
## values:
1315
## - frontend
1316
extraIngress: []
1317
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1318
## e.g:
1319
## extraEgress:
1320
## - ports:
1321
## - port: 1234
1322
## to:
1323
## - podSelector:
1324
## - matchLabels:
1325
## - role: frontend
1326
## - podSelector:
1327
## - matchExpressions:
1328
## - key: role
1329
## operator: In
1330
## values:
1331
## - frontend
1332
##
1333
extraEgress: []
1334
## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
1335
## e.g:
1336
## ingressPodMatchLabels:
1337
## my-client: "true"
1338
#
1339
ingressPodMatchLabels: {}
1340
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1341
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
1342
##
1343
ingressNSMatchLabels: {}
1344
ingressNSPodMatchLabels: {}
1345
## @section Metrics Parameters
1346
##
1347
1348
## Prometheus Metrics
1349
##
1350
metrics:
1351
## @param metrics.enabled Enable exposing RabbitMQ metrics to be gathered by Prometheus
1352
##
1353
enabled: false
1354
## @param metrics.plugins Plugins to enable Prometheus metrics in RabbitMQ
1355
##
1356
plugins: "rabbitmq_prometheus"
1357
## Prometheus pod annotations
1358
## @param metrics.podAnnotations [object] Annotations for enabling prometheus to access the metrics endpoint
1359
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1360
##
1361
podAnnotations:
1362
prometheus.io/scrape: "true"
1363
prometheus.io/port: "{{ .Values.service.ports.metrics }}"
1364
## Prometheus Service Monitor
1365
## ref: https://github.com/coreos/prometheus-operator
1366
##
1367
serviceMonitor:
1368
## @param metrics.serviceMonitor.namespace Specify the namespace in which the serviceMonitor resource will be created
1369
##
1370
namespace: ""
1371
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1372
##
1373
jobLabel: ""
1374
## @param metrics.serviceMonitor.targetLabels Used to keep given service's labels in target
1375
## e.g:
1376
## - app.kubernetes.io/name
1377
##
1378
targetLabels: {}
1379
## @param metrics.serviceMonitor.podTargetLabels Used to keep given pod's labels in target
1380
## e.g:
1381
## - app.kubernetes.io/name
1382
##
1383
podTargetLabels: {}
1384
## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1385
##
1386
## selector:
1387
## prometheus: my-prometheus
1388
##
1389
selector: {}
1390
## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1391
##
1392
labels: {}
1393
## @param metrics.serviceMonitor.annotations Extra annotations for the ServiceMonitor
1394
##
1395
annotations: {}
1396
## Scrape metrics from the `/metrics` endpoint
1397
## ref: https://www.rabbitmq.com/docs/prometheus#default-endpoint
1398
##
1399
default:
1400
## @param metrics.serviceMonitor.default.enabled Enable default metrics endpoint (`GET /metrics`) to be scraped by the ServiceMonitor
1401
##
1402
enabled: false
1403
## @param metrics.serviceMonitor.default.interval Specify the interval at which metrics should be scraped
1404
##
1405
interval: 30s
1406
## @param metrics.serviceMonitor.default.scrapeTimeout Specify the timeout after which the scrape is ended
1407
## e.g:
1408
## scrapeTimeout: 30s
1409
##
1410
scrapeTimeout: ""
1411
## @param metrics.serviceMonitor.default.relabelings RelabelConfigs to apply to samples before scraping.
1412
##
1413
relabelings: []
1414
## @param metrics.serviceMonitor.default.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1415
##
1416
metricRelabelings: []
1417
## @param metrics.serviceMonitor.default.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1418
##
1419
honorLabels: false
1420
## Scrape metrics from the `/metrics/per-object` endpoint
1421
## ref: https://www.rabbitmq.com/docs/prometheus#per-object-endpoint
1422
##
1423
perObject:
1424
## @param metrics.serviceMonitor.perObject.enabled Enable per-object metrics endpoint (`GET /metrics/per-object`) to be scraped by the ServiceMonitor
1425
##
1426
enabled: false
1427
## @param metrics.serviceMonitor.perObject.interval Specify the interval at which metrics should be scraped
1428
##
1429
interval: 30s
1430
## @param metrics.serviceMonitor.perObject.scrapeTimeout Specify the timeout after which the scrape is ended
1431
## e.g:
1432
## scrapeTimeout: 30s
1433
##
1434
scrapeTimeout: ""
1435
## @param metrics.serviceMonitor.perObject.relabelings RelabelConfigs to apply to samples before scraping.
1436
##
1437
relabelings: []
1438
## @param metrics.serviceMonitor.perObject.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1439
##
1440
metricRelabelings: []
1441
## @param metrics.serviceMonitor.perObject.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1442
##
1443
honorLabels: false
1444
## Scrape metrics from the `/metrics/detailed` endpoint
1445
## ref: https://www.rabbitmq.com/docs/prometheus#detailed-endpoint
1446
##
1447
detailed:
1448
## @param metrics.serviceMonitor.detailed.enabled Enable detailed metrics endpoint (`GET /metrics/detailed`) to be scraped by the ServiceMonitor
1449
##
1450
enabled: false
1451
## @param metrics.serviceMonitor.detailed.family List of metric families to get
1452
## e.g.
1453
## family: ["queue_coarse_metrics", "queue_consumer_count"]
1454
##
1455
family: []
1456
## @param metrics.serviceMonitor.detailed.vhost Filter metrics to only show for the specified vhosts
1457
##
1458
vhost: []
1459
## @param metrics.serviceMonitor.detailed.interval Specify the interval at which metrics should be scraped
1460
##
1461
interval: 30s
1462
## @param metrics.serviceMonitor.detailed.scrapeTimeout Specify the timeout after which the scrape is ended
1463
## e.g:
1464
## scrapeTimeout: 30s
1465
##
1466
scrapeTimeout: ""
1467
## @param metrics.serviceMonitor.detailed.relabelings RelabelConfigs to apply to samples before scraping.
1468
##
1469
relabelings: []
1470
## @param metrics.serviceMonitor.detailed.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1471
##
1472
metricRelabelings: []
1473
## @param metrics.serviceMonitor.detailed.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1474
##
1475
honorLabels: false
1476
## @param metrics.serviceMonitor.enabled Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1477
##
1478
enabled: false
1479
## @param metrics.serviceMonitor.interval Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1480
##
1481
interval: 30s
1482
## @param metrics.serviceMonitor.scrapeTimeout Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1483
##
1484
scrapeTimeout: ""
1485
## @param metrics.serviceMonitor.relabelings Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1486
##
1487
relabelings: []
1488
## @param metrics.serviceMonitor.metricRelabelings Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1489
##
1490
metricRelabelings: []
1491
## @param metrics.serviceMonitor.honorLabels Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1492
##
1493
honorLabels: false
1494
## @param metrics.serviceMonitor.path Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1495
##
1496
path: ""
1497
## @param metrics.serviceMonitor.params Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1498
##
1499
params: {}
1500
## Custom PrometheusRule to be defined
1501
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1502
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1503
##
1504
prometheusRule:
1505
## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
1506
##
1507
enabled: false
1508
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1509
##
1510
additionalLabels: {}
1511
## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
1512
##
1513
namespace: ""
1514
## List of rules, used as template by Helm.
1515
## @param metrics.prometheusRule.rules List of rules, used as template by Helm.
1516
## These are just examples rules inspired from https://awesome-prometheus-alerts.grep.to/rules.html
1517
## rules:
1518
## - alert: RabbitmqDown
1519
## expr: rabbitmq_up{service="{{ template "common.names.fullname" . }}"} == 0
1520
## for: 5m
1521
## labels:
1522
## severity: error
1523
## annotations:
1524
## summary: Rabbitmq down (instance {{ "{{ $labels.instance }}" }})
1525
## description: RabbitMQ node down
1526
## - alert: ClusterDown
1527
## expr: |
1528
## sum(rabbitmq_running{service="{{ template "common.names.fullname" . }}"})
1529
## < {{ .Values.replicaCount }}
1530
## for: 5m
1531
## labels:
1532
## severity: error
1533
## annotations:
1534
## summary: Cluster down (instance {{ "{{ $labels.instance }}" }})
1535
## description: |
1536
## Less than {{ .Values.replicaCount }} nodes running in RabbitMQ cluster
1537
## VALUE = {{ "{{ $value }}" }}
1538
## - alert: ClusterPartition
1539
## expr: rabbitmq_partitions{service="{{ template "common.names.fullname" . }}"} > 0
1540
## for: 5m
1541
## labels:
1542
## severity: error
1543
## annotations:
1544
## summary: Cluster partition (instance {{ "{{ $labels.instance }}" }})
1545
## description: |
1546
## Cluster partition
1547
## VALUE = {{ "{{ $value }}" }}
1548
## - alert: OutOfMemory
1549
## expr: |
1550
## rabbitmq_node_mem_used{service="{{ template "common.names.fullname" . }}"}
1551
## / rabbitmq_node_mem_limit{service="{{ template "common.names.fullname" . }}"}
1552
## * 100 > 90
1553
## for: 5m
1554
## labels:
1555
## severity: warning
1556
## annotations:
1557
## summary: Out of memory (instance {{ "{{ $labels.instance }}" }})
1558
## description: |
1559
## Memory available for RabbmitMQ is low (< 10%)\n VALUE = {{ "{{ $value }}" }}
1560
## LABELS: {{ "{{ $labels }}" }}
1561
## - alert: TooManyConnections
1562
## expr: rabbitmq_connectionsTotal{service="{{ template "common.names.fullname" . }}"} > 1000
1563
## for: 5m
1564
## labels:
1565
## severity: warning
1566
## annotations:
1567
## summary: Too many connections (instance {{ "{{ $labels.instance }}" }})
1568
## description: |
1569
## RabbitMQ instance has too many connections (> 1000)
1570
## VALUE = {{ "{{ $value }}" }}\n LABELS: {{ "{{ $labels }}" }}
1571
##
1572
rules: []
1573
## @section Init Container Parameters
1574
##
1575
1576
## Init Container parameters
1577
## Change the owner and group of the persistent volume(s) mountpoint(s) to 'runAsUser:fsGroup' on each component
1578
## values from the securityContext section of the component
1579
##
1580
volumePermissions:
1581
## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1582
##
1583
enabled: false
1584
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1585
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1586
## @skip volumePermissions.image.tag Init container volume-permissions image tag
1587
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1588
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1589
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1590
##
1591
image:
1592
registry: cgr.dev
1593
repository: chainguard-private/os-shell-iamguarded
1594
tag: 1.0.0
1595
digest: ""
1596
## Specify a imagePullPolicy
1597
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1598
##
1599
pullPolicy: IfNotPresent
1600
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1601
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1602
## Example:
1603
## pullSecrets:
1604
## - myRegistryKeySecretName
1605
##
1606
pullSecrets: []
1607
## Init Container resource requests and limits
1608
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1609
## We usually recommend not to specify default resources and to leave this as a conscious
1610
## choice for the user. This also increases chances charts run on environments with little
1611
## resources, such as Minikube. If you do want to specify resources, uncomment the following
1612
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1613
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1614
##
1615
resourcesPreset: "nano"
1616
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1617
## Example:
1618
## resources:
1619
## requests:
1620
## cpu: 2
1621
## memory: 512Mi
1622
## limits:
1623
## cpu: 3
1624
## memory: 1024Mi
1625
##
1626
resources: {}
1627
## Init container' Security Context
1628
## Note: the chown of the data folder is done to containerSecurityContext.runAsUser
1629
## and not the below volumePermissions.containerSecurityContext.runAsUser
1630
## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1631
## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container
1632
##
1633
containerSecurityContext:
1634
seLinuxOptions: {}
1635
runAsUser: 0
1636

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.