forked from saurabhjha1/robot-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabbitmq-deployment.yaml
99 lines (98 loc) · 2.35 KB
/
rabbitmq-deployment.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: rabbitmq
# labels:
# service: rabbitmq
# spec:
# replicas: 1
# selector:
# matchLabels:
# service: rabbitmq
# template:
# metadata:
# labels:
# service: rabbitmq
# spec:
# {{ if .Values.psp.enabled }}
# serviceAccountName: robot-shop
# {{ end }}
# containers:
# - name: rabbitmq
# image: rabbitmq:3.7-management-alpine
# imagePullPolicy: {{ .Values.image.pullPolicy }}
# ports:
# - containerPort: 5672
# - containerPort: 15672
# resources:
# limits:
# cpu: 200m
# memory: 512Mi
# requests:
# cpu: 100m
# memory: 256Mi
# livenessProbe:
# exec:
# command:
# - rabbitmq-diagnostics
# - -q
# - ping
# initialDelaySeconds: 30
# periodSeconds: 150
# failureThreshold: 3
# timeoutSeconds: 120
# readinessProbe:
# exec:
# command:
# - rabbitmq-diagnostics
# - -q
# - ping
# initialDelaySeconds: 30
# periodSeconds: 160
# failureThreshold: 3
# timeoutSeconds: 120
# restartPolicy: Always
# {{- with .Values.rabbitmq.affinity }}
# affinity:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.rabbitmq.nodeSelector }}
# nodeSelector:
# {{- toYaml . | nindent 8 }}
# {{- end }}
# {{- with .Values.rabbitmq.tolerations }}
# tolerations:
# {{- toYaml . | nindent 8 }}
# {{- end }}
apiVersion: v1
data:
default_user.conf: ZGVmYXVsdF91c2VyID0gdXNlcl9yb2JvdC1zaG9wCmRlZmF1bHRfcGFzcyA9IHVzZXJfcm9ib3Qtc2hvcAo=
host: dmF1bHQtZGVmYXVsdC11c2VyLmRlZmF1bHQuc3Zj
password: dXNlcl9yb2JvdC1zaG9w
port: NTY3Mg==
provider: cmFiYml0bXE=
type: cmFiYml0bXE=
username: dXNlcl9yb2JvdC1zaG9w
kind: Secret
metadata:
name: rabbitmq-secret
type: Opaque
---
apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: rabbitmq
labels:
service: rabbitmq
spec:
replicas: 1
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 500m
memory: 512Mi
secretBackend:
externalSecret:
name: rabbitmq-secret