The ChaosSchedule is the user-facing chaos custom resource with a namespace scope and is designed to hold information
around how the chaos engines are to be scheduled according to the specified template. It schedules a chaosengine instance .
This section describes the fields in the ChaosSchedule spec and the possible values that can be set against the same.
Note - This is the alpha version of ChaosScheduler. An enhanced version may be released in the future based on the user reviews
Schedule Specification
Field
.spec.schedule.type
Description
Flag to control the type of scheduling
Type
Mandatory
Range
now, once, repeat
Default
now
Notes
The scheduleType in the spec is a user defined flag to trigger type of schedule they want. Setting it to now ensures immediate formation of chaosengine. Setting it to once ensures formation of chaosengine at a specific time. Setting it to repeat ensures repeated formation of chaosengine within a specific time interval.
Field
.spec.schedule.executionTime
Description
Time at which chaosengine is to be formed
Type
Mandatory (when .spec.schedule.type="once")
Range
user-defined (type: UTC Timeformat)
Default
n/a
Notes
The executionTime in the spec specifies the exact time at which the chaosengine is to be formed
Field
.spec.schedule.startTime
Description
Flag to specify start of the range of time within which chaosengine is to be formed
Type
Mandatory (when .spec.schedule.type="repeat")
Range
user-defined (type: UTC Timeformat)
Default
n/a
Notes
When startTime is specified along with .spec.schedule.type="repeat"
. ChaosEngine will not be formed before this time, no matter when it was created.
Field
.spec.schedule.endTime
Description
Flag to specify end of the range of time within which chaosengine is to be formed
Type
Mandatory (when .spec.schedule.type="repeat")
Range
user-defined (type: UTC Timeformat)
Default
n/a
Notes
When endTime is specified along with .spec.schedule.type="repeat"
. ChaosEngine will not be formed after this time.
Field
.spec.schedule.minChaosInterval
Description
Flag to specify the minimum interval between two chaosengines to be formed.
The minChaosInterval in the spec specifies a time interval that must be taken care of while repeatedly forming the chaosengines i.e. This much duration of time should be there as interval between the formation of two chaosengines.
Field
.spec.schedule.includedDays
Description
Flag to specify the days at which chaos is allowed to take place
Type
Mandatory (when .spec.schedule.type="repeat")
Range
user-defined (type: string)(pattern: {day_name}).
Default
n/a
Notes
The includedDays in the spec specifies a (comma-separated) list of days of the week at which chaos is allowed to take place. {day_name} is to be specified with the first 3 letters of the name of day such as Mon, Tue etc.
Engine Specification
Field
.spec.engineTemplateSpec
Description
Flag to control chaosengine to be formed
Type
Mandatory
Range
n/a
Default
n/a
Notes
The engineTemplateSpec is the ChaosEngineSpec of ChaosEngine that is to be formed.