Note: If you are going to attack containers using network attacks, all containers in the target's linux network namespace (e.g. all containers belonging to the same Kubernetes Pod) will be affected. In case you want to target the traffic of a single container in the namespace you can for example use the port parameter to limit the blast radius.
This attack affects network traffic for protocols that use port numbers (e.g., TCP, UDP). Protocols like ICMP, which do not use ports, remain unaffected and will continue to function normally.
Use Cases
Understand how your services behave under network outages
Parameters
Parameter
Description
Default
Fail on Host Network
Emit failure when the targeted container is using the host network
true
Duration
How long should the traffic be affected?
30s
Hostnames
(optional) Restrict to/from which hosts the traffic is affected.
IPs/CIDRs
(optional) Restrict to/from which IP addresses or blocks the traffic is affected.
Ports
(optional) Restrict to which ports the traffic is reduced