forked from lholmquist/nodejs-messaging-work-queue
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathservice.amqp.yaml
178 lines (177 loc) · 4.75 KB
/
service.amqp.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
kind: List
apiVersion: v1
metadata:
name: amq-broker-7-image-streams
annotations:
description: ImageStream definitions for Red Hat AMQ Broker 7.5 Container Image
openshift.io/provider-display-name: Red Hat, Inc.
items:
- kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: amq-broker
annotations:
openshift.io/display-name: Red Hat AMQ Broker 7.5
openshift.io/provider-display-name: Red Hat, Inc.
spec:
lookupPolicy:
local: true
tags:
- name: '7.5'
annotations:
description: Red Hat AMQ Broker 7.5.0 image.
iconClass: icon-jboss
tags: messaging,amq,jboss,xpaas
supports: amq:7.5,messaging:7.5
version: '7.5'
from:
kind: DockerImage
name: registry.redhat.io/amq7/amq-broker:7.5
- kind: Service
apiVersion: v1
spec:
ports:
- port: 5672
targetPort: 5672
selector:
deploymentConfig: "work-queue-broker-amq"
metadata:
name: "work-queue-broker-amq-amqp"
labels:
application: "work-queue-broker"
annotations:
description: The broker's AMQP port.
- kind: Service
apiVersion: v1
spec:
ports:
- port: 1883
targetPort: 1883
selector:
deploymentConfig: "work-queue-broker-amq"
metadata:
name: "work-queue-broker-amq-mqtt"
labels:
application: "work-queue-broker"
annotations:
description: The broker's MQTT port.
- kind: Service
apiVersion: v1
spec:
ports:
- port: 61613
targetPort: 61613
selector:
deploymentConfig: "work-queue-broker-amq"
metadata:
name: "work-queue-broker-amq-stomp"
labels:
application: "work-queue-broker"
annotations:
description: The broker's STOMP port.
- kind: Service
apiVersion: v1
spec:
ports:
- port: 61616
targetPort: 61616
selector:
deploymentConfig: "work-queue-broker-amq"
metadata:
name: "work-queue-broker-amq-tcp"
labels:
application: "work-queue-broker"
annotations:
description: The broker's OpenWire port.
service.alpha.openshift.io/dependencies: '[{"name": "work-queue-broker-amq-amqp",
"kind": "Service"},{"name": "work-queue-broker-amq-mqtt", "kind": "Service"},{"name":
"work-queue-broker-amq-stomp", "kind": "Service"}]'
- kind: Service
apiVersion: v1
spec:
clusterIP: None
ports:
- name: mesh
port: 61616
selector:
deploymentConfig: "work-queue-broker-amq"
metadata:
name: "work-queue-broker-amq-mesh"
labels:
application: "work-queue-broker"
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true'
description: Supports node discovery for mesh formation.
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
application: work-queue-broker
name: "work-queue-broker-amq"
spec:
replicas: 1
selector:
deploymentConfig: "work-queue-broker-amq"
strategy:
rollingParams:
maxSurge: 0
type: Rolling
template:
metadata:
labels:
application: work-queue-broker
deploymentConfig: "work-queue-broker-amq"
name: "work-queue-broker-amq"
spec:
containers:
- env:
- name: AMQ_USER
value: "work-queue"
- name: AMQ_PASSWORD
value: "work-queue"
- name: AMQ_ROLE
value: "admin"
- name: AMQ_NAME
value: "amq-broker"
- name: AMQ_TRANSPORTS
value: "amqp,mqtt,stomp"
- name: AMQ_QUEUES
value: "work-queue/requests,work-queue/responses"
- name: AMQ_ADDRESSES
value: "work-queue/worker-updates"
- name: AMQ_REQUIRE_LOGIN
value: "false"
- name: AMQ_EXTRA_ARGS
value: "--no-autotune"
- name: AMQ_ENABLE_METRICS_PLUGIN
value: "false"
- name: AMQ_JOURNAL_TYPE
value: "nio"
image: "registry.redhat.io/amq7/amq-broker:7.5"
imagePullPolicy: Always
readinessProbe:
exec:
command:
- "/bin/bash"
- "-c"
- "/opt/amq/bin/readinessProbe.sh"
name: "work-queue-broker-amq"
ports:
- containerPort: 8161
name: console-jolokia
protocol: TCP
- containerPort: 5672
name: amqp
protocol: TCP
- containerPort: 1883
name: mqtt
protocol: TCP
- containerPort: 61613
name: stomp
protocol: TCP
- containerPort: 61616
name: artemis
protocol: TCP
terminationGracePeriodSeconds: 60
triggers:
- type: ConfigChange