1# This file has been modified by Chainguard, Inc.
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
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
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
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
27 ## - myRegistryKeySecretName
30 defaultStorageClass: ""
32 ## Security parameters
35 ## @param global.security.allowInsecureImages Allows skipping image verification
36 allowInsecureImages: false
37 ## Compatibility adaptations for Kubernetes platforms
40 ## Compatibility adaptations for 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)
45 adaptSecurityContext: auto
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
59 repository: chainguard-private/rabbitmq-iamguarded
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
66 ## Specify a imagePullPolicy
67 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
75 ## - myRegistryKeySecretName
78## @section Common parameters
81## @param nameOverride String to partially override rabbitmq.fullname template (will maintain the release name)
84## @param fullnameOverride String to fully override rabbitmq.fullname template
87## @param namespaceOverride String to fully override common.names.namespace
90## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
93## @param clusterDomain Kubernetes Cluster Domain
95clusterDomain: cluster.local
96## @param extraDeploy Array of extra objects to deploy with the release
99## @param commonAnnotations Annotations to add to all deployed objects
102## @param servicenameOverride String to partially override headless service name
104servicenameOverride: ""
105## @param commonLabels Labels to add to all deployed objects
108## @param serviceBindings.enabled Create secret for service binding (Experimental)
109## Ref: https://servicebinding.io/service-provider/
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`.
117enableServiceLinks: true
118## @param usePasswordFiles Mount credentials as files instead of using environment variables
120usePasswordFiles: true
121## Enable diagnostic mode in the deployment
124 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
127 ## @param diagnosticMode.command Command to override all containers in the deployment
131 ## @param diagnosticMode.args Args to override all containers in the deployment
135## @param automountServiceAccountToken Mount Service Account token in pod
137automountServiceAccountToken: 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/
142## @param dnsPolicy DNS Policy for pod
143## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
145## dnsPolicy: ClusterFirst
148## @param dnsConfig DNS Configuration pod
149## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
157## RabbitMQ Authentication parameters
160 ## @param auth.username RabbitMQ application username
163 ## @param auth.password RabbitMQ application 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.
169 ## @param auth.updatePassword Update RabbitMQ password on secret change
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)
174 ## existingPasswordSecret: name-of-existing-secret
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
180 existingSecretPasswordKey: ""
181 ## @param auth.enableLoopbackUser If enabled, the user `auth.username` can only connect from localhost
183 enableLoopbackUser: false
184 ## @param auth.erlangCookie Erlang cookie to determine whether different nodes are allowed to communicate with each other
187 ## @param auth.existingErlangSecret Existing secret with RabbitMQ Erlang cookie (must contain a value for `rabbitmq-erlang-cookie` key or override with auth.existingSecretErlangKey)
189 ## existingErlangSecret: name-of-existing-secret
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
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.
216 failIfNoPeerCert: true
217 sslOptionsVerify: verify_peer
224 serverCertificate: ""
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
233## @param ulimitNofiles RabbitMQ Max File Descriptors
234## ref: https://www.rabbitmq.com/install-debian.html#kernel-resource-limits
236ulimitNofiles: "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
242maxAvailableSchedulers: ""
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
249 ## @param memoryHighWatermark.enabled Enable configuring Memory high watermark on RabbitMQ
252 ## @param memoryHighWatermark.type Memory high watermark type. Either `absolute` or `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
262## @param plugins List of default plugins to enable (should only be altered to remove defaults; for additional plugins use `extraPlugins`)
264plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"
265## @param queue_leader_locator Changes the queue_leader_locator setting in the rabbitmq config file
267queue_leader_locator: balanced
268## @param queue_master_locator DEPRECATED. Use queue_leader_locator instead
270queue_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.
275## @param extraPlugins Extra plugins to enable (single string containing a space-separated list)
276## Use this instead of `plugins` to add new plugins
278extraPlugins: "rabbitmq_auth_backend_ldap"
279## Clustering settings
282 ## @param clustering.enabled Enable RabbitMQ clustering
285 ## @param clustering.name RabbitMQ cluster name
286 ## If not set, a name is generated using the common.names.fullname template
289 ## @param clustering.addressType Switch clustering mode. Either `ip` or `hostname`
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
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
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
304 partitionHandling: autoheal
305## Loading a RabbitMQ definitions file to configure RabbitMQ
308 ## @param loadDefinition.enabled Enable loading a RabbitMQ definitions file to configure RabbitMQ
311 ## @param loadDefinition.file Name of the definitions file
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"
319## @param command Override default container command (useful when using custom images)
322## @param args Override default container args (useful when using custom images)
325## @param lifecycleHooks Overwrite livecycle for the RabbitMQ container(s) to automate configuration before or after startup
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.
331terminationGracePeriodSeconds: 120
332## @param extraEnvVars Extra environment variables to add to RabbitMQ pods
339## @param extraEnvVarsCM Name of existing ConfigMap containing extra environment variables
342## @param extraEnvVarsSecret Name of existing Secret containing extra environment variables (in case of sensitive data)
344extraEnvVarsSecret: ""
346## @param containerPorts.amqp
347## @param containerPorts.amqpTls
348## @param containerPorts.dist
349## @param containerPorts.manager
350## @param containerPorts.epmd
351## @param containerPorts.metrics
361## @param hostPorts.amqp
362## @param hostPorts.amqpTls
363## @param hostPorts.manager
364## @param hostPorts.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
376## my_init_script.sh: |
378## echo "Do something."
381## @param initScriptsCM ConfigMap with the init scripts. Evaluated as a template.
382## Note: This will override initScripts
385## @param initScriptsSecret Secret containing `/docker-entrypoint-initdb.d` scripts to be executed at initialization time that contain sensitive data. Evaluated as a template.
388## @param extraContainerPorts Extra ports to be included in container spec, primarily informational
390## extraContainerPorts:
391## - name: new_port_name
392## containerPort: 1234
394extraContainerPorts: []
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
400## RabbitMQ tcp_listen_options parameters
401## See : https://www.rabbitmq.com/networking.html for additional information
404 ## @param tcpListenOptions.enabled Enable TCP listen options of RabbitMQ
407 ## @param tcpListenOptions.backlog Maximum size of the unaccepted TCP connections queue
410 ## @param tcpListenOptions.nodelay When set to true, deactivates Nagle's algorithm. Default is true. Highly recommended for most users.
413 ## tcpListenOptions.linger
416 ## @param tcpListenOptions.linger.lingerOn Enable Server socket lingering
419 ## @param tcpListenOptions.linger.timeout Server Socket lingering timeout
422 ## @param tcpListenOptions.keepalive When set to true, enables TCP keepalives
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 }}
431 {{- if .Values.clustering.enabled }}
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 }}
445 {{ if and .Values.clustering.enabled .Values.loadDefinition.enabled }}
446 cluster_formation.target_cluster_size_hint = {{ .Values.replicaCount }}
448 {{- if .Values.loadDefinition.enabled }}
449 load_definitions = {{ .Values.loadDefinition.file }}
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 }}
458 loopback_users.guest = {{ .Values.auth.enableLoopbackUser }}
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" $) }}
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
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 -}}
485 {{- range $index, $server := concat $host .Values.ldap.servers }}
486 auth_ldap.servers.{{ add $index 1 }} = {{ $server }}
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 }}
492 {{- if .Values.ldap.basedn }}
493 auth_ldap.dn_lookup_base = {{ .Values.ldap.basedn }}
495 {{- if .Values.ldap.uidField }}
496 auth_ldap.dn_lookup_attribute = {{ .Values.ldap.uidField }}
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 }}
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 }}
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 }}
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 }}
520 ## Prometheus metrics
522 prometheus.tcp.port = {{ .Values.containerPorts.metrics }}
523 {{- if .Values.memoryHighWatermark.enabled }}
526 {{- if (dig "limits" "memory" "" .Values.resources) }}
527 total_memory_available_override_value = {{ include "rabbitmq.toBytes" (dig "limits" "memory" "" .Values.resources) }}
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 }}
535 {{- if .Values.tcpListenOptions.enabled }}
536 ## TCP Listen Options
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 }}
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
549configurationExistingSecret: ""
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`
554extraConfiguration: |-
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
561extraConfigurationExistingSecret: ""
562## @param advancedConfiguration Configuration file content: advanced configuration
563## Use this as additional configuration in classic config format (Erlang term configuration format)
565## LDAP authorisation example:
566## advancedConfiguration: |-
567## [{rabbitmq_auth_backend_ldap,[
568## {tag_queries, [{administrator, {constant, true}},
569## {management, {constant, true}}]}
572## If both, advancedConfiguration and advancedConfigurationExistingSecret are set, then advancedConfiguration
573## will be used instead of the secret.
575advancedConfiguration: ""
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
580advancedConfigurationExistingSecret: ""
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.
590 ## @param ldap.enabled Enable LDAP support
593 ## @param ldap.uri LDAP connection string.
596 ## @param ldap.servers List of LDAP servers hostnames. This is valid only if ldap.uri is not set
599 ## @param ldap.port LDAP servers port. This is valid only if ldap.uri is not set
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
608 ## @param ldap.binddn DN of the account used to search in the LDAP server.
611 ## @param ldap.bindpw Password for binddn account.
614 ## @param ldap.basedn Base DN path where binddn account will search for the users.
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
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
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
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.
641 verify: "verify_peer"
642 certificatesMountPath: /opt/iamguarded/rabbitmq/ldap/certs
643 certificatesSecret: ""
647## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts
651## mountPath: /usr/share/extras
655## @param extraVolumes Optionally specify extra list of additional volumes .
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.
667## load_definition.json: |
673## @param extraSecretsPrependReleaseName Set this flag to true if extraSecrets should be created with <release-name> prepended.
675extraSecretsPrependReleaseName: false
676## @section Statefulset parameters
679## @param replicaCount Number of RabbitMQ replicas to deploy
682## @param schedulerName Use an alternate scheduler, e.g. "stork".
683## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
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
697podManagementPolicy: OrderedReady
698## @param podLabels RabbitMQ Pod labels. Evaluated as a template
699## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
702## @param podAnnotations RabbitMQ Pod annotations. Evaluated as a template
703## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
706## @param updateStrategy.type Update strategy type for RabbitMQ statefulset
707## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
711 ## Can be set to RollingUpdate or OnDelete
714## @param statefulsetLabels RabbitMQ statefulset labels. Evaluated as a template
715## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
718## @param statefulsetAnnotations RabbitMQ statefulset annotations. Evaluated as a template
719## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
721statefulsetAnnotations: {}
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/
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
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
733podAntiAffinityPreset: soft
734## Node affinity preset
735## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
738 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
741 ## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
743 ## key: "kubernetes.io/e2e-az-name"
746 ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
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
758## @param nodeSelector Node labels for pod assignment. Evaluated as a template
759## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
762## @param tolerations Tolerations for pod assignment. Evaluated as a template
763## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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
769topologySpreadConstraints: []
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
780 fsGroupChangePolicy: Always
782 supplementalGroups: []
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
795## containerSecurityContext:
798## readOnlyRootFilesystem: true
800containerSecurityContext:
806 allowPrivilegeEscalation: false
807 readOnlyRootFilesystem: true
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).
820resourcesPreset: "micro"
821## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
843 initialDelaySeconds: 120
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
859 initialDelaySeconds: 10
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
875 initialDelaySeconds: 10
880## @param customLivenessProbe Override default liveness probe
882customLivenessProbe: {}
883## @param customReadinessProbe Override default readiness probe
885customReadinessProbe: {}
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
889customStartupProbe: {}
890## @param initContainers Add init containers to the RabbitMQ pod
893## - name: your-image-name
895## imagePullPolicy: Always
898## containerPort: 1234
901## @param sidecars Add sidecar containers to the RabbitMQ pod
904## - name: your-image-name
906## imagePullPolicy: Always
909## containerPort: 1234
912## Pod Disruption Budget configuration
913## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
916 ## @param pdb.create Enable/disable a Pod Disruption Budget creation
919 ## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
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.
925## @section RBAC parameters
928## RabbitMQ pods ServiceAccount
929## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
932 ## @param serviceAccount.create Enable creation of ServiceAccount for RabbitMQ pods
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
939 ## @param serviceAccount.automountServiceAccountToken Auto-mount the service account token in the pod
941 automountServiceAccountToken: false
942 ## @param serviceAccount.annotations Annotations for service account. Evaluated as a template. Only used if `create` is `true`.
946## ref: https://kubernetes.io/docs/admin/authorization/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
954 ## @param rbac.rules Custom RBAC rules
966## @section Persistence parameters
969 ## @param persistence.enabled Enable RabbitMQ data persistence using PVC
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)
980 ## @param persistence.selector Selector to match an existing Persistent Volume
986 ## @param persistence.accessModes PVC Access Modes for RabbitMQ data volume
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
995 ## @param persistence.mountPath The path the volume will be mounted at
996 ## Note: useful when using custom RabbitMQ images
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
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
1007 ## @param persistence.annotations Persistence annotations. Evaluated as a template
1010 ## example.io/disk-volume-type: SSD
1013 ## @param persistence.labels Persistence labels. Evaluated as a template
1018## Persistent Volume Claim Retention Policy
1019## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
1021persistentVolumeClaimRetentionPolicy:
1022 ## @param persistentVolumeClaimRetentionPolicy.enabled Enable Persistent volume retention policy for rabbitmq Statefulset
1025 ## @param persistentVolumeClaimRetentionPolicy.whenScaled Volume retention behavior when the replica count of the StatefulSet is reduced
1028 ## @param persistentVolumeClaimRetentionPolicy.whenDeleted Volume retention behavior that applies when the StatefulSet is deleted
1031## @section Exposure parameters
1034## Kubernetes service type
1037 ## @param service.type Kubernetes Service type
1040 ## @param service.portEnabled Amqp port. Cannot be disabled when `auth.tls.enabled` is `false`. Listener can be disabled with `listeners.tcp = none`.
1043 ## @param service.distPortEnabled Erlang distribution server port
1045 distPortEnabled: true
1046 ## @param service.managerPortEnabled RabbitMQ Manager port
1048 managerPortEnabled: true
1049 ## @param service.epmdPortEnabled RabbitMQ EPMD Discovery service port
1051 epmdPortEnabled: true
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
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
1079 manager: "http-stats"
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
1097 ## @param service.extraPorts Extra ports to expose in the service
1100 ## - name: new_svc_name
1105 ## @param service.extraPortsHeadless Extra ports to expose in the headless service
1107 ## extraPortsHeadless:
1108 ## - name: new_svc_name
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
1116 ## loadBalancerSourceRanges:
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
1123 allocateLoadBalancerNodePorts: true
1124 ## @param service.externalIPs Set the 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
1130 externalTrafficPolicy: Cluster
1131 ## @param service.loadBalancerClass Set the LoadBalancerClass
1133 loadBalancerClass: ""
1134 ## @param service.loadBalancerIP Set the LoadBalancerIP
1137 ## @param service.clusterIP Kubernetes service Cluster IP
1142 ## @param service.labels Service labels. Evaluated as a template
1145 ## @param service.annotations Service annotations. Evaluated as a template
1148 ## service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
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
1155 ## external-dns.alpha.kubernetes.io/internal-hostname: rabbitmq.example.com
1157 annotationsHeadless: {}
1158 ## Headless service properties
1161 ## @param service.headless.annotations Annotations for the headless service.
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
1168 sessionAffinity: None
1169 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
1170 ## sessionAffinityConfig:
1172 ## timeoutSeconds: 300
1174 sessionAffinityConfig: {}
1175 ## @param service.trafficDistribution Traffic Distribution provides another
1176 ## way to influence traffic routing within a Kubernetes Service.
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/
1184 ## @param ingress.enabled Enable ingress resource for Management console
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.
1190 ## @param ingress.pathType Ingress path type
1192 pathType: ImplementationSpecific
1193 ## @param ingress.hostname Default host for the ingress resource
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
1204 ## kubernetes.io/ingress.class: nginx
1205 ## cert-manager.io/cluster-issuer: cluster-issuer-name
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 }}
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`
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
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
1224 ## - name: rabbitmq.local
1228 ## @param ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1233 ## serviceName: ssl-redirect
1234 ## servicePort: use-annotation
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
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
1247 ## secretName: rabbitmq.local-tls
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
1259 ## - name: rabbitmq.local-tls
1261 ## -----BEGIN RSA PRIVATE KEY-----
1263 ## -----END RSA PRIVATE KEY-----
1265 ## -----BEGIN CERTIFICATE-----
1267 ## -----END CERTIFICATE-----
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/
1274 ingressClassName: ""
1275 ## @param ingress.existingSecret It is you own the certificate as secret.
1279## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1282 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1285 ## @param networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
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).
1295 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1297 allowExternalEgress: true
1298 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
1300 addExternalClientAccess: true
1301 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1311 ## - matchExpressions:
1317 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1327 ## - matchExpressions:
1334 ## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
1336 ## ingressPodMatchLabels:
1337 ## my-client: "true"
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.
1343 ingressNSMatchLabels: {}
1344 ingressNSPodMatchLabels: {}
1345## @section Metrics Parameters
1348## Prometheus Metrics
1351 ## @param metrics.enabled Enable exposing RabbitMQ metrics to be gathered by Prometheus
1354 ## @param metrics.plugins Plugins to enable Prometheus metrics in RabbitMQ
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/
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
1368 ## @param metrics.serviceMonitor.namespace Specify the namespace in which the serviceMonitor resource will be created
1371 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1374 ## @param metrics.serviceMonitor.targetLabels Used to keep given service's labels in target
1376 ## - app.kubernetes.io/name
1379 ## @param metrics.serviceMonitor.podTargetLabels Used to keep given pod's labels in target
1381 ## - app.kubernetes.io/name
1384 ## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1387 ## prometheus: my-prometheus
1390 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1393 ## @param metrics.serviceMonitor.annotations Extra annotations for the ServiceMonitor
1396 ## Scrape metrics from the `/metrics` endpoint
1397 ## ref: https://www.rabbitmq.com/docs/prometheus#default-endpoint
1400 ## @param metrics.serviceMonitor.default.enabled Enable default metrics endpoint (`GET /metrics`) to be scraped by the ServiceMonitor
1403 ## @param metrics.serviceMonitor.default.interval Specify the interval at which metrics should be scraped
1406 ## @param metrics.serviceMonitor.default.scrapeTimeout Specify the timeout after which the scrape is ended
1408 ## scrapeTimeout: 30s
1411 ## @param metrics.serviceMonitor.default.relabelings RelabelConfigs to apply to samples before scraping.
1414 ## @param metrics.serviceMonitor.default.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1416 metricRelabelings: []
1417 ## @param metrics.serviceMonitor.default.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1420 ## Scrape metrics from the `/metrics/per-object` endpoint
1421 ## ref: https://www.rabbitmq.com/docs/prometheus#per-object-endpoint
1424 ## @param metrics.serviceMonitor.perObject.enabled Enable per-object metrics endpoint (`GET /metrics/per-object`) to be scraped by the ServiceMonitor
1427 ## @param metrics.serviceMonitor.perObject.interval Specify the interval at which metrics should be scraped
1430 ## @param metrics.serviceMonitor.perObject.scrapeTimeout Specify the timeout after which the scrape is ended
1432 ## scrapeTimeout: 30s
1435 ## @param metrics.serviceMonitor.perObject.relabelings RelabelConfigs to apply to samples before scraping.
1438 ## @param metrics.serviceMonitor.perObject.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1440 metricRelabelings: []
1441 ## @param metrics.serviceMonitor.perObject.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1444 ## Scrape metrics from the `/metrics/detailed` endpoint
1445 ## ref: https://www.rabbitmq.com/docs/prometheus#detailed-endpoint
1448 ## @param metrics.serviceMonitor.detailed.enabled Enable detailed metrics endpoint (`GET /metrics/detailed`) to be scraped by the ServiceMonitor
1451 ## @param metrics.serviceMonitor.detailed.family List of metric families to get
1453 ## family: ["queue_coarse_metrics", "queue_consumer_count"]
1456 ## @param metrics.serviceMonitor.detailed.vhost Filter metrics to only show for the specified vhosts
1459 ## @param metrics.serviceMonitor.detailed.interval Specify the interval at which metrics should be scraped
1462 ## @param metrics.serviceMonitor.detailed.scrapeTimeout Specify the timeout after which the scrape is ended
1464 ## scrapeTimeout: 30s
1467 ## @param metrics.serviceMonitor.detailed.relabelings RelabelConfigs to apply to samples before scraping.
1470 ## @param metrics.serviceMonitor.detailed.metricRelabelings MetricsRelabelConfigs to apply to samples before ingestion.
1472 metricRelabelings: []
1473 ## @param metrics.serviceMonitor.detailed.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1476 ## @param metrics.serviceMonitor.enabled Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1479 ## @param metrics.serviceMonitor.interval Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1482 ## @param metrics.serviceMonitor.scrapeTimeout Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1485 ## @param metrics.serviceMonitor.relabelings Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1488 ## @param metrics.serviceMonitor.metricRelabelings Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1490 metricRelabelings: []
1491 ## @param metrics.serviceMonitor.honorLabels Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1494 ## @param metrics.serviceMonitor.path Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
1497 ## @param metrics.serviceMonitor.params Deprecated. Please use `metrics.serviceMonitor.{default/perObject/detailed}` instead.
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
1505 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus operator
1508 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1510 additionalLabels: {}
1511 ## @param metrics.prometheusRule.namespace namespace where prometheusRules resource should be created
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
1518 ## - alert: RabbitmqDown
1519 ## expr: rabbitmq_up{service="{{ template "common.names.fullname" . }}"} == 0
1524 ## summary: Rabbitmq down (instance {{ "{{ $labels.instance }}" }})
1525 ## description: RabbitMQ node down
1526 ## - alert: ClusterDown
1528 ## sum(rabbitmq_running{service="{{ template "common.names.fullname" . }}"})
1529 ## < {{ .Values.replicaCount }}
1534 ## summary: Cluster down (instance {{ "{{ $labels.instance }}" }})
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
1544 ## summary: Cluster partition (instance {{ "{{ $labels.instance }}" }})
1546 ## Cluster partition
1547 ## VALUE = {{ "{{ $value }}" }}
1548 ## - alert: OutOfMemory
1550 ## rabbitmq_node_mem_used{service="{{ template "common.names.fullname" . }}"}
1551 ## / rabbitmq_node_mem_limit{service="{{ template "common.names.fullname" . }}"}
1555 ## severity: warning
1557 ## summary: Out of memory (instance {{ "{{ $labels.instance }}" }})
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
1565 ## severity: warning
1567 ## summary: Too many connections (instance {{ "{{ $labels.instance }}" }})
1569 ## RabbitMQ instance has too many connections (> 1000)
1570 ## VALUE = {{ "{{ $value }}" }}\n LABELS: {{ "{{ $labels }}" }}
1573## @section Init Container Parameters
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
1581 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
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
1593 repository: chainguard-private/os-shell-iamguarded
1596 ## Specify a imagePullPolicy
1597 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
1604 ## - myRegistryKeySecretName
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).
1615 resourcesPreset: "nano"
1616 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
1633 containerSecurityContext: