The PodDisruptor() constructor creates a new instance of a PodDisruptor class.
Parameter | Description |
---|---|
selector | criteria for selecting the target pods |
options | options for controlling the behavior of the disruptor |
Selector
The selector defines the criteria a pod must satisfy in order to be a valid target:
Attribute | Description |
---|---|
namespace | namespace the selector will look for pods |
select | attributes that a pod must match to be selected |
exclude | attributes that exclude a pod (even if it matches the select attributes) |
You can use the following attributes to select or exclude pods:
Pod attributes
Attribute | Description |
---|---|
labels | map with the labels to be matched for selection or exclusion |
Options
The options control the creation and behavior of the PodDisruptor:
Attribute | Description |
---|---|
injectTimeout | maximum time to wait for the disruptor to be ready in the target pods, in seconds (default 30s). Zero value forces default. Negative values force no waiting. |