create_namespace
Create a new namespace in Kubernetes clusters with 'k8s-pilot'. Specify the context, namespace name, and optional labels to manage resources efficiently.
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
Name | Required | Description | Default |
---|---|---|---|
context_name | Yes | ||
labels | No | ||
namespace | Yes |
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"
}