-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabbitmq.yml
56 lines (55 loc) · 1.1 KB
/
rabbitmq.yml
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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: rabbitmq
spec:
serviceName: rabbitmq
replicas: 1
selector:
matchLabels:
app: rabbitmq
template:
metadata:
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
image: rabbitmq:3.8-management
ports:
- containerPort: 5672
- containerPort: 15672 # RabbitMQ Management UI
volumeMounts:
- name: rabbitmq-data
mountPath: /var/lib/rabbitmq
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
volumeClaimTemplates:
- metadata:
name: rabbitmq-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi # Adjust the storage size as needed
---
apiVersion: v1
kind: Service
metadata:
name: rabbit # 여길 rabbitmq로 하면 안 되는 이유?
spec:
type: LoadBalancer
selector:
app: rabbitmq
ports:
- name: amqp
protocol: TCP
port: 5672
- name: http
protocol: TCP
port: 15672