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)