Skip to content

crmarques/k8s-cluster-kubeadm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Create a Kubernetes cluster using kubeadm

Pre-requisites

  • Vagrant
  • Virtualbox

Create the VMs: 1 master and 2 nodes

cd k8s-cluster-kubeadm
vagrant up

Setup master node

vagrant ssh master

and execute the following command:

/vagrant/provision-scripts/setup-master.sh

Setup slave nodes

Check the master node output looking for the following string:

kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>

and, for each node, execute the following command:

/vagrant/provision-scripts/setup-node.sh <token> <hash>

Check configuration

Check the setup executing the following command in the master node:

kubectl get nodes

About

Create a Kubernetes cluster using kubeadm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages