32 lines
597 B
Markdown
32 lines
597 B
Markdown
> 本文作者:丁辉
|
|
|
|
# Crictl工具
|
|
|
|
[Github](https://github.com/kubernetes-sigs/cri-tools/releases)
|
|
|
|
## 开始安装
|
|
|
|
1. 下载软件
|
|
|
|
```bash
|
|
wget https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.34.0/crictl-v1.34.0-linux-amd64.tar.gz
|
|
```
|
|
|
|
2. 解压文件
|
|
|
|
```bash
|
|
tar -zxvf crictl-v*-linux-amd64.tar.gz
|
|
```
|
|
|
|
3. 安装
|
|
|
|
```bash
|
|
install -o root -g root -m 0755 crictl /usr/local/bin/crictl
|
|
```
|
|
|
|
4. 配置 crictl 配置文件
|
|
|
|
```bash
|
|
curl -so /etc/crictl.yaml https://gitee.com/offends/Kubernetes/raw/main/Containerd/Files/crictl.yaml
|
|
```
|