typora/daliy_note/9月归档/9.5/kubectl.md

15 lines
235 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### 下载
```bash
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
```
### 安装
```bash
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
```