/kubeup

Simple Kubernetes cluster

Primary LanguageShellApache License 2.0Apache-2.0

Kubeup

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

Requirements

Install qemu-kvm, libvirt, vagrant-libvirt, and ansible

Fedora

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/ .

CentOS

  • Run the following:
sudo yum install epel-release
sudo yum install qemu libvirt libvirt-devel ruby-devel gcc qemu-kvm ansible
vagrant plugin install vagrant-libvirt

Usage

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