Skip to content
Kubernetes cluster using Vagrant, VirtualBox and Kubeadm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
calico cidr fix Sep 13, 2018
ingress ingress deployment Sep 17, 2018
LICENSE Initial commit Sep 2, 2018 updating versions Sep 5, 2018
Vagrantfile patch calico yamls Sep 14, 2018

Kubernetes cluster

A vagrant script for setting up a Kubernetes cluster using Kubeadm


How to Run

Execute the following vagrant command to start a new Kubernetes cluster, this will start one master and two nodes:

vagrant up

You can also start invidual machines by vagrant up k8s-head, vagrant up k8s-node-1 and vagrant up k8s-node-2

If more than two nodes are required, you can edit the servers array in the Vagrantfile

servers = [
        :name => "k8s-node-3",
        :type => "node",
        :box => "ubuntu/xenial64",
        :box_version => "20180831.0.0",
        :eth1 => "",
        :mem => "2048",
        :cpu => "2"

As you can see above, you can also configure IP address, memory and CPU in the servers array.


Execute the following command to remove the virtual machines created for the Kubernetes cluster.

vagrant destroy -f

You can destroy individual machines by vagrant destroy k8s-node-1 -f


Apache License, Version 2.0.

You can’t perform that action at this time.