1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-13 13:40:22 +00:00

Merge pull request #3697 from vardhaman22/update-kubectl-url

This commit is contained in:
Jack Luo
2024-10-03 12:08:51 -07:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5,7 +5,7 @@ function kubectlinstall {
k8sversion=$1
if [ ! -f "/usr/local/bin/kubectl-${k8sversion}" ]; then
echo_with_time "Downloading kubectl ${k8sversion}"
curl -sL -o "/usr/local/bin/kubectl-${k8sversion}" "https://storage.googleapis.com/kubernetes-release/release/${k8sversion}/bin/linux/amd64/kubectl"
curl -sL -o "/usr/local/bin/kubectl-${k8sversion}" "https://dl.k8s.io/release/${k8sversion}/bin/linux/amd64/kubectl"
chmod +x "/usr/local/bin/kubectl-${k8sversion}"
fi
}