DEV Community

Cover image for Deploy a Multi-Node Kubernetes Cluster with Vagrant
Ridvan Altun
Ridvan Altun

Posted on


Deploy a Multi-Node Kubernetes Cluster with Vagrant

Deploying a Kubernetes cluster is a time consuming and boring job so I created a project for solving this issue.

Here is the project:

Just follow the below steps:

# Install the plugin for Vagrant to ability to use environment files.
$ vagrant plugin install vagrant-env

# Clone the project.
$ git clone 

# Go into it.
$ cd kubernetes-vagrant

# Don't forget to customize your own environment file.
$ cp .env.example .env

# Up one master and two worker node.
# This takes approximately ~15 minutes if you using first time.
$ vagrant up m n1 n2

# Connect to master node over SSH.
$ vagrant ssh m

# You can do everything you want, an example, list nodes.
$ kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

It is simple like that.

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git