k8s-pilot

by bourbonkk

pvc_create

Create PersistentVolumeClaims in Kubernetes namespaces using specified storage, access modes, and context. Ideal for managing storage resources across clusters via k8s-pilot.

Instructions

Create a PersistentVolumeClaim in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name storage: The storage size (e.g., "10Gi") access_modes: List of access modes (e.g., ["ReadWriteOnce"]) storage_class: The storage class name (optional)

Returns: Status of the creation operation

Input Schema

NameRequiredDescriptionDefault
access_modesYes
context_nameYes
nameYes
namespaceYes
storageYes
storage_classNo

Input Schema (JSON Schema)

{ "properties": { "access_modes": { "items": {}, "title": "Access Modes", "type": "array" }, "context_name": { "title": "Context Name", "type": "string" }, "name": { "title": "Name", "type": "string" }, "namespace": { "title": "Namespace", "type": "string" }, "storage": { "title": "Storage", "type": "string" }, "storage_class": { "default": null, "title": "Storage Class", "type": "string" } }, "required": [ "context_name", "namespace", "name", "storage", "access_modes" ], "title": "pvc_createArguments", "type": "object" }
ID: varavj97rf