Skip to content

Instantly share code, notes, and snippets.

@zonca
Created June 7, 2018 13:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zonca/5365fd2245462dedaf2297e0417c4662 to your computer and use it in GitHub Desktop.
Save zonca/5365fd2245462dedaf2297e0417c4662 to your computer and use it in GitHub Desktop.
#!/bin/bash
apt-get update
apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
EOF
apt-get update
apt-get install -y docker.io
systemctl stop docker
modprobe overlay
echo '{"storage-driver": "overlay2"}' > /etc/docker/daemon.json
rm -rf /var/lib/docker/*
systemctl start docker
# Install kubernetes components!
apt-get install -y \
kubelet \
kubeadm \
kubernetes-cni
@kamlesh2015
Copy link

thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment