-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall
51 lines (36 loc) · 1.79 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#Install Docker and Kubernetes to all nodes
Open 3 Azure Cloud shells and Log-in to Launcher VM in each case:
ssh [email protected] (Use the public IP of the VM)
Log-in to controller and 2 workers from Launcher prompt using their private IPs:
Run following commands in launcher, controller and both the workers VMs:
============================================================================
Run following commands to install docker, kubelet, kubeadm and kubectl:
# Get the Docker gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add the Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Get the Kubernetes gpg key
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Add the Kubernetes repository
cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
# Update your packages
sudo apt-get update
# Install Docker, kubelet, kubeadm, and kubectl
sudo apt-get install -y docker-ce=5:19.03.9~3-0~ubuntu-bionic kubelet=1.18.6-00 kubeadm=1.18.6-00 kubectl=1.18.6-00
# Hold them at the current version
sudo apt-mark hold docker-ce kubelet kubeadm kubectl
====================================================================
Run following commands in controller and both the workers VMs:
# Add the iptables rule to sysctl.conf
echo "net.bridge.bridge-nf-call-iptables=1" | sudo tee -a /etc/sysctl.conf
# Enable iptables immediately
sudo sysctl -p
===================================================================
Courtsey: https://gist.github.com/chadmcrowell/f2221cf33185c8c52d6e793320d69678