Skip to content

Kubernetes The IaC Way - Or how to deploy "Kubernetes The Hard Way" in 10 minutes using one single command with Ansible and Vagrant

License

Notifications You must be signed in to change notification settings

ydamni/kubernetes-the-iac-way

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes the IaC Way

Technologies used

Kubernetes Ansible Vagrant

Introduction

kubernetes-the-iac-way is a challenge I set myself after completing Mumshad's version of kubernetes-the-hard-way.

The goal is to deploy "Kubernetes The Hard Way" in one command using Infrastructure as Code (IaC).

The project is based on Vagrant for the creation of nodes (Vagrantfile), and Ansible for the installation of Kubernetes in each node created (playbook.yml). It takes only 10 minutes to deploy.

Before using this repository, I strongly recommend that those who have never deployed "Kubernetes The Hard Way" give it a try to better understand how Kubernetes works.

How it works

Clone the repository, then run the vagrant up command.

By doing so, Vagrant will take care of creating the nodes via the Vagrantfile, then launch the Ansible playbook on each node during their creation.

Prerequisites

Hardware requirements

RAM: 8 GB minimum | 16 GB recommended

Disk space: 50 GB

Software requirements

Install Vagrant & Ansible

Modify the configuration

By default, the project allows to install Kubernetes on three master nodes, two worker nodes and one load balancer node; in the 192.168.42.0/24 subnet.

You can generate as many master and worker nodes as desired in any subnet by editing the variables at the beginning of the Vagrantfile.

About

Kubernetes The IaC Way - Or how to deploy "Kubernetes The Hard Way" in 10 minutes using one single command with Ansible and Vagrant

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published