Browse Source

Use postgresql's readycheck in templates

pull/119/head
Petr Kubat 7 years ago
parent
commit
e302ab80f4
2 changed files with 10 additions and 10 deletions
  1. +5
    -5
      openshift/templates/django-postgresql-persistent.json
  2. +5
    -5
      openshift/templates/django-postgresql.json

+ 5
- 5
openshift/templates/django-postgresql-persistent.json View File

@ -400,14 +400,14 @@
"timeoutSeconds": 1,
"initialDelaySeconds": 5,
"exec": {
"command": [ "/bin/sh", "-i", "-c", "psql -h 127.0.0.1 -U ${POSTGRESQL_USER} -q -d ${POSTGRESQL_DATABASE} -c 'SELECT 1'"]
"command": [ "/usr/libexec/check-container" ]
}
},
"livenessProbe": {
"timeoutSeconds": 1,
"initialDelaySeconds": 30,
"tcpSocket": {
"port": 5432
"timeoutSeconds": 10,
"initialDelaySeconds": 120,
"exec": {
"command": [ "/usr/libexec/check-container", "--live" ]
}
},
"resources": {


+ 5
- 5
openshift/templates/django-postgresql.json View File

@ -381,14 +381,14 @@
"timeoutSeconds": 1,
"initialDelaySeconds": 5,
"exec": {
"command": [ "/bin/sh", "-i", "-c", "psql -h 127.0.0.1 -U ${POSTGRESQL_USER} -q -d ${POSTGRESQL_DATABASE} -c 'SELECT 1'"]
"command": [ "/usr/libexec/check-container" ]
}
},
"livenessProbe": {
"timeoutSeconds": 1,
"initialDelaySeconds": 30,
"tcpSocket": {
"port": 5432
"timeoutSeconds": 10,
"initialDelaySeconds": 120,
"exec": {
"command": [ "/usr/libexec/check-container", "--live" ]
}
},
"resources": {


Loading…
Cancel
Save