forked from Alt-Shivam/UbuntuMachineSetup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.sh
More file actions
49 lines (31 loc) · 1.12 KB
/
Start.sh
File metadata and controls
49 lines (31 loc) · 1.12 KB
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
# Get sudo working
sudo -l
# update packages and their version
sudo apt-get update && sudo apt-get upgrade -y
# install curl and apt-transport-https
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
# add key to verify releases
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# add kubernetes apt repo
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
# install kubelet, kubeadm and kubectl
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
# install docker
sudo apt-get install docker.io
# apt-mark hold is used so that these packages will not be updated/removed automatically
sudo apt-mark hold kubelet kubeadm kubectl
#install helm v3
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
#install kind
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
mv ./kind /usr/local/bin/kind
sudo apt-get install jq make
#install pip
sudo apt update
sudo apt install python3-pip