From a00993c42cc4e241e03a92e27e58b6d311c76874 Mon Sep 17 00:00:00 2001 From: Moritz Graf Date: Sun, 23 Feb 2020 18:47:17 +0100 Subject: [PATCH] Init kubespray with Vagrant is now working --- bootstrap/init_kubespray.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap/init_kubespray.sh b/bootstrap/init_kubespray.sh index 8412e07..c789baf 100755 --- a/bootstrap/init_kubespray.sh +++ b/bootstrap/init_kubespray.sh @@ -7,16 +7,14 @@ source $VENVDIR/bin/activate pip install -r kubespray/requirements.txt # prepare an inventory to test with -INV=dev.inventory -rm -rf kubespray/${INV}.bak &> /dev/null +INV=dev mv kubespray/${INV} kubespray/${INV}.bak &> /dev/null cp -a kubespray/inventory/sample kubespray/${INV} -rm -f kubespray/${INV}/hosts.ini # customize the vagrant environment mkdir -p kubespray/vagrant cat << EOF > kubespray/vagrant/config.rb -\$instance_name_prefix = "k8s" +\$instance_name_prefix = "k9s" \$vm_cpus = 4 \$num_instances = 1 \$os = "centos"