Skip to content

blockchaind/kube-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

High-available Kubernetes with external ETCD cluster

Initialize cluster on 172-16-0-101 node and install Calico network plugin.

cd ha-external-etcd
./gencert.sh
vagrant up
vagrant ssh 172-16-0-101 --command "sudo kubeadm init --config /etc/kubernetes/kubeadm-init-config.yaml --upload-certs"
vagrant ssh 172-16-0-101 --command "sudo KUBECONFIG=/etc/kubernetes/admin.conf kubectl create -f https://docs.projectcalico.org/manifests/calico.yaml"

Add more control-plane or worker nodes by executing the join command returned by kubeadm init.

Optionally set host machines KUBECONFIG to point to this new cluster.

vagrant ssh 172-16-0-101 --command "sudo cat /etc/kubernetes/admin.conf" > config
export KUBECONFIG=config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages