-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrabbitmq.yaml
More file actions
55 lines (55 loc) · 1020 Bytes
/
rabbitmq.yaml
File metadata and controls
55 lines (55 loc) · 1020 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabbitmq-deployment
spec:
selector:
matchLabels:
app: rabbitmq
replicas: 1
template:
metadata:
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
resources:
limits:
cpu: 500m
memory: 128Mi
image: rabbitmq:3-management
ports:
- containerPort: 5672
- containerPort: 15672
- containerPort: 25672
envFrom:
- secretRef:
name: rabbitmq-secrets
---
apiVersion: v1
kind: Service
metadata:
name: rabbitmq
labels:
app: rabbitmq
spec:
type: NodePort
ports:
# rmq
- port: 5672
name: rmq
protocol: TCP
nodePort: 31670
# admin
- port: 15672
name: admin
protocol: TCP
nodePort: 31671
# clustering
#- port: 25672
# name cluster
# protocol: TCP
# nodePort: 25673
selector:
app: rabbitmq