mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Add local babysitting for the kube-proxy.
This commit is contained in:
parent
8183a4805e
commit
268b617b84
@ -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 %}
|
||||
|
9
cluster/saltbase/salt/monit/kube-proxy
Normal file
9
cluster/saltbase/salt/monit/kube-proxy
Normal 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
|
Loading…
Reference in New Issue
Block a user