DEV Community

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

Posted on

4 3

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: https://github.com/ridvanaltun/kubernetes-vagrant

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 https://github.com/ridvanaltun/kubernetes-vagrant.git 

# 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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay