set_namespace_resource_quota
Define or modify resource quotas (CPU, memory, pod count) for a specific namespace in Kubernetes using context details. Returns JSON with the quota status.
Instructions
Set or update resource quotas for a namespace.
Args: context_name: The Kubernetes context name namespace: The name of the namespace cpu_limit: Optional CPU limit (e.g., "2", "500m") memory_limit: Optional memory limit (e.g., "1Gi", "500Mi") pod_count: Optional maximum number of pods
Returns: JSON string containing the resource quota status
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
cpu_limit | No | ||
memory_limit | No | ||
namespace | Yes | ||
pod_count | No |
Input Schema (JSON Schema)
{
"properties": {
"context_name": {
"title": "Context Name",
"type": "string"
},
"cpu_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Cpu Limit"
},
"memory_limit": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Memory Limit"
},
"namespace": {
"title": "Namespace",
"type": "string"
},
"pod_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Pod Count"
}
},
"required": [
"context_name",
"namespace"
],
"title": "set_namespace_resource_quotaArguments",
"type": "object"
}