Add application volumes
You can define volumes in the device specification to persist application data or mount content from secondary OCI artifacts.
Procedure
Update the device specification: Reference the OCI artifact in the
image field of your device resource. You can define and override runtime configurations such as environment variables, ports, and volumes in the device specification.
spec:
applications:
- name: sensor-collector
appType: quadlet
image: quay.io/myorg/sensor-collector:v1
envVars:
SENSOR_ID: "unit-42"
volumes:
- name: model-data
image:
reference: quay.io/myorg/sensor-models:latest
pullPolicy: IfNotPresent
reclaimPolicy: Retain
runAs: flightctl