blob: aed2e6217aa63bcef2c20ee7b45595ebeeccf803 [file] [log] [blame]
Mohammed Naserfef69422023-01-18 02:38:06 +00001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15- name: Deploy cluster
16 kubernetes.core.k8s:
17 state: present
18 definition:
19 apiVersion: rabbitmq.com/v1beta1
20 kind: RabbitmqCluster
21 metadata:
22 name: "rabbitmq-{{ rabbitmq_cluster_name }}"
23 namespace: openstack
24 spec:
25 image: "{{ atmosphere_images['rabbitmq_server'] | docker_image('ref') }}"
26 affinity:
27 nodeAffinity:
28 requiredDuringSchedulingIgnoredDuringExecution:
29 nodeSelectorTerms:
30 - matchExpressions:
31 - key: openstack-control-plane
32 operator: In
33 values:
34 - enabled
35 rabbitmq:
36 additionalConfig: |
37 vm_memory_high_watermark.relative = 0.9
38 resources:
39 limits:
40 cpu: "1"
41 memory: 2Gi
42 requests:
43 cpu: 500m
44 memory: 1Gi
45 terminationGracePeriodSeconds: 15
46 wait: true
47 wait_timeout: 600
48 wait_condition:
49 type: ClusterAvailable
50 status: "True"