Skip to content

lukeogg/vagrant-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrantfile and Scripts to Automate Kubernetes Setup using Kubeadm

  • Useing this for Practice Environment for CKA/CKAD and CKS Exams
  • Using for test clusters for DKP and Kaptain/Kubeflow
  • Also using for GPU clusters for ML workloads

Prerequisites

  1. Working Vagrant setup
  2. 8 Gig + RAM workstation as the Vms use 3 vCPUS and 4+ GB RAM

Usage/Examples

To provision the cluster, execute the following commands.

git clone https://github.com/scriptcamp/vagrant-kubeadm-kubernetes.git
cd vagrant-kubeadm-kubernetes
vagrant up

Set Kubeconfig file variable

cd vagrant-kubeadm-kubernetes
cd configs
export KUBECONFIG=$(pwd)/config

or you can copy the config file to .kube directory.

cp config ~/.kube/

Kubernetes login token

Vagrant up will create the admin user token and saves in the configs directory.

cd vagrant-kubeadm-kubernetes
cd configs
cat token

To shutdown the cluster,

vagrant halt

To restart the cluster,

vagrant up

To destroy the cluster,

vagrant destroy -f

Centos & HA based Setup

If you want Centos based setup, please refer https://github.com/marthanda93/VAAS

Packages

No packages published

Languages

  • Shell 100.0%