## 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. 模拟 CPU 打满

```shell
chaosd attack stress cpu -l 100 -w 8
# Attack stress cpu successfully, uid: 3d251860-a81d-4bc5-b047-97fafdeff042
```

5. 恢复故障

```shell
chaosd recover 3d251860-a81d-4bc5-b047-97fafdeff042
# Recover 3d251860-a81d-4bc5-b047-97fafdeff042 successfully
```
