From b53e095abacb34bd29ee2d6acf2634c8dac8fcb6 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 12 Oct 2021 18:23:25 +0700 Subject: [PATCH] Updated the install script --- README.md | 2 +- kube-cluster-worker-install.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c76a370..9780320 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ #### Quick install for kubernetes cluster for worker node ```shell -curl -s -L https://raw.githubusercontent.com/sombochea/kubernetes-installation/main/kube-cluster-worker-install.sh?v=181612102021 | sudo bash +curl -s -L https://raw.githubusercontent.com/sombochea/kubernetes-installation/main/kube-cluster-worker-install.sh?v=182012102021 | sudo bash ``` ### 1. Download kubectl diff --git a/kube-cluster-worker-install.sh b/kube-cluster-worker-install.sh index e359990..bd646e8 100755 --- a/kube-cluster-worker-install.sh +++ b/kube-cluster-worker-install.sh @@ -33,7 +33,10 @@ ARCH="amd64" sudo mkdir -p /opt/cni/bin curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${ARCH}-${CNI_VERSION}.tgz" | sudo tar -C /opt/cni/bin -xz -echo "Downloading and install cri tools..." +DOWNLOAD_DIR=/usr/local/bin +sudo mkdir -p $DOWNLOAD_DIR + +echo "Downloading and install crictl tools..." CRICTL_VERSION="v1.17.0" ARCH="amd64" curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${ARCH}.tar.gz" | sudo tar -C $DOWNLOAD_DIR -xz