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
|
||||
|
||||
# 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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue