Configure the kubelet to bind a simple healthz server to a localhost

port for monitoring by monit. This is in preparation for the standard
kubelet port to switch to SSL only (and eventually to only accepting
connections on the SSL port that present a proper client SSL cert).

Also standardize the formatting of the monit config files a bit.
This commit is contained in:
Robert Bailey
2015-03-30 14:09:50 -07:00
parent 3e0cdff97c
commit bc8af553a3
6 changed files with 44 additions and 18 deletions

View File

@@ -3,7 +3,9 @@ group kube-proxy
start program = "/etc/init.d/kube-proxy start"
stop program = "/etc/init.d/kube-proxy stop"
if does not exist then restart
if failed port 10249
protocol HTTP request "/healthz"
with timeout 10 seconds
then restart
if failed
host 127.0.0.1
port 10249
protocol HTTP
request "/healthz"
then restart