From b51dd0b868adf22b6047a0f4a7b06d7b80b0e005 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Thu, 8 Feb 2018 20:00:00 -0500 Subject: xPaaS v1.4.8-1 for v3.9 --- .../v3.9/xpaas-templates/eap70-basic-s2i.json | 62 +++++++++++++++++----- 1 file changed, 50 insertions(+), 12 deletions(-) (limited to 'roles/openshift_examples/files/examples/v3.9/xpaas-templates/eap70-basic-s2i.json') diff --git a/roles/openshift_examples/files/examples/v3.9/xpaas-templates/eap70-basic-s2i.json b/roles/openshift_examples/files/examples/v3.9/xpaas-templates/eap70-basic-s2i.json index 312db1971..a0d781a4d 100644 --- a/roles/openshift_examples/files/examples/v3.9/xpaas-templates/eap70-basic-s2i.json +++ b/roles/openshift_examples/files/examples/v3.9/xpaas-templates/eap70-basic-s2i.json @@ -5,7 +5,7 @@ "annotations": { "iconClass": "icon-eap", "tags": "eap,javaee,java,jboss", - "version": "1.4.7", + "version": "1.4.8", "openshift.io/display-name": "JBoss EAP 7.0 (no https)", "openshift.io/provider-display-name": "Red Hat, Inc.", "description": "An example EAP 7 application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.", @@ -17,7 +17,7 @@ }, "labels": { "template": "eap70-basic-s2i", - "xpaas": "1.4.7" + "xpaas": "1.4.8" }, "message": "A new EAP 7 based application has been created in your project.", "parameters": [ @@ -128,6 +128,12 @@ "name": "ARTIFACT_DIR", "value": "", "required": false + }, + { + "description": "Container memory limit", + "name": "MEMORY_LIMIT", + "value": "1Gi", + "required": false } ], "objects": [ @@ -155,6 +161,32 @@ } } }, + { + "kind": "Service", + "apiVersion": "v1", + "spec": { + "clusterIP": "None", + "ports": [ + { + "name": "ping", + "port": 8888 + } + ], + "selector": { + "deploymentConfig": "${APPLICATION_NAME}" + } + }, + "metadata": { + "name": "${APPLICATION_NAME}-ping", + "labels": { + "application": "${APPLICATION_NAME}" + }, + "annotations": { + "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true", + "description": "The JGroups ping port for clustering." + } + } + }, { "kind": "Route", "apiVersion": "v1", @@ -220,7 +252,7 @@ "from": { "kind": "ImageStreamTag", "namespace": "${IMAGE_STREAM_NAMESPACE}", - "name": "jboss-eap70-openshift:1.6" + "name": "jboss-eap70-openshift:1.7" } } }, @@ -303,6 +335,11 @@ "name": "${APPLICATION_NAME}", "image": "${APPLICATION_NAME}", "imagePullPolicy": "Always", + "resources": { + "limits": { + "memory": "${MEMORY_LIMIT}" + } + }, "livenessProbe": { "exec": { "command": [ @@ -310,7 +347,8 @@ "-c", "/opt/eap/bin/livenessProbe.sh" ] - } + }, + "initialDelaySeconds": 60 }, "readinessProbe": { "exec": { @@ -340,16 +378,16 @@ ], "env": [ { - "name": "OPENSHIFT_KUBE_PING_LABELS", - "value": "application=${APPLICATION_NAME}" + "name": "JGROUPS_PING_PROTOCOL", + "value": "openshift.DNS_PING" + }, + { + "name": "OPENSHIFT_DNS_PING_SERVICE_NAME", + "value": "${APPLICATION_NAME}-ping" }, { - "name": "OPENSHIFT_KUBE_PING_NAMESPACE", - "valueFrom": { - "fieldRef": { - "fieldPath": "metadata.namespace" - } - } + "name": "OPENSHIFT_DNS_PING_SERVICE_PORT", + "value": "8888" }, { "name": "MQ_CLUSTER_PASSWORD", -- cgit v1.2.3