Scale Replicaset
cm_k8s_workloads_scale_replicasetScale a Kubernetes ReplicaSet to a specified replica count to adjust workload capacity and maintain pod availability.
Instructions
Scale replicaset (cm_k8s_workloads). Manage Kubernetes workloads (pods, rollouts, strategies, statefulsets, daemonsets, replicasets, jobs, cronjobs).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_k8s_workloads_scale_replicaset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Resource name for workload objects (jobs, cronjobs, statefulsets, etc.) | |
| spec | No | Resource specification for create/set operations | |
| source | No | Source path for copy operations | |
| command | No | Command to execute in pod (list form) | |
| pod_name | No | Pod name for pod operations | |
| replicas | No | Number of replicas for scaling operations | |
| namespace | No | Target namespace (default: from config) | |
| local_port | No | Local port for port-forward | |
| destination | No | Destination path for copy operations | |
| remote_port | No | Remote port for port-forward | |
| exec_command | No | Command to execute in pod (space-separated string) | |
| manager_type | No | Container manager: kubernetes (default: auto-detect) | |
| resource_name | No | Resource name for rollout operations | |
| resource_type | No | Resource type for rollout operations | |
| exec_container | No | Container name for exec | |
| label_selector | No | Label selector for filtering pods | |
| attach_container | No | Container name for attach | |
| rollout_revision | No | Revision number for rollout undo |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |