Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#393 from BenTheElder/local-control
Browse files Browse the repository at this point in the history
set control planes to loopback in HA
  • Loading branch information
k8s-ci-robot authored Mar 20, 2019
2 parents 4677bfd + 117f3f1 commit f5fe355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cluster/internal/create/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f5fe355

Please sign in to comment.