forked from cherry4477/datafoundry_servicebroker_openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rabbitmq.yaml
62 lines (62 loc) · 1.39 KB
/
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
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
59
60
61
62
apiVersion: v1
kind: ReplicationController
metadata:
labels:
servicebroker: sb-instanceid-rabbitmq
name: sb-instanceid-rbbtmq
spec:
replicas: 1
selector:
servicebroker: sb-instanceid-rabbitmq
template:
metadata:
labels:
servicebroker: sb-instanceid-rabbitmq
spec:
containers:
- image: http://rabbitmq-image-place-holder/rabbitmq-openshift-orchestration
imagePullPolicy: IfNotPresent
name: sb-instanceid-rbbtmq
#resources:
# limits:
# cpu: 0.1
env:
- name: RABBITMQ_ERLANG_COOKIE
value: 3B694385-9169-42FF-8667-21E4F808F3AD
- name: RABBITMQ_DEFAULT_USER
value: user*****
- name: RABBITMQ_DEFAULT_PASS
value: pass*****
ports:
- containerPort: 5672
- containerPort: 15672
---
#Route for admin
apiVersion: v1
kind: Route
metadata:
name: sb-instanceid-rbbtmqa
labels:
servicebroker: sb-instanceid-rabbitmq-admin
spec:
host: sb-instanceid-rabbitmq-admin.endpoint-postfix-place-holder
port:
targetPort: admin
to:
kind: Service
name: sb-instanceid-rbbtmq
---
apiVersion: v1
kind: Service
metadata:
labels:
servicebroker: sb-instanceid-rabbitmq
name: sb-instanceid-rbbtmq
spec:
ports:
- port: 5672
name: mq
- port: 15672
name: admin
selector:
servicebroker: sb-instanceid-rabbitmq