-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
31 lines (24 loc) · 865 Bytes
/
install.sh
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
#!/bin/sh
export DOCKERVER=17.03.2~ce-0~ubuntu-xenial
echo "running apt-get update and installing some packages"
apt-get update && apt-get install -yq apt-transport-https \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
ca-certificates
echo "add kubernetes apt repository and gpg key"
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] http://apt.kubernetes.io \
kubernetes-$(lsb_release -cs) \
main"
echo "add docker apt repository and gpg key"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
echo "installing kubeadm and dependencies"
apt-get update && apt-get install -yq \
kubeadm \
kubectl \
docker-ce=$DOCKERVER