add_node_taint
Add a taint to a Kubernetes node to control pod scheduling by specifying the taint key, value, and effect (NoSchedule, PreferNoSchedule, or NoExecute). Returns updated node taints in JSON.
Instructions
Add a taint to a node.
Args: context_name: The Kubernetes context name node_name: The name of the node to modify taint_key: The taint key to add taint_value: The taint value to set taint_effect: The taint effect (NoSchedule, PreferNoSchedule, or NoExecute)
Returns: JSON string containing the updated node taints
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
node_name | Yes | ||
taint_effect | Yes | ||
taint_key | Yes | ||
taint_value | Yes |