-
Notifications
You must be signed in to change notification settings - Fork 1
/
rabbitmq_deployment.yml
48 lines (48 loc) · 1.22 KB
/
rabbitmq_deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: production1
namespace: rabbitmq-system
spec:
imagePullSecrets:
- name: tanzu-rabbitmq-registry-creds
replicas: 3
resources:
requests:
cpu: 16
memory: 64Gi
limits:
cpu: 16
memory: 64Gi
service:
type: LoadBalancer
rabbitmq:
additionalPlugins:
- rabbitmq_stream
- rabbitmq_schema_definition_sync
- rabbitmq_schema_definition_sync_prometheus # optional
- rabbitmq_standby_replication
additionalConfig: |
cluster_partition_handling = pause_minority
vm_memory_high_watermark_paging_ratio = 0.99
disk_free_limit.relative = 1.0
collect_statistics_interval = 10000
advancedConfig: |
[
{rabbit, [
{credit_flow_default_credit, {0,0}}
]}
].
persistence:
storageClassName: rabbitmq-storage-policy
storage: "500Gi"
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- production-ready
topologyKey: kubernetes.io/hostname