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:
@@ -1,8 +1,9 @@
|
||||
check process docker with pidfile /var/run/docker.pid
|
||||
group docker
|
||||
group docker
|
||||
start program = "/etc/init.d/docker start"
|
||||
stop program = "/etc/init.d/docker stop"
|
||||
if does not exist then restart
|
||||
if failed unixsocket /var/run/docker.sock
|
||||
if failed
|
||||
unixsocket /var/run/docker.sock
|
||||
protocol HTTP request "/version"
|
||||
then restart
|
||||
then restart
|
||||
|
@@ -1,5 +1,5 @@
|
||||
check process etcd with pidfile /var/run/etcd.pid
|
||||
group etcd
|
||||
group etcd
|
||||
start program = "/etc/init.d/etcd start"
|
||||
stop program = "/etc/init.d/etcd stop"
|
||||
if failed
|
||||
|
@@ -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
|
||||
|
@@ -1,9 +1,11 @@
|
||||
check process kubelet with pidfile /var/run/kubelet.pid
|
||||
group kubelet
|
||||
group kubelet
|
||||
start program = "/etc/init.d/kubelet start"
|
||||
stop program = "/etc/init.d/kubelet stop"
|
||||
if does not exist then restart
|
||||
if failed port 10250
|
||||
protocol HTTP request "/healthz"
|
||||
with timeout 10 seconds
|
||||
then restart
|
||||
if failed
|
||||
host 127.0.0.1
|
||||
port 10248
|
||||
protocol HTTP
|
||||
request "/healthz"
|
||||
then restart
|
||||
|
Reference in New Issue
Block a user