Skip to content

Instantly share code, notes, and snippets.

@blabadi
blabadi / install-k8s-ubuntu.sh
Created June 17, 2019 20:54 — forked from johanngyger/install-k8s-ubuntu.sh
Installing a single node Kubernetes on Ubuntu with kubeadm
# 1) Install Kubernetes on a Ubuntu machine
sudo -i
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo 'deb http://apt.kubernetes.io/ kubernetes-xenial main' >> /etc/apt/sources.list.d/kubernetes.list
apt update && apt install -y docker.io kubelet kubeadm kubectl
sudo systemctl enable docker.service
kubeadm init --pod-network-cidr=10.244.0.0/16 # Flannel pod network, see below
exit
# 2) Prepare kubectl