mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Add local babysitting for the kube-proxy.
This commit is contained in:
parent
8183a4805e
commit
268b617b84
@ -30,6 +30,14 @@ monit:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 644
|
- mode: 644
|
||||||
|
|
||||||
|
/etc/monit/conf.d/kube-proxy:
|
||||||
|
file:
|
||||||
|
- managed
|
||||||
|
- source: salt://monit/kube-proxy
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 644
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
monit-service:
|
monit-service:
|
||||||
|
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