
Implements: blueprint rabbitmq-dns-discovery Some useful things to note: 1. This uses a StatefulSet instead of a Deployment. The reason for this is that when RabbitMQ uses DNS for peer discovery, the first thing it does when trying to join a node is attempt a reverse-dns lookup. This reverse lookup works when using a StatefulSet, but not a Deployment. 2. The RabbitMQ configuration was updated to use the new sysctl-style format. It seems that the new format is required to configure the new autoclustering features. Additionally, I found that this generate much clearer error messages than the straight erlang format. 3. I removed the `is-node-properly-clustered` test in the liveness and readiness probes. This probe isn't directly supported in 3.7.0, and it wasn't clear that a clustering check was appropriate for each node. Change-Id: Ieefbb2205bd77fbac04abcd051fb06fce62e8d97
65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Default values for rabbitmq.
|
|
# This is a YAML-formatted file.
|
|
# Declare name/value pairs to be passed into your templates.
|
|
# name: value
|
|
|
|
replicas: 3
|
|
|
|
resources:
|
|
enabled: false
|
|
api:
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "500m"
|
|
|
|
labels:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
|
|
upgrades:
|
|
revision_history: 3
|
|
pod_replacement_strategy: RollingUpdate
|
|
rolling_update:
|
|
max_unavailable: 1
|
|
max_surge: 3
|
|
auth:
|
|
default_user: rabbitmq
|
|
default_pass: password
|
|
admin_user: admin
|
|
admin_pass: password
|
|
|
|
network:
|
|
port:
|
|
public: '5672'
|
|
management: '15672'
|
|
|
|
images:
|
|
rabbitmq: "quay.io/attcomdev/rabbitmq:3.7.0-pre-14"
|
|
pull_policy: "IfNotPresent"
|
|
|
|
erlang_cookie: openstack-cookie
|
|
|
|
autocluster:
|
|
log_level: info
|
|
delay: 15
|
|
|
|
probes_delay: 180
|
|
probes_timeout: 10
|