OS
Schema Hub

VolumeDevice

volumeDevice describes a mapping of a raw block device within a container.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/core.api.k8s.io/VolumeDevice_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/core.api.k8s.io/VolumeDevice_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

devicePathstringRequired
devicePath is the path inside of the container that the device will be mapped to.
namestringRequired
name must match the name of a persistentVolumeClaim in the pod