Skip to content

Commit 9da9c37

Browse files
authored
Merge pull request #327 from jboss-openshift/jdg-wip
merge jdg-wip into master
2 parents c8550e3 + 80d212c commit 9da9c37

File tree

7 files changed

+4243
-0
lines changed

7 files changed

+4243
-0
lines changed

datagrid/datagrid71-basic.json

Lines changed: 372 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,372 @@
1+
{
2+
"kind": "Template",
3+
"apiVersion": "v1",
4+
"metadata": {
5+
"annotations": {
6+
"iconClass": "icon-jboss",
7+
"description": "Application template for JDG 7.1 applications.",
8+
"tags": "datagrid,jboss,xpaas",
9+
"version": "1.4.0",
10+
"openshift.io/display-name": "Red Hat JBoss Data Grid 7.1 (Ephemeral, no https)"
11+
},
12+
"name": "datagrid71-basic"
13+
},
14+
"labels": {
15+
"template": "datagrid71-basic",
16+
"xpaas": "1.4.0"
17+
},
18+
"message": "A new data grid service has been created in your project. It supports connector type(s) \"${INFINISPAN_CONNECTORS}\".",
19+
"parameters": [
20+
{
21+
"displayName": "Application Name",
22+
"description": "The name for the application.",
23+
"name": "APPLICATION_NAME",
24+
"value": "datagrid-app",
25+
"required": true
26+
},
27+
{
28+
"displayName": "Custom http Route Hostname",
29+
"description": "Custom hostname for http service route. Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
30+
"name": "HOSTNAME_HTTP",
31+
"value": "",
32+
"required": false
33+
},
34+
{
35+
"displayName": "Username",
36+
"description": "User name for JDG user.",
37+
"name": "USERNAME",
38+
"value": "",
39+
"required": false
40+
},
41+
{
42+
"displayName": "Password",
43+
"description": "The password to access the JDG Caches. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s). (optional)",
44+
"name": "PASSWORD",
45+
"value": "",
46+
"required": false
47+
},
48+
{
49+
"displayName": "ImageStream Namespace",
50+
"description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
51+
"name": "IMAGE_STREAM_NAMESPACE",
52+
"value": "openshift",
53+
"required": true
54+
},
55+
{
56+
"displayName": "Infinispan Connectors",
57+
"description": "Comma-separated list of connector types that should be configured (defaults to 'memcached,hotrod,rest')",
58+
"name": "INFINISPAN_CONNECTORS",
59+
"value": "hotrod,memcached,rest",
60+
"required": false
61+
},
62+
{
63+
"displayName": "Cache Names",
64+
"description": "Comma-separated list of caches to configure. By default, a distributed-cache, with a mode of SYNC will be configured for each entry.",
65+
"name": "CACHE_NAMES",
66+
"value": "",
67+
"required": false
68+
},
69+
{
70+
"displayName": "Datavirt Cache Names",
71+
"description": "Comma-separated list of caches to configure for use by Red Hat JBoss Data Virtualization for materialization of views. Three caches will be created for each named cache: <name>, <name>_staging and <name>_alias.",
72+
"name": "DATAVIRT_CACHE_NAMES",
73+
"value": "",
74+
"required": false
75+
},
76+
{
77+
"displayName": "Default Cache Type",
78+
"description": "Default cache type for all caches. If empty then distributed will be the default",
79+
"name": "CACHE_TYPE_DEFAULT",
80+
"value": "",
81+
"required": false
82+
},
83+
{
84+
"displayName": "Encryption Requires SSL Client Authentication?",
85+
"description": "",
86+
"name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
87+
"value": "",
88+
"required": false
89+
},
90+
{
91+
"displayName": "Memcached Cache Name",
92+
"description": "The name of the cache to expose through this memcached connector (defaults to 'default')",
93+
"name": "MEMCACHED_CACHE",
94+
"value": "default",
95+
"required": false
96+
},
97+
{
98+
"displayName": "REST Security Domain",
99+
"description": "The domain, declared in the security subsystem, that should be used to authenticate access to the REST endpoint",
100+
"name": "REST_SECURITY_DOMAIN",
101+
"value": "",
102+
"required": false
103+
},
104+
{
105+
"displayName": "JGroups Cluster Password",
106+
"description": "JGroups cluster password",
107+
"name": "JGROUPS_CLUSTER_PASSWORD",
108+
"from": "[a-zA-Z0-9]{8}",
109+
"generate": "expression",
110+
"required": true
111+
}
112+
],
113+
"objects": [
114+
{
115+
"kind": "Service",
116+
"apiVersion": "v1",
117+
"spec": {
118+
"ports": [
119+
{
120+
"port": 8080,
121+
"targetPort": 8080
122+
}
123+
],
124+
"selector": {
125+
"deploymentConfig": "${APPLICATION_NAME}"
126+
}
127+
},
128+
"metadata": {
129+
"name": "${APPLICATION_NAME}",
130+
"labels": {
131+
"application": "${APPLICATION_NAME}"
132+
},
133+
"annotations": {
134+
"description": "The web server's HTTP port."
135+
}
136+
}
137+
},
138+
{
139+
"kind": "Service",
140+
"apiVersion": "v1",
141+
"spec": {
142+
"ports": [
143+
{
144+
"port": 11211,
145+
"targetPort": 11211
146+
}
147+
],
148+
"selector": {
149+
"deploymentConfig": "${APPLICATION_NAME}"
150+
}
151+
},
152+
"metadata": {
153+
"name": "${APPLICATION_NAME}-memcached",
154+
"labels": {
155+
"application": "${APPLICATION_NAME}"
156+
},
157+
"annotations": {
158+
"description": "Memcached service for clustered applications."
159+
}
160+
}
161+
},
162+
{
163+
"kind": "Service",
164+
"apiVersion": "v1",
165+
"spec": {
166+
"ports": [
167+
{
168+
"port": 11333,
169+
"targetPort": 11333
170+
}
171+
],
172+
"selector": {
173+
"deploymentConfig": "${APPLICATION_NAME}"
174+
}
175+
},
176+
"metadata": {
177+
"name": "${APPLICATION_NAME}-hotrod",
178+
"labels": {
179+
"application": "${APPLICATION_NAME}"
180+
},
181+
"annotations": {
182+
"description": "Hot Rod service for clustered applications."
183+
}
184+
}
185+
},
186+
{
187+
"kind": "Route",
188+
"apiVersion": "v1",
189+
"id": "${APPLICATION_NAME}-http",
190+
"metadata": {
191+
"name": "${APPLICATION_NAME}",
192+
"labels": {
193+
"application": "${APPLICATION_NAME}"
194+
},
195+
"annotations": {
196+
"description": "Route for application's HTTP service."
197+
}
198+
},
199+
"spec": {
200+
"host": "${HOSTNAME_HTTP}",
201+
"to": {
202+
"name": "${APPLICATION_NAME}"
203+
}
204+
}
205+
},
206+
{
207+
"kind": "DeploymentConfig",
208+
"apiVersion": "v1",
209+
"metadata": {
210+
"name": "${APPLICATION_NAME}",
211+
"labels": {
212+
"application": "${APPLICATION_NAME}"
213+
}
214+
},
215+
"spec": {
216+
"strategy": {
217+
"type": "Recreate"
218+
},
219+
"triggers": [
220+
{
221+
"type": "ImageChange",
222+
"imageChangeParams": {
223+
"automatic": true,
224+
"containerNames": [
225+
"${APPLICATION_NAME}"
226+
],
227+
"from": {
228+
"kind": "ImageStreamTag",
229+
"namespace": "${IMAGE_STREAM_NAMESPACE}",
230+
"name": "jboss-datagrid71-openshift:1.0"
231+
}
232+
}
233+
},
234+
{
235+
"type": "ConfigChange"
236+
}
237+
],
238+
"replicas": 1,
239+
"selector": {
240+
"deploymentConfig": "${APPLICATION_NAME}"
241+
},
242+
"template": {
243+
"metadata": {
244+
"name": "${APPLICATION_NAME}",
245+
"labels": {
246+
"deploymentConfig": "${APPLICATION_NAME}",
247+
"application": "${APPLICATION_NAME}"
248+
}
249+
},
250+
"spec": {
251+
"terminationGracePeriodSeconds": 60,
252+
"containers": [
253+
{
254+
"name": "${APPLICATION_NAME}",
255+
"image": "jboss-datagrid71-openshift",
256+
"imagePullPolicy": "Always",
257+
"livenessProbe": {
258+
"exec": {
259+
"command": [
260+
"/bin/bash",
261+
"-c",
262+
"/opt/datagrid/bin/livenessProbe.sh"
263+
]
264+
}
265+
},
266+
"readinessProbe": {
267+
"exec": {
268+
"command": [
269+
"/bin/bash",
270+
"-c",
271+
"/opt/datagrid/bin/readinessProbe.sh"
272+
]
273+
}
274+
},
275+
"ports": [
276+
{
277+
"name": "jolokia",
278+
"containerPort": 8778,
279+
"protocol": "TCP"
280+
},
281+
{
282+
"name": "http",
283+
"containerPort": 8080,
284+
"protocol": "TCP"
285+
},
286+
{
287+
"name": "ping",
288+
"containerPort": 8888,
289+
"protocol": "TCP"
290+
},
291+
{
292+
"name": "memcached",
293+
"containerPort": 11211,
294+
"protocol": "TCP"
295+
},
296+
{
297+
"name": "hotrod-internal",
298+
"containerPort": 11222,
299+
"protocol": "TCP"
300+
},
301+
{
302+
"name": "hotrod",
303+
"containerPort": 11333,
304+
"protocol": "TCP"
305+
}
306+
],
307+
"env": [
308+
{
309+
"name": "USERNAME",
310+
"value": "${USERNAME}"
311+
},
312+
{
313+
"name": "PASSWORD",
314+
"value": "${PASSWORD}"
315+
},
316+
{
317+
"name": "OPENSHIFT_KUBE_PING_LABELS",
318+
"value": "application=${APPLICATION_NAME}"
319+
},
320+
{
321+
"name": "OPENSHIFT_KUBE_PING_NAMESPACE",
322+
"valueFrom": {
323+
"fieldRef": {
324+
"fieldPath": "metadata.namespace"
325+
}
326+
}
327+
},
328+
{
329+
"name": "INFINISPAN_CONNECTORS",
330+
"value": "${INFINISPAN_CONNECTORS}"
331+
},
332+
{
333+
"name": "CACHE_NAMES",
334+
"value": "${CACHE_NAMES}"
335+
},
336+
{
337+
"name": "DATAVIRT_CACHE_NAMES",
338+
"value": "${DATAVIRT_CACHE_NAMES}"
339+
},
340+
{
341+
"name": "CACHE_TYPE_DEFAULT",
342+
"value": "${CACHE_TYPE_DEFAULT}"
343+
},
344+
{
345+
"name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
346+
"value": "${ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH}"
347+
},
348+
{
349+
"name": "HOTROD_SERVICE_NAME",
350+
"value": "${APPLICATION_NAME}-hotrod"
351+
},
352+
{
353+
"name": "MEMCACHED_CACHE",
354+
"value": "${MEMCACHED_CACHE}"
355+
},
356+
{
357+
"name": "REST_SECURITY_DOMAIN",
358+
"value": "${REST_SECURITY_DOMAIN}"
359+
},
360+
{
361+
"name": "JGROUPS_CLUSTER_PASSWORD",
362+
"value": "${JGROUPS_CLUSTER_PASSWORD}"
363+
}
364+
]
365+
}
366+
]
367+
}
368+
}
369+
}
370+
}
371+
]
372+
}

0 commit comments

Comments
 (0)