This is documentation for the next version of Grafana k6 documentation. For the latest stable release, go to the latest 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);

