k8s-pilot

by bourbonkk

set_namespace_resource_quota

Define or update resource quotas for a Kubernetes namespace, specifying CPU limits, memory limits, and pod counts. Outputs JSON with the resource quota status for effective resource management.

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

NameRequiredDescriptionDefault
context_nameYes
cpu_limitNo
memory_limitNo
namespaceYes
pod_countNo

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" }
ID: varavj97rf