You can use this step to continuously kill all (or a given) container in a selected pod.
Use Cases
Simulate failure of container startups and Kubernetes backing off to restart the container
Known limitations
Pods using hostPID=true are currently unsupported
Containers without a shell and no kill binary are currently unsupported
Rollback
When the attack stops, the continuous killing of the container(s) stops immediately. It doesn't actively change the pod's state.
Meaning if the pod is in CrashLoopBackoff, you need to wait for the backoff timer, as this is tracked internally by the kubelet and can't be reset.
Parameters
Parameter
Required
Description
Default
Duration
true
How long should the attack run?
60s
Container
false
Name of a container which should be killed. By default all containers are killed.