label_resource
Assign labels to Kubernetes resources such as pods, services, or deployments by specifying the resource type, name, and desired label. Facilitates resource organization and management within clusters.
Instructions
Label a Kubernetes resource with the specified label
Args:
resource_type: Type of the resource (e.g., pod, service, deployment)
resource_name: Name of the resource to label
label: Label to add (e.g., key=value)
namespace: Namespace of the resource
Input Schema
Name | Required | Description | Default |
---|---|---|---|
label | Yes | ||
namespace | No | default | |
resource_name | Yes | ||
resource_type | Yes |
Input Schema (JSON Schema)
{
"properties": {
"label": {
"title": "Label",
"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"
],
"title": "label_resourceArguments",
"type": "object"
}