## s017: 随机模拟一个 Shoot admin 节点打满 CPU 负载; 占用 100%; 持续 10 min;

1. 筛选当前 Shoot 集群中的 Admin 节点

```shell
kubectl get nodes --selector "worker.gardener.cloud/pool=master"
```

2. 使用 node shell 连接 Node 节点

```shell
kubectl node-shell ip-10-250-24-162.us-west-2.compute.internal
```

3. 安装 chaosd 

```shell
export CHAOSD_VERSION=v1.2.0
curl -fsSL -o chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz https://mirrors.chaos-mesh.org/chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz
tar zxvf chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz && sudo mv chaosd-$CHAOSD_VERSION-linux-amd64 /usr/local/
export PATH=/usr/local/chaosd-$CHAOSD_VERSION-linux-amd64:$PATH
```

4. 模拟 Disk Fill

```shell
chaosd attack disk fill --percent 100% --path /
# Attack stress cpu successfully, uid: 88aa2b0e-ab64-40b1-8a19-ccef82c02719
```

3. 恢复故障

```shell
chaosd recover 88aa2b0e-ab64-40b1-8a19-ccef82c02719
# Recover 88aa2b0e-ab64-40b1-8a19-ccef82c02719 successfully
```
