mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Have etcd listen on all interfaces so that monit probes succeed. Closes #3852.
This commit is contained in:
parent
984fb2e675
commit
ba749284d0
@ -18,7 +18,7 @@ NAME=etcd
|
||||
DAEMON=/usr/local/bin/$NAME
|
||||
# DAEMON_ARGS="-peer-addr $HOSTNAME:7001 -name $HOSTNAME"
|
||||
host_ip=$(hostname -i)
|
||||
DAEMON_ARGS="-addr ${host_ip}:4001 -bind-addr ${host_ip}:4001 -data-dir /var/etcd/data -initial-advertise-peer-urls http://${HOSTNAME}:2380 -name ${HOSTNAME} -initial-cluster ${HOSTNAME}=http://${HOSTNAME}:2380"
|
||||
DAEMON_ARGS="-addr ${host_ip}:4001 -bind-addr 0.0.0.0:4001 -data-dir /var/etcd/data -initial-advertise-peer-urls http://${HOSTNAME}:2380 -name ${HOSTNAME} -initial-cluster ${HOSTNAME}=http://${HOSTNAME}:2380"
|
||||
DAEMON_LOG_FILE=/var/log/$NAME.log
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
@ -3,7 +3,6 @@ group etcd
|
||||
start program = "/etc/init.d/etcd start"
|
||||
stop program = "/etc/init.d/etcd stop"
|
||||
if failed
|
||||
host kubernetes-master
|
||||
port 4001
|
||||
protocol http
|
||||
request "/v2/keys/"
|
||||
|
Loading…
Reference in New Issue
Block a user