Mohammed Naser | 547f21b | 2022-05-19 21:55:24 -0400 | [diff] [blame] | 1 | # 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 | affinity: |
| 26 | nodeAffinity: |
| 27 | requiredDuringSchedulingIgnoredDuringExecution: |
| 28 | nodeSelectorTerms: |
| 29 | - matchExpressions: |
| 30 | - key: openstack-control-plane |
| 31 | operator: In |
| 32 | values: |
| 33 | - enabled |
okozachenko | f2f87db | 2022-06-01 19:53:18 +1000 | [diff] [blame] | 34 | resources: |
| 35 | requests: |
| 36 | cpu: 500m |
| 37 | memory: 1Gi |
| 38 | limits: |
| 39 | cpu: "1" |
| 40 | memory: 2Gi |
Mohammed Naser | 547f21b | 2022-05-19 21:55:24 -0400 | [diff] [blame] | 41 | wait: true |
| 42 | wait_timeout: 600 |
| 43 | wait_condition: |
| 44 | type: ClusterAvailable |
| 45 | status: "True" |