Chaos Engineering
Published in

Chaos Engineering

How to use Gremlin to blackhole an external address from a container

In this tutorial, we’ll be using Gremlin to run a blackhole attack that blocks an external address. In this example, we’ll block access to example.com.

First, we’ll launch our container, a simple ubuntu container:

Obtain the container id, in this example it is 30d570653c9f

Now we’ll hop in the container to run curl and confirm the blackhole is working as expected:

Curl to get example.com

The result from curling example.com

Now we’ll block the ability to reach example.com.

In this example I am spinning up a gremlin agent to run an attack on the container we created, it is then blocking the ability for that container to reach example.com for 3000 seconds:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store