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
Description
Default
Duration
How long should the attack run?
30s
Container
(optional) Name of a container which should be killed. By default all containers are killed.
Signal
By default, the container will be killed by kill -SIGTERM 1. You can specify a different signal here.