forked from bcgov/zeva
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-rabbit.yaml
48 lines (48 loc) · 1.01 KB
/
k8s-rabbit.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabbit
spec:
replicas: 1
minReadySeconds: 5
template:
metadata:
name: rabbit
labels:
app: rabbit
spec:
containers:
- name: rabbit
image: rabbitmq:3.7-management
ports:
- name: amqp
containerPort: 5672
- name: admin
containerPort: 15672
env:
- name: RABBITMQ_DEFAULT_USER
value: "rabbitmq"
- name: RABBITMQ_DEFAULT_PASS
value: "rabbitmq"
- name: RABBITMQ_DEFAULT_VHOST
value: "/zeva"
- name: RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS
value: "-rabbit log_levels [{connection,error}]"
selector:
matchLabels:
app: rabbit
---
apiVersion: v1
kind: Service
metadata:
name: rabbit
spec:
selector:
app: rabbit
ports:
- name: amqp
port: 5672
targetPort: 5672
- name: admin
port: 15672
targetPort: 15672