pv_create
Create a PersistentVolume in a Kubernetes cluster by specifying name, capacity, access modes, storage class, and host path.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context_name": "<context_name>",
"name": "<name>",
"capacity": "<capacity>",
"access_modes": "<access_modes>",
"storage_class": "<storage_class>",
"host_path": "<host_path>"
},
"name": "pv_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| capacity | Yes | ||
| host_path | Yes | ||
| access_modes | Yes | ||
| context_name | Yes | ||
| storage_class | Yes |