Skip to content

bjthomas1/local-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

This project launches a local Kubernetes cluster (one master, two workers) with Vagrant. I use it for testing Helm chart deployments locally before provisioning into a more production-like environment.

Getting Started

To get a local copy up and running follow these simple steps.

  1. Clone the repo

    git clone https://github.com/bthomas1/local-k8s.git
  2. Bring the cluster up

    vagrant up

Prerequisites

The only requirements for this cluster deployment is to have a recent version of Vagrant and VirtualBox installed. Hardware-wise, you should have around 6GB of RAM to spare, as each node is allocated 2GB. A few CPU cores is useful, too.

The cluster will make use of the 192.168.50.0/24 subnet for VirtualBox hosts and LoadBalancer IPs. Your local PC will create a local route to this subnet, which might cause issues if your existing network uses this subnet.

Installation

  1. Clone the repo
    git clone https://github.com/bthomas1/local-k8s.git
  2. Install NPM packages
    vagrant up

Usage

Vagrant will launch three VMs according to the configuration defined in ./Vagrantfile, and then provision Kubernetes using the Ansible playbooks located under ./kubernetes-setup/

The cluster itself is barebones; the only main addition being the installation of MetalLB to support the creation of Loadbalancers that would otherwise be created by a cloud platform.

License

Distributed under the MIT License.

Acknowledgements

About

Local Vagrant Kubernetes cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published