create_nfs_export
Create an NFS export on TrueNAS Core for Kubernetes persistent volumes, specifying dataset, allowed networks, read-only access, and root user/group mapping.
Instructions
Create an NFS export for Kubernetes persistent volumes
Args:
dataset: Dataset path to export (e.g., "tank/k8s-volumes")
allowed_networks: List of allowed networks (e.g., ["10.0.0.0/24"])
read_only: Whether the export is read-only
maproot_user: User to map root to
maproot_group: Group to map root to
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allowed_networks | No | ||
dataset | Yes | ||
maproot_group | No | wheel | |
maproot_user | No | root | |
read_only | No |
Input Schema (JSON Schema)
{
"properties": {
"allowed_networks": {
"default": null,
"items": {
"type": "string"
},
"title": "Allowed Networks",
"type": "array"
},
"dataset": {
"title": "Dataset",
"type": "string"
},
"maproot_group": {
"default": "wheel",
"title": "Maproot Group",
"type": "string"
},
"maproot_user": {
"default": "root",
"title": "Maproot User",
"type": "string"
},
"read_only": {
"default": false,
"title": "Read Only",
"type": "boolean"
}
},
"required": [
"dataset"
],
"title": "create_nfs_exportArguments",
"type": "object"
}