Add liveness checks to the controller-manager and scheduler.

This commit is contained in:
Brendan Burns 2015-06-07 21:51:01 -07:00
parent 0f1c4c25c3
commit ff3f463e00
2 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,14 @@
"-c",
"/usr/local/bin/kube-controller-manager {{params}} 1>>/var/log/kube-controller-manager.log 2>&1"
],
"livenessProbe": {
"httpGet": {
"path": "/healthz",
"port": 10252
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
"volumeMounts": [
{ "name": "srvkube",
"mountPath": "/srv/kubernetes",

View File

@ -13,6 +13,14 @@
"-c",
"/usr/local/bin/kube-scheduler --master=127.0.0.1:8080 {{pillar['log_level']}} 1>>/var/log/kube-scheduler.log 2>&1"
],
"livenessProbe": {
"httpGet": {
"path": "/healthz",
"port": 10251
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
"volumeMounts": [
{
"name": "logfile",