kubectl_scale
Scales a Kubernetes deployment by changing the number of replicas to a specified count. Supports deployments, replicasets, and statefulsets across namespaces.
Instructions
Scale a Kubernetes deployment
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": {
"name": "<name>",
"replicas": "<replicas>"
},
"name": "kubectl_scale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the deployment to scale | |
| namespace | No | Kubernetes namespace | default |
| replicas | Yes | Number of replicas to scale to | |
| resourceType | No | Resource type to scale (deployment, replicaset, statefulset) | deployment |
| context | No | Kubeconfig Context to use for the command (optional - defaults to null) |