Run kubernetes cluster with kubeadm on vagrant.
- virtualbox: https://www.virtualbox.org/wiki/Downloads
- vagrant: https://www.vagrantup.com/downloads.html
Change MASTER_COUNT
to 1
to run a Single-Master.
vagrant up master1 worker1
vagrant ssh master1
kubectl cluster-info
kubectl get nodes
Change MASTER_COUNT
to 3
to run a Multi-Master cluster.
vagrant up master1 master2 master3 worker1
vagrant ssh master1
kubectl cluster-info
kubectl get nodes
Reference: Installing a Pod network add-on
Change POD_NETWORK
to /vagrant/kube-calico.yaml
to run use calico. See origin calico.yaml
kube-calico.yml
changes: explicitly assign env CALICO_IPV4POOL_CIDR
and IP_AUTODETECTION_METHOD
Change POD_NETWORK
to /vagrant/kube-flannel.yml
to run use flannel. See origin kube-flannel.yml
kube-flannel.yml
changes: added the --iface
option (ref)