probeNode

get_nodes

List Kubernetes worker nodes in your cluster

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosk8s.node.probes
Nameget_nodes
ReturnNone

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

NameTypeDefaultRequiredTitleDescription
label_selectorstringnullNoLabel SelectorSelectors 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