set_resource_limits
Set CPU and memory resource requests and limits for a container in a Kubernetes Deployment. Specify values for cpu and memory requests and limits to control resource allocation.
Instructions
Sets CPU and Memory requests and limits for a specific container in a 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": {
"namespace": "<namespace>",
"deploymentName": "<deploymentName>",
"containerName": "<containerName>"
},
"name": "set_resource_limits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true, simulates the action | |
| cluster | No | Target cluster name (default: 'default') | |
| cpuLimit | No | CPU limit (e.g. '500m' or '1') | |
| namespace | Yes | The Kubernetes namespace | |
| cpuRequest | No | CPU request (e.g. '100m' or '0.1') | |
| memoryLimit | No | Memory limit (e.g. '512Mi') | |
| containerName | Yes | The name of the container | |
| memoryRequest | No | Memory request (e.g. '256Mi') | |
| deploymentName | Yes | The name of the Deployment |