Skip to content

cmarasescu/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kuberntes cluster setup with vagrant, VirtualBox and kubeadm

Usage

Bring the cluster up

vagrant up master
vagrant up node01
vagrant up node02

Manage cluster with kubectl

export KUBECONFIG=$(pwd)/src/output/kubeconfig.yaml
kubectl cluster-info

or login into the master node:

vagrant ssh master
kubectl cluster-info
kns <my-fancy-namespace> # change the default namespace in kubeconfig
kubectl get <my-fancy-object>

Manage cluster with kube-dashboard

Browse to https://192.168.100.100:31001
Use token generated in src/output/cluster_admin_token.txt

Running one node cluster

If you want to run only the master node and be able to schedule Pods on it, remove the taint from the master:

kubectl taint nodes master node-role.kubernetes.io/master-

Enjoi;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published