Skip to content

Kubernetes cluster deployment using Vagrant, VirtualBox and Ansible

Notifications You must be signed in to change notification settings

iul1an/vagrant-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-k8s

Deploy a local vm-based Kubernetes cluster using Vagrant, VirtualBox and Ansible.

Requirements

Setup

  • Clone the repo:
git clone https://github.com/iul1an/vagrant-k8s.git
  • Update the Vagrantfile file according to your needs:
    • Number of worker nodes (default: 2); setting it to 0 will create a single node cluster
    • Hardware resources: CPU, memory
    • Network:
      • IP addresses
      • MetalLB network segment
cd vagrant-k8s
$EDITOR Vagrantfile
  • Install Ansible (skip this step if you already have Ansible)
pip install -r requirements.txt
  • Deploy
vagrant up

Usage

vagrant ssh k8s-master
kubectl <action> <object>

OR

export KUBECONFIG=tmp/kubectl/config
kubectl <action> <object>

About

Kubernetes cluster deployment using Vagrant, VirtualBox and Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published