Skip to content

Commit

Permalink
always use lb for joining
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Oct 23, 2023
1 parent 8a78ffd commit 2b4609e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrapper/internal/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ func (k *KubeWrapper) JoinCluster(ctx context.Context, args *kubeadm.BootstrapTo
return fmt.Errorf("retrieving own instance metadata: %w", err)
}

// override join endpoint to go over lb
args.APIServerEndpoint = net.JoinHostPort(loadBalancerHost, loadBalancerPort)

log.With(
zap.String("nodeName", nodeName),
zap.String("providerID", providerID),
Expand Down

0 comments on commit 2b4609e

Please sign in to comment.