k8s-pilot

by bourbonkk

pod_update

Modify pod labels in Kubernetes clusters using context_name, namespace, and pod name. Part of the k8s-pilot MCP server, it streamlines updates for efficient resource management.

Instructions

Update an existing pod's metadata (only labels can be updated for an existing pod).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name labels: New labels to apply to the pod

Returns: Information about the updated pod

Input Schema

NameRequiredDescriptionDefault
context_nameYes
labelsNo
nameYes
namespaceYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "labels": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Labels" }, "name": { "title": "Name", "type": "string" }, "namespace": { "title": "Namespace", "type": "string" } }, "required": [ "context_name", "namespace", "name" ], "title": "pod_updateArguments", "type": "object" }
ID: varavj97rf