4. 部署配置 - 4.4 kubectl客户端
优质
小牛编辑
134浏览
2023-12-01
本章介绍 kubectl 的安装方法。
OSX
可以使用 Homebrew 或者 curl
下载 kubectl:
brew install kubectl
或者
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
Linux
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
Windows
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/windows/amd64/kubectl.exe
或者使用 Chocolatey 来安装:
choco install kubernetes-cli