k8s-pilot

by bourbonkk

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

NameRequiredDescriptionDefault
context_nameYes
node_nameYes
taint_effectYes
taint_keyYes
taint_valueYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "node_name": { "title": "Node Name", "type": "string" }, "taint_effect": { "title": "Taint Effect", "type": "string" }, "taint_key": { "title": "Taint Key", "type": "string" }, "taint_value": { "title": "Taint Value", "type": "string" } }, "required": [ "context_name", "node_name", "taint_key", "taint_value", "taint_effect" ], "title": "add_node_taintArguments", "type": "object" }
ID: varavj97rf