"description":"An example Httpd application that serves static content. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/httpd-ex/blob/master/README.md.",
"tags":"quickstart,httpd",
"iconClass":"icon-apache",
"template.openshift.io/long-description":"This template defines resources needed to develop a static application served by httpd, including a build configuration and application deployment configuration.",
"template.openshift.io/provider-display-name":"Red Hat, Inc.",
"message":"The following service(s) have been created in your project: ${NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/httpd-ex/blob/master/README.md.",
"labels":{
"template":"httpd-example"
},
"objects":[
{
"kind":"Service",
"apiVersion":"v1",
"metadata":{
"name":"${NAME}",
"annotations":{
"description":"Exposes and load balances the application pods"
}
},
"spec":{
"ports":[
{
"name":"web",
"port":8080,
"targetPort":8080
}
],
"selector":{
"name":"${NAME}"
}
}
},
{
"kind":"Route",
"apiVersion":"v1",
"metadata":{
"name":"${NAME}"
},
"spec":{
"host":"${APPLICATION_DOMAIN}",
"to":{
"kind":"Service",
"name":"${NAME}"
}
}
},
{
"kind":"ImageStream",
"apiVersion":"v1",
"metadata":{
"name":"${NAME}",
"annotations":{
"description":"Keeps track of changes in the application image"
}
}
},
{
"kind":"BuildConfig",
"apiVersion":"v1",
"metadata":{
"name":"${NAME}",
"annotations":{
"description":"Defines how to build the application"
}
},
"spec":{
"source":{
"type":"Git",
"git":{
"uri":"${SOURCE_REPOSITORY_URL}",
"ref":"${SOURCE_REPOSITORY_REF}"
},
"contextDir":"${CONTEXT_DIR}"
},
"strategy":{
"type":"Source",
"sourceStrategy":{
"from":{
"kind":"ImageStreamTag",
"namespace":"${NAMESPACE}",
"name":"httpd:2.4"
}
}
},
"output":{
"to":{
"kind":"ImageStreamTag",
"name":"${NAME}:latest"
}
},
"triggers":[
{
"type":"ImageChange"
},
{
"type":"ConfigChange"
},
{
"type":"GitHub",
"github":{
"secret":"${GITHUB_WEBHOOK_SECRET}"
}
},
{
"type":"Generic",
"generic":{
"secret":"${GENERIC_WEBHOOK_SECRET}"
}
}
]
}
},
{
"kind":"DeploymentConfig",
"apiVersion":"v1",
"metadata":{
"name":"${NAME}",
"annotations":{
"description":"Defines how to deploy the application server"
}
},
"spec":{
"strategy":{
"type":"Rolling"
},
"triggers":[
{
"type":"ImageChange",
"imageChangeParams":{
"automatic":true,
"containerNames":[
"httpd-example"
],
"from":{
"kind":"ImageStreamTag",
"name":"${NAME}:latest"
}
}
},
{
"type":"ConfigChange"
}
],
"replicas":1,
"selector":{
"name":"${NAME}"
},
"template":{
"metadata":{
"name":"${NAME}",
"labels":{
"name":"${NAME}"
}
},
"spec":{
"containers":[
{
"name":"httpd-example",
"image":" ",
"ports":[
{
"containerPort":8080
}
],
"readinessProbe":{
"timeoutSeconds":3,
"initialDelaySeconds":3,
"httpGet":{
"path":"/",
"port":8080
}
},
"livenessProbe":{
"timeoutSeconds":3,
"initialDelaySeconds":30,
"httpGet":{
"path":"/",
"port":8080
}
},
"resources":{
"limits":{
"memory":"${MEMORY_LIMIT}"
}
},
"env":[
],
"resources":{
"limits":{
"memory":"${MEMORY_LIMIT}"
}
}
}
]
}
}
}
}
],
"parameters":[
{
"name":"NAME",
"displayName":"Name",
"description":"The name assigned to all of the frontend objects defined in this template.",
"required":true,
"value":"httpd-example"
},
{
"name":"NAMESPACE",
"displayName":"Namespace",
"description":"The OpenShift Namespace where the ImageStream resides.",
"required":true,
"value":"openshift"
},
{
"name":"MEMORY_LIMIT",
"displayName":"Memory Limit",
"description":"Maximum amount of memory the container can use.",
"required":true,
"value":"512Mi"
},
{
"name":"SOURCE_REPOSITORY_URL",
"displayName":"Git Repository URL",
"description":"The URL of the repository with your application source code.",