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.
IOChaos
IOChaos is the Schema for injecting I/O faults into containers. It allows you to simulate latency, faults, attribution overrides, and mistakes in I/O operations.Metadata
chaos-mesh.org/v1alpha1IOChaosStandard Kubernetes metadata. Refer to the Kubernetes API documentation for fields like
name, namespace, labels, and annotations.Spec
Defines the desired state of IOChaos.
IOChaosSpec
Action defines the specific I/O chaos action.Supported values:
latency- Inject latency into I/O operationsfault- Inject faults (errno) into I/O operationsattrOverride- Override file attributesmistake- Inject incorrect data into read/write operations
Delay defines the value of I/O chaos action delay. A delay string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as
"300ms".Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".Required when: action == 'latency'Errno defines the error code that returned by I/O action.Refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.htmlRequired when:
action == 'fault'Attr defines the overridden attribution.Required when:
action == 'attrOverride'Mistake defines what types of incorrectness are injected to I/O operations.Required when:
action == 'mistake'Path defines the path of files for injecting I/O chaos action.
Methods defines the I/O methods for injecting I/O chaos action.Default: all I/O methodsSee IoMethod for available values.
Percent defines the percentage of injection errors and provides a number from 0-100.
VolumePath represents the mount path of injected volume.
Duration represents the duration of the chaos action. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as
"300ms", "-1.5h" or "2h45m".Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".RemoteCluster represents the remote cluster where the chaos will be deployed.
Container Selector Fields
IOChaosSpec embedsContainerSelector which includes:
Selector is used to select pods that are used to inject chaos action.
Mode defines the mode to run chaos action.Supported values:
one- Select one random podall- Select all podsfixed- Select a fixed number of podsfixed-percent- Select a fixed percentage of podsrandom-max-percent- Select a random percentage up to max
Value is required when mode is
fixed, fixed-percent, or random-max-percent.ContainerNames indicates list of the name of affected container. If not set, the first container will be injected.
AttrOverrideSpec
AttrOverrideSpec defines file attribute overrides.Inode number override.
File size override.
Number of blocks override.
Access time override.
Modification time override.
Change time override.
File type override. Valid values:
namedPipe, charDevice, blockDevice, directory, regularFile, symlink, socket.File permissions override.
Number of hard links override.
User ID override.
Group ID override.
Device ID override.
MistakeSpec
MistakeSpec defines incorrect data injection for I/O operations.Filling determines what is filled in the mistake data.Valid values:
zero- Fill with zerosrandom- Fill with random data
There will be [1, MaxOccurrences] segments of wrong data.Minimum: 1
Max length of each wrong data segment in bytes.Minimum: 1
IoMethod
IoMethod represents FUSE I/O operation methods that can be targeted:lookup,forget,getattr,setattr,readlinkmknod,mkdir,unlink,rmdir,symlinkrename,link,open,read,writeflush,release,fsync,opendir,readdirreleasedir,fsyncdir,statfssetxattr,getxattr,listxattr,removexattraccess,create,getlk,setlk,bmap
IOChaosStatus
Conditions represents the current global condition of the chaos.
Experiment records the last experiment state.
Instances always specifies podiochaos generation or empty.