Add service type load balancer in external kubernetes 65/8965/1 v7.1.0rc2
authorDavid Garcia <david.garcia@canonical.com>
Mon, 25 May 2020 11:55:14 +0000 (13:55 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Mon, 25 May 2020 11:55:14 +0000 (13:55 +0200)
Change-Id: Iab47337fdd14541aa979218e061799f11fc33d29
Signed-off-by: David Garcia <david.garcia@canonical.com>
installers/charmed_install.sh

index dad9f48..eb809d1 100755 (executable)
@@ -44,7 +44,7 @@ function bootstrap_k8s_lxd(){
 
     if [ -v KUBECFG ]; then
         cat $KUBECFG | juju add-k8s $K8S_CLOUD_NAME $ADD_K8S_OPTS
-        [ -v BOOTSTRAP_NEEDED ] && juju bootstrap $K8S_CLOUD_NAME $CONTROLLER_NAME
+        [ -v BOOTSTRAP_NEEDED ] && juju bootstrap $K8S_CLOUD_NAME $CONTROLLER_NAME --config controller-service-type=loadbalancer
     else
         sg microk8s -c "echo ${DEFAULT_IP}-${DEFAULT_IP} | microk8s.enable metallb"
         sg microk8s -c "microk8s.enable storage dns"