actionNode

cordon_node

Cordon nodes matching the given label or name, so that no pods are scheduled on them any longer

Activity as code

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

Typeaction
Modulechaosk8s.node.actions
Namecordon_node
ReturnNone

Usage

JSON

{
  "name": "cordon-node",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.node.actions",
    "func": "cordon_node"
  }
}

YAML

name: cordon-node
provider:
  func: cordon_node
  module: chaosk8s.node.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
namestringNoNameSpecifiy a node name or a label selector below
label_selectorstringnullNoLabel SelectorSelectors to target the appropriate nodes

Signature

def cordon_node(name: str = None,
                label_selector: str = None,
                secrets: Dict[str, Dict[str, str]] = None):
    pass