/kubernetes-the-hard-way

Bootstrap Kubernetes the hard way on Vagrant on Local Machine. No scripts.

Primary LanguageShellApache License 2.0Apache-2.0

Kubernetes The Hard Way - Local Setup

This project draws inspiration and closely follows kubernetes-the-hard-way. The entire repository has been modified to align with my implementation and understanding of each concept.

The goal of this project is to bootstrap a Kubernetes cluster locally on our machine using Vagrant and VirtualBox. It offers an extensive learning experience by taking the long route to ensure understanding of every task required to establish a Kubernetes cluster.

The project focuses on minute details; missing even one tiny step along the way can lead to issues.

Always execute the cert_verify script where it's suggested, and ensure that you are on the correct node when performing actions. If cert_verify displays anything in red, it indicates an error in a previous step. For master node checks, run the check on both master-1 and master-2

Cluster Details

This project bootstraps a highly available Kubernetes cluster with end-to-end encryption between components and RBAC authentication.

Node Configuration

We will build the following components:

  • Two control plane nodes (master-1 and master-2) running control plane components as operating system services.
  • Two worker nodes (worker-1 and worker-2).
  • One loadbalancer VM running HAProxy to balance requests between the two API servers.

Implementation