summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-02-19 09:56:06 -0500
committerScott Dodson <sdodson@redhat.com>2016-03-14 09:27:39 -0400
commitaf5218491dc0c25079e7b97e16a3bb56c1a1421a (patch)
tree34311ef415a18bf1e3971a4e60233ed6a1477fe8 /roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json
parent388f75b83c44259278793d4faebb4c14c36d5c6f (diff)
downloadopenshift-af5218491dc0c25079e7b97e16a3bb56c1a1421a.tar.gz
openshift-af5218491dc0c25079e7b97e16a3bb56c1a1421a.tar.bz2
openshift-af5218491dc0c25079e7b97e16a3bb56c1a1421a.tar.xz
openshift-af5218491dc0c25079e7b97e16a3bb56c1a1421a.zip
Sync with latest image stream and templates
Diffstat (limited to 'roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json')
-rw-r--r--roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json36
1 files changed, 32 insertions, 4 deletions
diff --git a/roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json b/roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json
index 98f0cea95..d98e729d4 100644
--- a/roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json
+++ b/roles/openshift_examples/files/examples/v1.1/quickstart-templates/jenkins-persistent-template.json
@@ -82,8 +82,7 @@
},
"spec": {
"strategy": {
- "type": "Recreate",
- "resources": {}
+ "type": "Recreate"
},
"triggers": [
{
@@ -121,13 +120,33 @@
{
"name": "jenkins",
"image": "${JENKINS_IMAGE}",
+ "readinessProbe": {
+ "timeoutSeconds": 3,
+ "initialDelaySeconds": 3,
+ "httpGet": {
+ "path": "/login",
+ "port": 8080
+ }
+ },
+ "livenessProbe": {
+ "timeoutSeconds": 3,
+ "initialDelaySeconds": 30,
+ "httpGet": {
+ "path": "/login",
+ "port": 8080
+ }
+ },
"env": [
{
"name": "JENKINS_PASSWORD",
"value": "${JENKINS_PASSWORD}"
}
],
- "resources": {},
+ "resources": {
+ "limits": {
+ "memory": "${MEMORY_LIMIT}"
+ }
+ },
"volumeMounts": [
{
"name": "${JENKINS_SERVICE_NAME}-data",
@@ -160,18 +179,27 @@
],
"parameters": [
{
+ "name": "MEMORY_LIMIT",
+ "displayName": "Memory limit",
+ "description": "Maximum amount of memory the container can use",
+ "value": "512Mi"
+ },
+ {
"name": "JENKINS_SERVICE_NAME",
- "description": "Jenkins service name",
+ "displayName": "Jenkins service name",
+ "description": "The name of the OpenShift Service exposed for the Jenkins container",
"value": "jenkins"
},
{
"name": "JENKINS_PASSWORD",
+ "displayName": "Jenkins password",
"description": "Password for the Jenkins user",
"generate": "expression",
"value": "password"
},
{
"name": "VOLUME_CAPACITY",
+ "displayName": "Volume capacity",
"description": "Volume space available for data, e.g. 512Mi, 2Gi",
"value": "512Mi",
"required": true