lootek / vagrant-kubeadm-kubernetes

Vagrantfile & Scripts to setup Kubernetes Cluster using Kubeadm for CKA, CKAD and CKA practice environemnt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrantfile and Scripts to Automate Kubernetes Setup using Kubeadm [Practice Environemnt for CKA/CKAD and CKS Exams]

Documentation

Refer this link for documentation: https://devopscube.com/kubernetes-cluster-vagrant/

If you are preparing for CKA, CKAD or CKS exam, save $57 using code DCUBEOFFER at https://kube.promo/latest

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 varaible.

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

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

cp config ~/.kube/

Kubernetes Dashboard URL

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/overview?namespace=kubernetes-dashboard

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

About

Vagrantfile & Scripts to setup Kubernetes Cluster using Kubeadm for CKA, CKAD and CKA practice environemnt


Languages

Language:Shell 100.0%