Skip to content
Snippets Groups Projects
Commit 02c0d947 authored by Jean-Francois Chevrette's avatar Jean-Francois Chevrette Committed by Aaron Ogle
Browse files

[NEW] Added healthchecks to openshift template (#7184)

parent c832b583
No related branches found
No related tags found
No related merge requests found
......@@ -262,6 +262,30 @@
"mountPath": "/app/uploads"
}
],
"readinessProbe": {
"httpGet": {
"path": "/api/v1/info",
"port": 3000,
"scheme": "HTTP"
},
"initialDelaySeconds": 5,
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"livenessProbe": {
"httpGet": {
"path": "/api/v1/info",
"port": 3000,
"scheme": "HTTP"
},
"initialDelaySeconds": 30,
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "Always"
}
......@@ -416,4 +440,4 @@
"required": true
}
]
}
\ No newline at end of file
}
......@@ -11,21 +11,21 @@
},
"objects": [
{
"kind": "PersistentVolumeClaim",
"apiVersion": "v1",
"metadata": {
"name": "${DATABASE_SERVICE_NAME}"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "${VOLUME_CAPACITY}"
}
"kind": "PersistentVolumeClaim",
"apiVersion": "v1",
"metadata": {
"name": "${DATABASE_SERVICE_NAME}"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "${VOLUME_CAPACITY}"
}
}
}
}
},
{
"kind": "DeploymentConfig",
......@@ -151,7 +151,7 @@
{
"name": "${DATABASE_SERVICE_NAME}-data",
"persistentVolumeClaim": {
"claimName": "${DATABASE_SERVICE_NAME}"
"claimName": "${DATABASE_SERVICE_NAME}"
}
}
],
......@@ -282,6 +282,30 @@
"mountPath": "/app/uploads"
}
],
"readinessProbe": {
"httpGet": {
"path": "/api/v1/info",
"port": 3000,
"scheme": "HTTP"
},
"initialDelaySeconds": 5,
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"livenessProbe": {
"httpGet": {
"path": "/api/v1/info",
"port": 3000,
"scheme": "HTTP"
},
"initialDelaySeconds": 30,
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "Always"
}
......@@ -436,11 +460,11 @@
"required": true
},
{
"name": "VOLUME_CAPACITY",
"displayName": "Volume Capacity",
"description": "Volume space available for data, e.g. 512Mi, 2Gi.",
"value": "1Gi",
"required": true
"name": "VOLUME_CAPACITY",
"displayName": "Volume Capacity",
"description": "Volume space available for data, e.g. 512Mi, 2Gi.",
"value": "1Gi",
"required": true
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment