k8s_autoscale_resource
Configure a Horizontal Pod Autoscaler to automatically scale deployments, statefulsets, or replicasets between min and max replicas based on CPU utilization.
Instructions
Configure a Horizontal Pod Autoscaler (HPA) for a deployment, statefulset, or replicaset. Creates or updates an HPA that scales between min and max replicas based on CPU utilization.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>",
"namespace": "<namespace>",
"resource_type": "<resource_type>",
"name": "<name>",
"min_replicas": "<min_replicas>",
"max_replicas": "<max_replicas>"
},
"name": "k8s_autoscale_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| context | Yes | ||
| namespace | Yes | ||
| cpu_percent | No | ||
| max_replicas | Yes | ||
| min_replicas | Yes | ||
| resource_type | Yes |