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.
TimeChaos
TimeChaos is the Schema for simulating time skew in containers by shifting system clocks.Metadata
chaos-mesh.org/v1alpha1TimeChaosStandard Kubernetes metadata. Refer to the Kubernetes API documentation for fields like
name, namespace, labels, and annotations.Spec
Defines the behavior of a time chaos experiment.
TimeChaosSpec
TimeOffset defines the delta time of injected program. It’s a possibly signed sequence of decimal numbers, such as
"300ms", "-1.5h" or "2h45m".Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".Examples:"10s"- Shift time forward by 10 seconds"-1h"- Shift time backward by 1 hour"2h45m"- Shift time forward by 2 hours and 45 minutes
ClockIds defines all affected clock IDs.Available options:
CLOCK_REALTIME- System-wide real-time clockCLOCK_MONOTONIC- Monotonic time since unspecified starting pointCLOCK_PROCESS_CPUTIME_ID- Per-process CPU-time clockCLOCK_THREAD_CPUTIME_ID- Thread-specific CPU-time clockCLOCK_MONOTONIC_RAW- Raw hardware-based monotonic timeCLOCK_REALTIME_COARSE- Faster but less precise REALTIMECLOCK_MONOTONIC_COARSE- Faster but less precise MONOTONICCLOCK_BOOTTIME- Monotonic time including suspend timeCLOCK_REALTIME_ALARM- Like REALTIME, can wake system from suspendCLOCK_BOOTTIME_ALARM- Like BOOTTIME, can wake system from suspend
["CLOCK_REALTIME"]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
TimeChaosSpec 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.
TimeChaosStatus
Conditions represents the current global condition of the chaos.
Experiment records the last experiment state.