Skip to content

Instantly share code, notes, and snippets.

@netoxico
Created September 27, 2018 03:40
Show Gist options
  • Save netoxico/18cca6bf1e29832940873d78719253bf to your computer and use it in GitHub Desktop.
Save netoxico/18cca6bf1e29832940873d78719253bf to your computer and use it in GitHub Desktop.
PUBLIC_IP=$(ip -f inet -o addr show eth0|cut -d\ -f 7 | cut -d/ -f 1 | head -n 1)
sudo kubeadm init --apiserver-advertise-address=$PUBLIC_IP --pod-network-cidr=10.244.0.0/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment