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.
DNSChaos allows you to inject DNS faults, including returning errors or random IP addresses for DNS queries.
API Version and Kind
Metadata
Standard Kubernetes object metadata.Name of the DNSChaos resource.
Namespace of the DNSChaos resource. Defaults to
default.Spec Fields
Defines the behavior of the DNS chaos experiment.
DNSChaosSpec
Specific DNS chaos action to perform.Enum values:
error- Return an error when sending DNS requestrandom- Return a random IP address when sending DNS request
errorSelector for targeting containers. See ContainerSelector in Common Types.Inherits all fields from
ContainerSelector (inline), including:- Pod selection criteria
- Mode (one/all/fixed/fixed-percent/random-max-percent)
- Value (for fixed modes)
- Container names
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, hDomain name patterns to affect. Supports placeholder This will affect:
? and wildcard *.Notes:- The wildcard
*must be at the end of the string. For example,chaos-*.orgis invalid. - If patterns is empty, will affect all domain names.
google.com(exact match)github.com,github.io(wildcard match)chaos-mesh.org(placeholder match)
Name 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.
DNSChaosStatus
Current global conditions. See ChaosStatus in Common Types.
Last known experiment state including desired phase and container records.