Init kubespray with Vagrant is now working
This commit is contained in:
parent
2df820b717
commit
a00993c42c
|
|
@ -7,16 +7,14 @@ source $VENVDIR/bin/activate
|
||||||
pip install -r kubespray/requirements.txt
|
pip install -r kubespray/requirements.txt
|
||||||
|
|
||||||
# prepare an inventory to test with
|
# prepare an inventory to test with
|
||||||
INV=dev.inventory
|
INV=dev
|
||||||
rm -rf kubespray/${INV}.bak &> /dev/null
|
|
||||||
mv kubespray/${INV} kubespray/${INV}.bak &> /dev/null
|
mv kubespray/${INV} kubespray/${INV}.bak &> /dev/null
|
||||||
cp -a kubespray/inventory/sample kubespray/${INV}
|
cp -a kubespray/inventory/sample kubespray/${INV}
|
||||||
rm -f kubespray/${INV}/hosts.ini
|
|
||||||
|
|
||||||
# customize the vagrant environment
|
# customize the vagrant environment
|
||||||
mkdir -p kubespray/vagrant
|
mkdir -p kubespray/vagrant
|
||||||
cat << EOF > kubespray/vagrant/config.rb
|
cat << EOF > kubespray/vagrant/config.rb
|
||||||
\$instance_name_prefix = "k8s"
|
\$instance_name_prefix = "k9s"
|
||||||
\$vm_cpus = 4
|
\$vm_cpus = 4
|
||||||
\$num_instances = 1
|
\$num_instances = 1
|
||||||
\$os = "centos"
|
\$os = "centos"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue