Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Constructor
The PodDisruptor()
constructor creates a new instance of a PodDisruptor class.
Selector
The selector
defines the criteria a pod must satisfy to be a valid target:
You can use the following attributes to select or exclude pods:
Pod attributes
Options
The options
control the creation and behavior of the PodDisruptor
:
Example
const selector = {
namespace: 'my-namespace',
select: {
labels: {
app: 'my-app',
},
},
};
const podDisruptor = new PodDisruptor(selector);