From 2d35895edccb76285d362c3b40720630a6a61be2 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Sat, 1 Feb 2020 14:37:57 +0100 Subject: [PATCH] move no-lb setting to createClusterOpts --- cmd/create/createCluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/create/createCluster.go b/cmd/create/createCluster.go index 11f0972f..0fb9df9b 100644 --- a/cmd/create/createCluster.go +++ b/cmd/create/createCluster.go @@ -403,7 +403,7 @@ func parseCreateClusterCmd(cmd *cobra.Command, args []string, createClusterOpts **********************/ // TODO: create load balancer and other util containers // TODO: for now, this will only work with the docker provider (?) -> can replace dynamic docker lookup with static traefik config (?) - if masterCount > 1 && !noLB { // TODO: add traefik to the same network and add traefik labels to the master node containers + if masterCount > 1 && !createClusterOpts.DisableLoadbalancer { // TODO: add traefik to the same network and add traefik labels to the master node containers log.Debugln("Creating LB in front of master nodes") cluster.MasterLoadBalancer = &k3d.ClusterLoadbalancer{ Image: k3d.DefaultLBImage,