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