From 117f3f1361f2d8da31aa0ba4db148fa0c338f149 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Wed, 20 Mar 2019 08:29:45 -0700 Subject: [PATCH] set control planes to loopback in HA --- pkg/cluster/internal/create/nodes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/internal/create/nodes.go b/pkg/cluster/internal/create/nodes.go index f43ba7ccd8..9588eb2651 100644 --- a/pkg/cluster/internal/create/nodes.go +++ b/pkg/cluster/internal/create/nodes.go @@ -217,7 +217,8 @@ func nodesToCreate(cfg *config.Cluster, clusterName string) []nodeSpec { // only the external LB should reflect the port if we have // multiple control planes if isHA && role != constants.ExternalLoadBalancerNodeRoleValue { - apiServerPort = 0 + apiServerPort = 0 // replaced with a random port + apiServerAddress = "127.0.0.1" // only the LB needs to be non-local } desiredNodes = append(desiredNodes, nodeSpec{ Name: nameNode(role),