Host path

In order to mount a path from the node where the Pod is running you can use a hostPath type persistence item.

This can also be used to mount an attached USB device to a Pod. Note that this will most likely also require setting an elevated securityContext.

See the Kubernetes docs for more information.

FieldMandatoryDocs / Description
enabledYes
typeYes
hostPathYesWhich path on the host should be mounted.
hostPathTypeNoSpecifying a hostPathType adds a check before trying to mount the path. See Kubernetes documentation for options.
mountPathNoWhere to mount the volume in the main container. Defaults to the value of hostPath.
readOnlyNoSpecify if the volume should be mounted read-only.
nameOverrideNoOverride the name suffix that is used for this volume.

Minimal configuration:

persistence:
  config:
    enabled: true
    type: hostPath
    hostPath: /dev

This will mount the /dev folder from the underlying host to /dev in the container.