Running etcd 2.0.5 in a pod on master

This commit is contained in:
Abhishek Shah
2015-02-09 17:46:11 -08:00
parent 3eda80b3c5
commit 7750f35e7c
8 changed files with 87 additions and 286 deletions

View File

@@ -1,9 +0,0 @@
check process etcd with pidfile /var/run/etcd.pid
group etcd
start program = "/etc/init.d/etcd start"
stop program = "/etc/init.d/etcd stop"
if failed
port 4001
protocol http
request "/v2/keys/"
then restart

View File

@@ -4,16 +4,6 @@ monit:
pkg:
- installed
{% if "kubernetes-master" in grains.get('roles', []) %}
/etc/monit/conf.d/etcd:
file:
- managed
- source: salt://monit/etcd
- user: root
- group: root
- mode: 644
{% endif %}
/etc/monit/conf.d/docker:
file:
- managed