Kubernetes The Hard Way on Vagrant
Most of steps taken from kelseyhightower public repo.
Arranged accordingly to Vagrant with Virtualbox so that as you run vagrant up
from VAAS/kubernetes/hard-way
and wait for completion(it do everythings which is required to setup cluster), after that start using kubectl
either from your host or any of vm expect load balancer
.
$ kubectl get cs
NAME STATUS MESSAGE ERROR
scheduler Healthy ok
controller-manager Healthy ok
etcd-3 Healthy {"health":"true"}
etcd-0 Healthy {"health":"true"}
etcd-1 Healthy {"health":"true"}
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
worker-1 Ready <none> 88s v1.18.6
worker-2 Ready <none> 48s v1.18.6
This module requires Vagrant to pre-installed. And any virtual environment, defualt can use oracle virtualbox
To use kubernetes, can install kubectl
to access cluster from host but can access via ssh
to vritual machine also.
Very first cd
to path where Vagrant
file exists(VAAS/kubernetes/hard-way
), and open config.yaml
file to update setting before spin up cluster.
To start kubernetes cluster please follow below instructions:
vagrant up