Skip to content

Instantly share code, notes, and snippets.

@yankay
Created February 27, 2024 04:53
Show Gist options
  • Save yankay/af169e0e0259c1c2dd6d5129e394ccf4 to your computer and use it in GitHub Desktop.
Save yankay/af169e0e0259c1c2dd6d5129e394ccf4 to your computer and use it in GitHub Desktop.
快速安装 kubectl kubeadm
export KUBE_VERSION="1.28.0"
export FILE_MIRROR="https://files.m.daocloud.io"
cd /tmp
curl -LO "$FILE_MIRROR/dl.k8s.io/release/v$KUBE_VERSION/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin
curl -LO "$FILE_MIRROR/dl.k8s.io/release/v$KUBE_VERSION/bin/linux/amd64/kubeadm"
chmod +x kubeadm
mv kubeadm /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment