/vagrant_k8s_cluster

Local Vagrant K8s cluster setup

Primary LanguageShell

Usage

To provision the cluster, execute the following commands.

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