Skip to content

javiunzu/local-kubernetes-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-kubernetes-cluster

Use Vagrant to create a set of virtual machines connected through a virtual network and deploy a Kubernetes cluster on them.

Vagrant will configure the first VM as cluster master, and the rest as workers.

Although a local cluster defeats the purpose of Kubernetes itself (you don't actually get the fail-safe redundancy of a real cluster) this still has some applications:

  • Free training dummy.
  • Help cluster admins to test new versions and features of Kubernetes.
  • Help in the development of the deployment scripts, which can be later used for example in Terraform.

Quick start

  1. Install Vagrant and Virtualbox.
  2. Clone or download this repository.
  3. On the directory of the Vagrantfile run:
vagrant up
  1. Load your configuration:
export KUBECONFIG="$KUBECONFIG:$PWD/admin.conf"
  1. Test that everything worked:
kubectl get nodes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages