Merge pull request #5984 from roberthbailey/kube-proxy-monit

Add local babysitting for the kube-proxy.
pull/6/head
Zach Loafman 2015-03-26 08:09:17 -07:00
commit 934d4e3206
2 changed files with 19 additions and 2 deletions

View File

@ -30,14 +30,22 @@ monit:
- user: root
- group: root
- mode: 644
/etc/monit/conf.d/kube-proxy:
file:
- managed
- source: salt://monit/kube-proxy
- user: root
- group: root
- mode: 644
{% endif %}
monit-service:
service:
- running
- name: monit
- name: monit
- watch:
- pkg: monit
- pkg: monit
- file: /etc/monit/conf.d/*
{% endif %}

View File

@ -0,0 +1,9 @@
check process kube-proxy with pidfile /var/run/kube-proxy.pid
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