Creating a node shutdown attack against a Kubernetes worker

Gremlin can generate various infrastructure attacks that impact cores, workers, and memory.

Let's perform the following steps to attack the CPU:

  1. Log in to your Gremlin account at https://app.gremlin.com/.
  2. From the Attacks menu, click on Infrastructure.
  1. Click on the New Attack button:

  1. Under the Choose Hosts to target tab, pick the node's local hostname:

  1. Under the Choose a Gremlin tab, click on State and select Shutdown:

  1. Click on Unleash Gremlin to run the attack:

  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.228.138