Documentation Index
Fetch the complete documentation index at: https://mintlify.com/chaos-mesh/chaos-mesh/llms.txt
Use this file to discover all available pages before exploring further.
HTTPChaos allows you to inject faults into HTTP requests and responses, including delays, aborts, replacing request/response content, and more.
API Version and Kind
Metadata
Standard Kubernetes object metadata.Name of the HTTPChaos resource.
Namespace of the HTTPChaos resource. Defaults to
default.Spec Fields
Defines the behavior of the HTTP chaos experiment.
HTTPChaosSpec
Selector for targeting pods. See PodSelector in Common Types.Inherits all fields from
PodSelector (inline), including:- Pod selection criteria
- Mode (one/all/fixed/fixed-percent/random-max-percent)
- Value (for fixed modes)
Object to be selected and injected.Enum values:
Request- Target HTTP requestsResponse- Target HTTP responses
Target port to proxy.
Rule to select target by URI path in HTTP request.
Rule to select target by HTTP method in request.
Rule to select target by HTTP status code in response.
Rule to select target by HTTP headers in request. Key-value pairs represent header name and value.
Rule to select target by HTTP headers in response. Key-value pairs represent header name and value.
Abort the HTTP request/response. Part of
PodHttpChaosActions (inline).Delay duration for the HTTP request/response. Part of
PodHttpChaosActions (inline).Replace actions for HTTP request/response. Part of
PodHttpChaosActions (inline).Patch actions for HTTP request/response. Part of
PodHttpChaosActions (inline).TLS configuration. Will override PodHttpChaos if multiple HTTPChaos experiments are applied.
Duration of the chaos action.A duration string with format like
"300ms", "1.5h", or "2h45m".Valid time units: ns, us (µs), ms, s, m, hName of the remote cluster where the chaos will be deployed. If not specified, chaos is applied to the local cluster.
Status Fields
Current status of the chaos experiment.
HTTPChaosStatus
Current global conditions. See ChaosStatus in Common Types.
Last known experiment state including desired phase and container records.
Always specifies PodHttpChaos generation or empty.