diff --git a/cmd/apiserver/apiserver.go b/cmd/apiserver/apiserver.go index db5a3248812..5ed7b7da96a 100644 --- a/cmd/apiserver/apiserver.go +++ b/cmd/apiserver/apiserver.go @@ -76,7 +76,7 @@ func main() { Port: *minionPort, } - client := client.New("http://localhost:8080", nil) + client := client.New("http://"+net.JoinHostPort(*address, strconv.Itoa(int(*port))), nil) var m *master.Master if len(etcdServerList) > 0 {