nodejs-ex/openshift/templates/nodejs.json

230 lines
5.3 KiB
JSON
Raw Normal View History

2015-06-03 21:33:37 +00:00
{
"kind": "Template",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-example",
"creationTimestamp": null,
"annotations": {
2015-06-08 21:20:45 +00:00
"description": "A simple Node.js application that responds with information about the server.",
2015-06-03 21:33:37 +00:00
"iconClass": "icon-nodejs",
"tags": "instant-app,nodejs"
}
},
"objects": [
{
"kind": "Service",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-frontend",
"creationTimestamp": null
},
"spec": {
"ports": [
{
"name": "web",
"protocol": "TCP",
"port": 8080,
"targetPort": 8080,
"nodePort": 0
}
],
"selector": {
"name": "nodejs-frontend"
},
"portalIP": "",
"type": "ClusterIP",
"sessionAffinity": "None"
},
"status": {
"loadBalancer": {}
}
},
{
"kind": "Route",
"apiVersion": "v1beta3",
"metadata": {
2015-06-08 21:20:45 +00:00
"name": "frontend-route",
2015-06-03 21:33:37 +00:00
"creationTimestamp": null
},
"spec": {
2015-06-08 21:20:45 +00:00
"host" : "${FRONTEND_ROUTE}",
2015-06-03 21:33:37 +00:00
"to": {
"kind" : "Service",
"name" : "nodejs-frontend"
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-example",
"creationTimestamp": null
},
"spec": {},
"status": {
"dockerImageRepository": ""
}
},
{
"kind": "ImageStream",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-010-centos7",
"creationTimestamp": null
},
"spec": {
"dockerImageRepository": "openshift/nodejs-010-centos7"
},
"status": {
"dockerImageRepository": ""
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-example",
"creationTimestamp": null,
"labels": {
"name": "nodejs-example"
}
},
"spec": {
"triggers": [
{
"type": "github",
"github": {
"secret": "secret101"
}
},
{
"type": "generic",
"generic": {
"secret": "secret101"
}
},
{
"type": "imageChange",
"imageChange": {}
}
],
"source": {
"type": "Git",
"git": {
"uri": "${GITHUB_URL}"
}
},
"strategy": {
"type": "Source",
"sourceStrategy": {
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-010-centos7:latest"
2015-06-03 21:33:37 +00:00
},
"incremental": true
}
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "nodejs-example:latest"
}
},
"resources": {}
},
"status": {
"lastVersion": 0
}
},
{
"kind": "DeploymentConfig",
"apiVersion": "v1beta3",
"metadata": {
"name": "nodejs-frontend",
"creationTimestamp": null
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 120
},
"resources": {}
},
"triggers": [
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-example"
],
"from": {
"kind": "ImageStreamTag",
2015-06-03 21:33:37 +00:00
"name": "nodejs-example:latest"
},
"lastTriggeredImage": ""
}
}
],
"replicas": 1,
"selector": {
"name": "nodejs-frontend"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"name": "nodejs-frontend"
}
},
"spec": {
"containers": [
{
"name": "nodejs-example",
"image": "nodejs-example",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "IfNotPresent",
"capabilities": {},
"securityContext": {
"capabilities": {},
"privileged": false
}
}
],
"restartPolicy": "Always",
"dnsPolicy": "ClusterFirst"
}
}
},
"status": {}
}
],
"parameters": [
{
2015-06-08 21:20:45 +00:00
"name": "SOURCE_REPOSITORY_URL",
2015-06-03 21:33:37 +00:00
"description": "The URL with your Node.js application source code.",
"value": "https://github.com/openshift/nodejs-ex.git"
},
{
2015-06-08 21:20:45 +00:00
"name": "FRONTEND_ROUTE",
"description": "The exposed hostname that will route to the Node.js service.",
2015-06-03 21:33:37 +00:00
"value": "nodejs.apps"
}
],
"labels": {
"template": "nodejs-example"
2015-06-03 21:33:37 +00:00
}
}