3 DOCKER_VERSION=18.06.1~ce~3-0~ubuntu
6 # Install Docker as Prerequisite
7 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
8 sudo apt-key fingerprint 0EBFCD88
9 sudo add-apt-repository \
10 "deb https://download.docker.com/linux/ubuntu \
14 sudo apt install -y docker-ce=${DOCKER_VERSION}
16 # Disable swap on your machine
19 # Install Kubernetes with Kubeadm
21 sudo apt install -y apt-transport-https curl
22 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
24 cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
25 deb https://apt.kubernetes.io/ kubernetes-xenial main
29 kubelet=${KUBE_VERSION} kubeadm=${KUBE_VERSION} kubectl=${KUBE_VERSION}
30 apt-mark hold kubelet kubeadm kubectl
32 _conf='/etc/sysctl.d/99-akraino-iec.conf'
33 echo 'net.bridge.bridge-nf-call-iptables = 1' |& sudo tee "${_conf}"
34 sudo sysctl -q -p "${_conf}"