pv_create
Creates a PersistentVolume in a Kubernetes cluster by specifying context, name, capacity, access modes, storage class, and host path for efficient storage management.
Instructions
Create a PersistentVolume in the cluster.
Args: context_name: The Kubernetes context name name: The PersistentVolume name capacity: The storage capacity (e.g., "10Gi") access_modes: List of access modes (e.g., ["ReadWriteOnce"]) storage_class: The storage class name host_path: The host path for the volume
Returns: Status of the creation operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
access_modes | Yes | ||
capacity | Yes | ||
context_name | Yes | ||
host_path | Yes | ||
name | Yes | ||
storage_class | Yes |
Input Schema (JSON Schema)
{
"properties": {
"access_modes": {
"items": {},
"title": "Access Modes",
"type": "array"
},
"capacity": {
"title": "Capacity",
"type": "string"
},
"context_name": {
"title": "Context Name",
"type": "string"
},
"host_path": {
"title": "Host Path",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"storage_class": {
"title": "Storage Class",
"type": "string"
}
},
"required": [
"context_name",
"name",
"capacity",
"access_modes",
"storage_class",
"host_path"
],
"title": "pv_createArguments",
"type": "object"
}