annotate_resource
Add custom annotations to Kubernetes resources such as pods, services, or deployments, specifying a key-value pair and resource namespace for improved metadata management.
Instructions
Annotate a Kubernetes resource with the specified annotation
Args:
resource_type: Type of the resource (e.g., pod, service, deployment)
resource_name: Name of the resource to annotate
annotation: Annotation to add (e.g., key=value)
namespace: Namespace of the resource
Input Schema
Name | Required | Description | Default |
---|---|---|---|
annotation | Yes | ||
namespace | No | default | |
resource_name | Yes | ||
resource_type | Yes |
Input Schema (JSON Schema)
{
"properties": {
"annotation": {
"title": "Annotation",
"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",
"annotation"
],
"title": "annotate_resourceArguments",
"type": "object"
}