k8s-pilot

by bourbonkk

create_namespace

Create a new namespace in Kubernetes by specifying context, name, and optional labels. Outputs JSON with details of the created namespace, enabling efficient cluster resource management via k8s-pilot MCP server.

Instructions

Create a new namespace.

Args: context_name: The Kubernetes context name namespace: The name for the new namespace labels: Optional dictionary of labels to apply to the namespace

Returns: JSON string containing information about the created namespace

Input Schema

NameRequiredDescriptionDefault
context_nameYes
labelsNo
namespaceYes

Input Schema (JSON Schema)

{ "properties": { "context_name": { "title": "Context Name", "type": "string" }, "labels": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Labels" }, "namespace": { "title": "Namespace", "type": "string" } }, "required": [ "context_name", "namespace" ], "title": "create_namespaceArguments", "type": "object" }
ID: varavj97rf