Update kubernetes_install.sh

This commit is contained in:
Torma Kristóf 2019-03-11 17:21:43 +01:00 committed by GitHub
parent f6d9318f1a
commit 215874e6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,11 @@ then
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 kubeadm kubectl kubernetes-cni apt-get install -y kubelet kubeadm kubectl kubernetes-cni
swapoff -a
fi fi
#Disabling swap for Kubernetes #Disabling swap for Kubernetes
sysctl net.bridge.bridge-nf-call-iptables=1 > /dev/null sysctl net.bridge.bridge-nf-call-iptables=1 > /dev/null
swapoff -a
if [ -z "$CLIENT" ] if [ -z "$CLIENT" ]
then then