All faults / Compute & platform
Container kill: chaos experiment
Kills PID 1 inside the container without deleting the pod. The kubelet restarts it in place, so this exercises restart behaviour rather than rescheduling.
What it tests
restartPolicy, liveness probes, crash loop backoff
restartPolicy, liveness probes, crash loop backoff
The hypothesis holds when
The container restarts in place within seconds and the readiness probe keeps traffic away until it is serving.
The container restarts in place within seconds and the readiness probe keeps traffic away until it is serving.
It breaks when
Repeated kills push the pod into CrashLoopBackOff, and without a readiness probe requests land on a half-started container.
Repeated kills push the pod into CrashLoopBackOff, and without a readiness probe requests land on a half-started container.
Reference
The same fault in other tools
- Chaos Mesh: PodChaos · container-kill
- LitmusChaos: container-kill
- ChaosBlade: blade create k8s container-container remove
- Chaos Monkey: no equivalent
Generated manifests and commands are on the Export tab. Confirm flags for your version before running them.
Run this experiment in your browser
Runs in the simulator and against a live cluster.