Update kubernetes_install.sh
This commit is contained in:
parent
502b0a5234
commit
31698367b8
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
CLIENT=$1
|
DOCKER_VERSION=$1
|
||||||
IP=$2
|
KUBERNETES_VERSION=$2
|
||||||
TOKEN=$3
|
CLIENT=$3
|
||||||
HASH=$4
|
IP=$4
|
||||||
DOCKER_VERSION=$5
|
TOKEN=$5
|
||||||
KUBERNETES_VERSION=$6
|
HASH=$6
|
||||||
|
|
||||||
#Installing Docker
|
#Installing Docker
|
||||||
DOCKER_INSTALLED=$(which docker)
|
DOCKER_INSTALLED=$(which docker)
|
||||||
@ -17,7 +17,7 @@ then
|
|||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
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"
|
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker-ce=$5
|
apt-get install -y docker-ce=$DOCKER_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ then
|
|||||||
chmod 666 /etc/apt/sources.list.d/kubernetes.list
|
chmod 666 /etc/apt/sources.list.d/kubernetes.list
|
||||||
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
|
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y kubelet=$6 kubeadm=$6 kubectl=$6 kubernetes-cni=$6
|
apt-get install -y kubelet=$KUBERNETES_VERSION kubeadm=$KUBERNETES_VERSION kubectl=$KUBERNETES_VERSION kubernetes-cni=$KUBERNETES_VERSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Disabling swap for Kubernetes
|
#Disabling swap for Kubernetes
|
||||||
|
Loading…
Reference in New Issue
Block a user