remove_label
Remove a specific label from Kubernetes resources such as pods, services, or deployments by specifying the resource type, name, label key, and namespace using the MCP Kubernetes Server.
Instructions
Remove a label from a Kubernetes resource
Args:
resource_type: Type of the resource (e.g., pod, service, deployment)
resource_name: Name of the resource to remove the label from
label_key: Key of the label to remove
namespace: Namespace of the resource
Input Schema
Name | Required | Description | Default |
---|---|---|---|
label_key | Yes | ||
namespace | No | default | |
resource_name | Yes | ||
resource_type | Yes |
Input Schema (JSON Schema)
{
"properties": {
"label_key": {
"title": "Label Key",
"type": "string"
},
"namespace": {
"default": "default",
"title": "Namespace",
"type": "string"
},
"resource_name": {
"title": "Resource Name",
"type": "string"
},
"resource_type": {
"title": "Resource Type",
"type": "string"
}
},
"required": [
"resource_type",
"resource_name",
"label_key"
],
"title": "remove_labelArguments",
"type": "object"
}