Simple Kubernetes on CentOS 7 based on kubeadm. Default setup is a single master with three nodes
NOTE: Currently libvirt only. Support for VirtualBox will be available soon
Install qemu-kvm, libvirt, vagrant-libvirt, and ansible
sudo dnf -y install qemu-kvm libvirt vagrant-libvirt ansible
You will also need to have kubectl on your system. You can install it by going to https://kubernetes.io/docs/tasks/tools/install-kubectl/ .
- Run the following:
sudo yum install epel-release
sudo yum install qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm ansible
- Install Vagrant: https://www.vagrantup.com/downloads.html
- Install the libvirt plugin for vagrant:
vagrant plugin install vagrant-libvirt
To setup type:
$ sudo ./up.sh
The Kubernetes configuration is then copied from the master node to the host and can be used as follows:
$ kubectl --kubeconfig=kubeconfig.conf get nodes
NAME STATUS ROLES AGE VERSION
master Ready master 7m v1.14.1
node0 Ready <none> 7m v1.14.1
node1 Ready <none> 7m v1.14.1
node2 Ready <none> 7m v1.14.1