NFSVolumeSource

pydantic model controller.config.NFSVolumeSource

NFS volume to mount in the container.

Parameters:

data (Any)

Show JSON schema
{
   "title": "NFSVolumeSource",
   "description": "NFS volume to mount in the container.",
   "type": "object",
   "properties": {
      "type": {
         "const": "nfs",
         "title": "Type",
         "type": "string"
      },
      "server": {
         "description": "Name or IP address of the NFS server for the volume",
         "examples": [
            "10.13.105.122"
         ],
         "title": "NFS server",
         "type": "string"
      },
      "serverPath": {
         "description": "Absolute path of NFS server export of the volume",
         "examples": [
            "/share1/home"
         ],
         "pattern": "^/.*",
         "title": "Export path",
         "type": "string"
      },
      "readOnly": {
         "default": false,
         "description": "Whether to mount the NFS volume read-only. If this is true, any mount of this volume will be read-only even if the mount is not marked as such.",
         "title": "Is read-only",
         "type": "boolean"
      }
   },
   "additionalProperties": false,
   "required": [
      "type",
      "server",
      "serverPath"
   ]
}

Fields:
field readOnly: Annotated[bool, Field(title='Is read-only', description='Whether to mount the NFS volume read-only. If this is true, any mount of this volume will be read-only even if the mount is not marked as such.')] = False (name 'read_only')

Whether to mount the NFS volume read-only. If this is true, any mount of this volume will be read-only even if the mount is not marked as such.

field server: Annotated[str, Field(title='NFS server', description='Name or IP address of the NFS server for the volume', examples=['10.13.105.122'])] [Required]

Name or IP address of the NFS server for the volume

field serverPath: Annotated[str, Field(title='Export path', description='Absolute path of NFS server export of the volume', examples=['/share1/home'], pattern='^/.*')] [Required] (name 'server_path')

Absolute path of NFS server export of the volume

Constraints:
  • pattern = ^/.*

field type: Literal['nfs'] [Required]