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.
PhysicalMachineChaos allows you to inject various types of faults into physical machines, including stress, disk, network, process, JVM, clock, Redis, Kafka, HTTP, file, and custom faults.
API Version and Kind
Metadata
Standard Kubernetes object metadata.Name of the PhysicalMachineChaos resource.
Namespace of the PhysicalMachineChaos resource. Defaults to
default.Spec Fields
Defines the behavior of the physical machine chaos experiment.
PhysicalMachineChaosSpec
Specific physical machine chaos action to perform.Enum values:
- Stress:
stress-cpu,stress-mem - Disk:
disk-read-payload,disk-write-payload,disk-fill - Network:
network-corrupt,network-duplicate,network-loss,network-delay,network-partition,network-dns,network-bandwidth,network-flood,network-down - Process:
process - JVM:
jvm-exception,jvm-gc,jvm-latency,jvm-return,jvm-stress,jvm-rule-data,jvm-mysql - Clock:
clock - Redis:
redis-expiration,redis-penetration,redis-cacheLimit,redis-restart,redis-stop - Kafka:
kafka-fill,kafka-flood,kafka-io - HTTP:
http-abort,http-delay,http-config,http-request - File:
file-create,file-modify,file-delete,file-rename,file-append,file-replace - VM:
vm - User Defined:
user_defined
Selector for targeting physical machines.
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.
ExpInfo Fields
Thespec includes action-specific configuration inline via ExpInfo. Only the field matching the action is used:
CPU stress configuration. Used when action is
stress-cpu.load(int) - P percent loading per CPU worker (0-100)workers(int) - Number of workersoptions([]string) - Extended stress-ng options
Memory stress configuration. Used when action is
stress-mem.size(string) - Bytes consumed per worker (e.g., “1G”, “50%”)options([]string) - Extended stress-ng options
Disk read configuration. Used when action is
disk-read-payload.Disk write configuration. Used when action is
disk-write-payload.Disk fill configuration. Used when action is
disk-fill.Network corruption configuration. Used when action is
network-corrupt.Network duplication configuration. Used when action is
network-duplicate.Network loss configuration. Used when action is
network-loss.Network delay configuration. Used when action is
network-delay.Network partition configuration. Used when action is
network-partition.Network DNS configuration. Used when action is
network-dns.Network bandwidth configuration. Used when action is
network-bandwidth.Network flood configuration. Used when action is
network-flood.Network down configuration. Used when action is
network-down.Process configuration. Used when action is
process.process(string) - Process name or PIDsignal(int) - Signal number to sendrecoverCmd(string) - Command to run when recovering
api/v1alpha1/physical_machine_chaos_types.go.
Status Fields
Current status of the chaos experiment.
PhysicalMachineChaosStatus
Current global conditions. See ChaosStatus in Common Types.
Last known experiment state including desired phase and container records.