Skip to content

Instantly share code, notes, and snippets.

@arsham
Last active January 17, 2019 17:12
Show Gist options
  • Save arsham/4eef741c938e63550dfdb2b41a897f58 to your computer and use it in GitHub Desktop.
Save arsham/4eef741c938e63550dfdb2b41a897f58 to your computer and use it in GitHub Desktop.
Setup a #kubernetes cluster.

This setup will make weave behave correctly (the pod-network-cidr). The HOST_IP should be the IP the nodes can access.

kubeadm init --apiserver-advertise-address=HOST_IP --pod-network-cidr=10.4.0.0/16 --apiserver-cert-extra-sans=EXTERA_IPS
mkdir -p /home/arsham/.kube
cp -i /etc/kubernetes/admin.conf /home/arsham/.kube/config
chown arsham:arsham /home/arsham/.kube/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment