-
Notifications
You must be signed in to change notification settings - Fork 0
/
masstransit-rabbitmq-deployment.yaml
58 lines (57 loc) · 1.29 KB
/
masstransit-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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: masstransit-rabbitmq
name: masstransit-rabbitmq
spec:
replicas: 1
selector:
matchLabels:
app: masstransit-rabbitmq
strategy: {}
template:
metadata:
labels:
app: masstransit-rabbitmq
spec:
containers:
- image: masstransit/rabbitmq:latest
livenessProbe:
exec:
command:
- rabbitmqctl
- status
failureThreshold: 10
periodSeconds: 5
timeoutSeconds: 5
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c" ,"rabbitmqadmin list queues name | awk '{print $2}' | xargs -I qn rabbitmqadmin delete queue name=qn"]
name: masstransit-rabbitmq
ports:
- containerPort: 5672
- containerPort: 15672
- containerPort: 15692
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: masstransit-rabbitmq-service
labels:
app: masstransit-rabbitmq-service
spec:
type: NodePort
ports:
- port: 15672
nodePort: 30007
name: "15672"
- port: 5672
nodePort: 30010
name: "5672"
selector:
app: masstransit-rabbitmq