summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-04-25 10:20:39 -0400
committerRussell Teague <rteague@redhat.com>2017-04-25 15:41:36 -0400
commit51ffcb739c1ebf9872aa3f45a905b087ae9e0f48 (patch)
treefccf877403a58bbd52c8200cdd3541dddb37e747 /roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json
parentd4d143778596087175f1bd5339a1bed1288e8520 (diff)
downloadopenshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.gz
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.bz2
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.tar.xz
openshift-51ffcb739c1ebf9872aa3f45a905b087ae9e0f48.zip
Standardize all Origin versioning on 3.6
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json')
-rw-r--r--roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json421
1 files changed, 0 insertions, 421 deletions
diff --git a/roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json b/roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json
deleted file mode 100644
index d80939efb..000000000
--- a/roles/openshift_examples/files/examples/v1.6/xpaas-templates/karaf2-camel-rest-sql-template.json
+++ /dev/null
@@ -1,421 +0,0 @@
-{
- "apiVersion": "v1",
- "kind": "Template",
- "metadata": {
- "annotations": {
- "description": "Camel example using Rest DSL with SQL Database in Karaf container.",
- "tags": "quickstart,java,karaf,fis",
- "iconClass": "icon-jboss",
- "version": "2.0"
- },
- "name": "s2i-karaf2-camel-rest-sql"
- },
- "labels": {
- "template": "s2i-karaf2-camel-rest-sql"
- },
- "parameters": [
- {
- "name": "APP_NAME",
- "displayName": "Application Name",
- "required": true,
- "value": "s2i-karaf2-camel-rest-sql",
- "description": "The name assigned to the application."
- },
- {
- "name": "GIT_REPO",
- "displayName": "Git Repository URL",
- "value": "https://github.com/fabric8-quickstarts/karaf2-camel-rest-sql.git",
- "required": true,
- "description": "The URL of the repository with your application source code."
- },
- {
- "name": "GIT_REF",
- "displayName": "Git Reference",
- "value": "karaf2-camel-rest-sql-1.0.0.redhat-000010",
- "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch."
- },
- {
- "name": "SERVICE_NAME",
- "displayName": "Service Name",
- "value": "s2i-karaf2-camel-rest",
- "description": "Exposed Service name."
- },
- {
- "name": "MYSQL_SERVICE_NAME",
- "displayName": "MySQL Server Service",
- "required": true,
- "value": "mysql",
- "description": "Set this to the name of the TCP service of the MySQL server. You may need to create a server first."
- },
- {
- "name": "MYSQL_SERVICE_DATABASE",
- "displayName": "MySQL Server Database",
- "required": true,
- "value": "sampledb",
- "description": "The database hosted by the MySQL server to be used by the application."
- },
- {
- "name": "MYSQL_SERVICE_USERNAME",
- "displayName": "MySQL Server Username",
- "description": "The username used to authenticate with the MySQL server. Leave it empty if authentication is disabled."
- },
- {
- "name": "MYSQL_SERVICE_PASSWORD",
- "displayName": "MySQL Server Password",
- "description": "The password used to authenticate with the MySQL server. Leave it empty if authentication is disabled."
- },
- {
- "name": "BUILDER_VERSION",
- "displayName": "Builder version",
- "value": "2.0",
- "description": "The version of the FIS S2I builder image to use."
- },
- {
- "name": "APP_VERSION",
- "displayName": "Application Version",
- "value": "1.0.0.redhat-000010",
- "description": "The application version."
- },
- {
- "name": "MAVEN_ARGS",
- "displayName": "Maven Arguments",
- "value": "install -DskipTests -Dfabric8.skip -e -B",
- "description": "Arguments passed to mvn in the build."
- },
- {
- "name": "MAVEN_ARGS_APPEND",
- "displayName": "Extra Maven Arguments",
- "description": "Extra arguments passed to mvn, e.g. for multi-module builds."
- },
- {
- "name": "ARTIFACT_DIR",
- "displayName": "Maven build directory",
- "description": "Directory of the artifact to be built, e.g. for multi-module builds."
- },
- {
- "name": "IMAGE_STREAM_NAMESPACE",
- "displayName": "Image Stream Namespace",
- "value": "openshift",
- "required": true,
- "description": "Namespace in which the Fuse ImageStreams 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."
- },
- {
- "name": "CPU_REQUEST",
- "displayName": "CPU request",
- "value": "0.2",
- "required": true,
- "description": "The amount of CPU to requests."
- },
- {
- "name": "MEMORY_REQUEST",
- "displayName": "Memory request",
- "value": "1.5G",
- "required": true,
- "description": "The amount of memory required for the container to run."
- },
- {
- "name": "CPU_LIMIT",
- "displayName": "CPU limit",
- "value": "1.0",
- "required": true,
- "description": "The amount of CPU the container is limited to use."
- },
- {
- "name": "MEMORY_LIMIT",
- "displayName": "Memory limit",
- "value": "2G",
- "required": true,
- "description": "The amount of memory the container is limited to use."
- }
- ],
- "objects": [
- {
- "apiVersion": "v1",
- "kind": "Route",
- "metadata": {
- "labels": {
- "container": "karaf",
- "component": "${APP_NAME}",
- "provider": "s2i",
- "project": "${APP_NAME}",
- "version": "${APP_VERSION}",
- "group": "quickstarts"
- },
- "name": "${SERVICE_NAME}-route"
- },
- "spec": {
- "to": {
- "kind": "Service",
- "name": "${SERVICE_NAME}"
- }
- }
- },
- {
- "apiVersion": "v1",
- "kind": "Service",
- "metadata": {
- "annotations": {
- },
- "labels": {
- "container": "karaf",
- "component": "${APP_NAME}",
- "provider": "s2i",
- "project": "${APP_NAME}",
- "version": "${APP_VERSION}",
- "group": "quickstarts"
- },
- "name": "${SERVICE_NAME}"
- },
- "spec": {
- "clusterIP": "None",
- "deprecatedPublicIPs": [],
- "ports": [
- {
- "port": 9411,
- "protocol": "TCP",
- "targetPort": 8181
- }
- ],
- "selector": {
- "container": "karaf",
- "project": "${APP_NAME}",
- "component": "${APP_NAME}",
- "provider": "s2i",
- "group": "quickstarts"
- }
- }
- },
- {
- "kind": "ImageStream",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APP_NAME}",
- "creationTimestamp": null,
- "labels": {
- "component": "${APP_NAME}",
- "container": "karaf",
- "group": "quickstarts",
- "project": "${APP_NAME}",
- "provider": "s2i",
- "version": "${APP_VERSION}"
- }
- },
- "spec": {},
- "status": {
- "dockerImageRepository": ""
- }
- },
- {
- "kind": "BuildConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APP_NAME}",
- "creationTimestamp": null,
- "labels": {
- "component": "${APP_NAME}",
- "container": "karaf",
- "group": "quickstarts",
- "project": "${APP_NAME}",
- "provider": "s2i",
- "version": "${APP_VERSION}"
- }
- },
- "spec": {
- "triggers": [
- {
- "type": "GitHub",
- "github": {
- "secret": "${BUILD_SECRET}"
- }
- },
- {
- "type": "Generic",
- "generic": {
- "secret": "${BUILD_SECRET}"
- }
- },
- {
- "type": "ConfigChange"
- },
- {
- "type": "ImageChange",
- "imageChange": {}
- }
- ],
- "source": {
- "type": "Git",
- "git": {
- "uri": "${GIT_REPO}",
- "ref": "${GIT_REF}"
- }
- },
- "strategy": {
- "type": "Source",
- "sourceStrategy": {
- "from": {
- "kind": "ImageStreamTag",
- "namespace": "${IMAGE_STREAM_NAMESPACE}",
- "name": "fis-karaf-openshift:${BUILDER_VERSION}"
- },
- "forcePull": true,
- "incremental": true,
- "env": [
- {
- "name": "BUILD_LOGLEVEL",
- "value": "5"
- },
- {
- "name": "ARTIFACT_DIR",
- "value": "${ARTIFACT_DIR}"
- },
- {
- "name": "MAVEN_ARGS",
- "value": "${MAVEN_ARGS}"
- },
- {
- "name": "MAVEN_ARGS_APPEND",
- "value": "${MAVEN_ARGS_APPEND}"
- }
- ]
- }
- },
- "output": {
- "to": {
- "kind": "ImageStreamTag",
- "name": "${APP_NAME}:latest"
- }
- },
- "resources": {}
- },
- "status": {
- "lastVersion": 0
- }
- },
- {
- "kind": "DeploymentConfig",
- "apiVersion": "v1",
- "metadata": {
- "name": "${APP_NAME}",
- "creationTimestamp": null,
- "labels": {
- "component": "${APP_NAME}",
- "container": "karaf",
- "group": "quickstarts",
- "project": "${APP_NAME}",
- "provider": "s2i",
- "version": "${APP_VERSION}"
- }
- },
- "spec": {
- "strategy": {
- "resources": {}
- },
- "triggers": [
- {
- "type": "ConfigChange"
- },
- {
- "type": "ImageChange",
- "imageChangeParams": {
- "automatic": true,
- "containerNames": [
- "${APP_NAME}"
- ],
- "from": {
- "kind": "ImageStreamTag",
- "name": "${APP_NAME}:latest"
- }
- }
- }
- ],
- "replicas": 1,
- "selector": {
- "component": "${APP_NAME}",
- "container": "karaf",
- "deploymentconfig": "${APP_NAME}",
- "group": "quickstarts",
- "project": "${APP_NAME}",
- "provider": "s2i",
- "version": "${APP_VERSION}"
- },
- "template": {
- "metadata": {
- "creationTimestamp": null,
- "labels": {
- "component": "${APP_NAME}",
- "container": "karaf",
- "deploymentconfig": "${APP_NAME}",
- "group": "quickstarts",
- "project": "${APP_NAME}",
- "provider": "s2i",
- "version": "${APP_VERSION}"
- }
- },
- "spec": {
- "containers": [
- {
- "name": "${APP_NAME}",
- "image": "library/${APP_NAME}:latest",
- "readinessProbe" : {
- "httpGet" : {
- "path" : "/readiness-check",
- "port" : 8181
- },
- "initialDelaySeconds" : 10
- },
- "livenessProbe" : {
- "httpGet" : {
- "path" : "/health-check",
- "port" : 8181
- },
- "initialDelaySeconds" : 180
- },
- "ports": [
- {
- "containerPort": 8181,
- "name": "http"
- },
- {
- "containerPort": 8778,
- "name": "jolokia"
- }
- ],
- "env" : [ {
- "name" : "KUBERNETES_NAMESPACE",
- "valueFrom" : {
- "fieldRef" : {
- "fieldPath" : "metadata.namespace"
- }
- }
- } , {
- "name": "MYSQL_SERVICE_NAME",
- "value": "${MYSQL_SERVICE_NAME}"
- }, {
- "name": "MYSQL_SERVICE_DATABASE",
- "value": "${MYSQL_SERVICE_DATABASE}"
- }, {
- "name": "MYSQL_SERVICE_USERNAME",
- "value": "${MYSQL_SERVICE_USERNAME}"
- }, {
- "name": "MYSQL_SERVICE_PASSWORD",
- "value": "${MYSQL_SERVICE_PASSWORD}"
- } ],
- "resources": {
- "requests": {
- "cpu": "${CPU_REQUEST}",
- "memory": "${MEMORY_REQUEST}"
- },
- "limits": {
- "cpu": "${CPU_LIMIT}",
- "memory": "${MEMORY_LIMIT}"
- }
- }
- }
- ]
- }
- }
- },
- "status": {}
- }
- ]
-}