add_node_label
Add or update labels on Kubernetes nodes using the specified context, node name, label key, and value, returning 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
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
label_key | Yes | ||
label_value | Yes | ||
node_name | Yes |
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"
}