release v4.1.0-alpha.2

This commit is contained in:
iwilltry42 2021-02-03 13:54:11 +01:00
parent eaee32e227
commit 5adab78ef6
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110

View File

@ -458,6 +458,9 @@ ClusterCreatOpts:
continue
} else if serverCount == 0 && clusterCreateOpts.DisableLoadBalancer {
// if this is the first server node and the server loadbalancer is disabled, expose the API Port on this server node
if node.Ports == nil {
node.Ports = nat.PortMap{}
}
node.Ports[k3d.DefaultAPIPort] = []nat.PortBinding{cluster.KubeAPI.Binding}
}