forked from binarin/rabbit-on-k8s-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrabbitmq.yaml
31 lines (31 loc) · 845 Bytes
/
rabbitmq.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: rabbitmq-deployment
namespace: demo
spec:
replicas: 3
template:
metadata:
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq-autocluster
image: rabbitmq-autocluster:latest
# `Never` as we are not using registry in our `minikube` setup
imagePullPolicy: Never
env:
# For consupmption by rabbitmq-env.conf
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
# start.sh will store this value to a proper location in filesystem
- name: ERLANG_COOKIE
valueFrom:
secretKeyRef:
name: erlang.cookie
key: erlang.cookie
command:
- "/start.sh"