Skip to content

Commit d169e1b

Browse files
author
naman-msft
committed
updated doc;
1 parent ac9b80a commit d169e1b

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
apiVersion: apps/v1
2+
kind: StatefulSet
3+
metadata:
4+
name: rabbitmq
5+
spec:
6+
serviceName: rabbitmq
7+
replicas: 1
8+
selector:
9+
matchLabels:
10+
app: rabbitmq
11+
template:
12+
metadata:
13+
labels:
14+
app: rabbitmq
15+
spec:
16+
nodeSelector:
17+
"kubernetes.io/os": linux
18+
containers:
19+
- name: rabbitmq
20+
image: mcr.microsoft.com/mirror/docker/library/rabbitmq:3.10-management-alpine
21+
ports:
22+
- containerPort: 5672
23+
name: rabbitmq-amqp
24+
- containerPort: 15672
25+
name: rabbitmq-http
26+
env:
27+
- name: RABBITMQ_DEFAULT_USER
28+
value: "username"
29+
- name: RABBITMQ_DEFAULT_PASS
30+
value: "password"
31+
resources:
32+
requests:
33+
cpu: 10m
34+
memory: 128Mi
35+
limits:
36+
cpu: 250m
37+
memory: 256Mi
38+
volumeMounts:
39+
- name: rabbitmq-enabled-plugins
40+
mountPath: /etc/rabbitmq/enabled_plugins
41+
subPath: enabled_plugins
42+
volumes:
43+
- name: rabbitmq-enabled-plugins
44+
configMap:
45+
name: rabbitmq-enabled-plugins
46+
items:
47+
- key: rabbitmq_enabled_plugins
48+
path: enabled_plugins

0 commit comments

Comments
 (0)