Gremlin can generate various infrastructure attacks that impact cores, workers, and memory.
Let's perform the following steps to attack the CPU:
- Log in to your Gremlin account at https://app.gremlin.com/.
- From the Attacks menu, click on Infrastructure.
- Click on the New Attack button:
- Under the Choose Hosts to target tab, pick the node's local hostname:
- Under the Choose a Gremlin tab, click on State and select Shutdown:
- Click on Unleash Gremlin to run the attack:
- Get the pods on the node we executed a Shutdown attack on:
$ kubectl get pod -owide |grep ip-172-20-50-43.ec2.internal
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
engine-nginx-runner 1/2 Running 1 24h 100.96.0.65 ip-172-20-50-43.ec2.internal <none>
gremlin-rpp22 1/1 Running 1 88m 100.96.0.60 ip-172-20-50-43.ec2.internal <none>
nginx-deployment-5c689d88bb-rwtk9 1/1 Running 1 24h 100.96.0.63 ip-172-20-50-43.ec2.internal <none>
You will notice that the pods are restarted.