Kubernetes
drain_nodes
Drain nodes matching the given label or name, so that no pods are scheduled on them any longer and running pods are evicted
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosk8s.node.probes |
Name | get_nodes |
Return | None |
Usage
JSON
{
"name": "get-nodes",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosk8s.node.probes",
"func": "get_nodes"
}
}
YAML
name: get-nodes
provider:
func: get_nodes
module: chaosk8s.node.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
label_selector | string | null | No | Label Selector | Selectors to target the appropriate nodes |
You may filter nodes by specifying a label selector.
Signature
def get_nodes(label_selector: str = None,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None):
pass