Fix etcd hostnames

This commit is contained in:
Wojciech Tyczynski
2017-10-20 16:39:16 +02:00
parent 1e67feac75
commit 2fbe39fc8f
4 changed files with 8 additions and 3 deletions

View File

@@ -730,7 +730,7 @@ function start-kube-proxy {
# $4: value for variable 'cpulimit'
# $5: pod name, which should be either etcd or etcd-events
function prepare-etcd-manifest {
local host_name=$(hostname -s)
local host_name=${ETCD_HOSTNAME:-$(hostname -s)}
local etcd_cluster=""
local cluster_state="new"
local etcd_protocol="http"