You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn off swap (kubelet pre-requisite), make permanent if needed via /etc/fstab
swapoff -a
Add changes to ufw and enable IP forwarding
vi /etc/ufw/sysctl.conf
ADD THE FOLLOWING:
net/bridge/bridge-nf-call-ip6tables = 1
net/bridge/bridge-nf-call-iptables = 1
net/bridge/bridge-nf-call-arptables = 1
echo 1 > /proc/sys/net/ipv4/ip_forward
Reboot (?), might be needed...
Install Docker via apt, kubeadm are tested on Docker 17.03 but via apt (as of writing this gist) we'll get version 17.12, everything still works though. Also enable the Docker service so that it survives reboots.
Add the Kubernetes apt repo (yes it's Xenial still but packages still work on Bionic which is version 18.04 of Ubuntu)
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
Run an update to fetch package lists from the Kubernetes repository
apt update
Install kubectl, kubeadm and kubelet. Kubelet will crash immediatly, this will be sorted out soon when initializing the cluster with kubeadm
apt install -y kubelet kubeadm kubectl
Initialize the cluster with the Pod CIDR configured when bootstrapping networks in GCE
kubeadm init --pod-network-cidr=10.200.1.0/24
Configure kubectl, after the initialization completes you'll get the info needed to join nodes to the cluster and also how to connect to the cluster with kubectl