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": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "items": {
                  "type": "string"
               },
               "type": "array"
            }
         ],
         "description": "Name(s)/IP address(es) of the volume's NFS server",
         "examples": [
            "10.13.105.122",
            "[10.13.105.122, 10.13.105.123]"
         ],
         "title": "NFS server"
      },
      "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 | list[str], Field(title='NFS server', description="Name(s)/IP address(es) of the volume's NFS server", examples=['10.13.105.122', '[10.13.105.122, 10.13.105.123]'])] [Required]#

Name(s)/IP address(es) of the volume’s NFS server

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]#