From be85c85c436451c231e8c77c43b0dd58b77c3d74 Mon Sep 17 00:00:00 2001 From: Kahou Lei Date: Thu, 21 Sep 2017 16:33:44 -0700 Subject: [PATCH] Unable to spin up multiple works for demo-kubeadm cluster The root cause is due to Makefile always hardcode to spin up 1 master and 1 worker. This PR is to utilize vagrantup.sh to spin up k8s environment. Whereas vagrantup.sh will take the CONTIV_NODES and CONTIV_MASTERS which matches the workflow of the Vagrantfile Signed-off-by: Kahou Lei --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d6c2063..c8b3bb4 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,7 @@ cluster-swarm-mode: vagrant-clean # Brings up a demo cluster to install Contiv on with kubeadm, centos. cluster-kubeadm: vagrant-clean - cd cluster && \ - vagrant up kubeadm-master && \ - vagrant up kubeadm-worker0 + @bash ./scripts/vagrantup.sh kubeadm cluster-destroy: vagrant-clean