k8s-pilot

by bourbonkk

add_node_label

Add or update labels on Kubernetes nodes by specifying the context, node name, label key, and value. Returns updated node labels in JSON format.

Instructions

Add or update a label to a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to add label_value: The label value to set

Returns: JSON string containing the updated node labels

Input Schema

NameRequiredDescriptionDefault
context_nameYes
label_keyYes
label_valueYes
node_nameYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "label_key": { "title": "Label Key", "type": "string" }, "label_value": { "title": "Label Value", "type": "string" }, "node_name": { "title": "Node Name", "type": "string" } }, "required": [ "context_name", "node_name", "label_key", "label_value" ], "title": "add_node_labelArguments", "type": "object" }
ID: varavj97rf