pod-http-abort
Intercepts outbound HTTP traffic from the pod on a specified port and returns error status codes.
Target kind: Pod
Implementation: Daemon (ExecHTTPChaos with action: abort)
Rollback: Yes — sends CancelChaos to remove HTTP intercept rules
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
port | string | Yes | — | Port to intercept (e.g. "8080") |
statusCode | string | No | "503" | HTTP status code to return |
Example
apiVersion: chaos.chaosplane.io/v1alpha1
kind: ChaosExperiment
metadata:
name: pod-http-abort-example
namespace: default
spec:
target:
kind: Pod
namespace: default
labelSelector:
matchLabels:
app: checkout
action:
type: pod-http-abort
parameters:
port: "8080"
statusCode: "503"
duration: 30s
rollback:
enabled: true
Rollback behavior
Sends CancelChaos RPC to the daemon, which removes the iptables/proxy rules intercepting HTTP traffic on the specified port.
Implementation notes
The daemon sets up a transparent HTTP proxy in the pod's network namespace that intercepts outbound connections on the specified port and immediately returns the configured status code. port is required and validated before execution.