Skip to content

Commit

Permalink
FIX: Update download url for kubernetes binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred78290 committed Oct 10, 2024
1 parent 2032c95 commit 1ce956c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/prepare-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ if [ "${KUBERNETES_DISTRO}" == "microk8s" ]; then
echo "==============================================================================================================================="

cd /usr/local/bin
curl -sL --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/${ARCH}/kubectl
curl -sL --remote-name-all https://dl.k8s.io/release/${KUBERNETES_VERSION}/bin/linux/${ARCH}/kubectl
chmod +x /usr/local/bin/kube*
elif [ "${KUBERNETES_DISTRO}" == "rke2" ]; then
echo "prepare rke2 image"

curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL="${KUBERNETES_VERSION}" sh -

pushd /usr/local/bin
curl -sL --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION%%+*}/bin/linux/${ARCH}/{kubectl,kube-proxy}
curl -sL --remote-name-all https://dl.k8s.io/release/${KUBERNETES_VERSION%%+*}/bin/linux/${ARCH}/{kubectl,kube-proxy}
chmod +x /usr/local/bin/kube*
popd

Expand Down

0 comments on commit 1ce956c

Please sign in to comment.