Vagrant-based Kubernetes cluster provisioner
Install dependencies
yum install gcc libvirt-devel ruby-devel
Install Vagrant
wget https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.rpm
yum install vagrant_2.2.9_x86_64.rpm
vagrant plugin install vagrant-libvirt
NOTE: Some older Centos versions require newer binutils
package:yum update binutils
.
Add Centos box
vagrant box add centos/7 --provider=libvirt
Install Ansible
yum install epel-release
yum install ansible
The simple deployment can be done with the following command
vagrant up
To deploy multiple environments create multiple config files
CONFIG=config.yml vagrant up