Update kubernetes_install.sh
This commit is contained in:
parent
502b0a5234
commit
31698367b8
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
CLIENT=$1
|
||||
IP=$2
|
||||
TOKEN=$3
|
||||
HASH=$4
|
||||
DOCKER_VERSION=$5
|
||||
KUBERNETES_VERSION=$6
|
||||
DOCKER_VERSION=$1
|
||||
KUBERNETES_VERSION=$2
|
||||
CLIENT=$3
|
||||
IP=$4
|
||||
TOKEN=$5
|
||||
HASH=$6
|
||||
|
||||
#Installing Docker
|
||||
DOCKER_INSTALLED=$(which docker)
|
||||
@ -17,7 +17,7 @@ then
|
||||
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"
|
||||
apt-get update
|
||||
apt-get install -y docker-ce=$5
|
||||
apt-get install -y docker-ce=$DOCKER_VERSION
|
||||
fi
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ then
|
||||
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
|
||||
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
|
||||
|
||||
#Disabling swap for Kubernetes
|
||||
|
Loading…
Reference in New Issue
Block a user