-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
rabbitmq-deployment.yaml
46 lines (46 loc) · 1.06 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
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
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 }}