Skip to content

sunnyvale-it/k8s-rhel7-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes multi-node cluster with Vagrant + Virtualbox + Kubeadm

Virtualbox + Vagrant + kubectl have to be installed on the host machine as a prerequisite.

K8S nodes will be provisioned with RedHat Enterprise Linux and the installation procedure relays on this kind of OS.

All the istructions here after have to be run on the host machine.

Install vagrant plugins

$ vagrant plugin install vagrant-vbguest
$ vagrant plugin install vagrant-reload
$ vagrant plugin install vagrant-hostmanager

Provision the environent

$ cd vagrant
vagrant$ vagrant up

Test the environment

vagrant$ export KUBECONFIG=$(pwd)/kubeconfig.yaml
vagrant$ kubectl get nodes

NAME     STATUS   ROLES    AGE   VERSION
master   Ready    master   18h   v1.20
node1    Ready    <none>   17h   v1.20
node2    Ready    <none>   17h   v1.20

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages