Just running with an idea here:
We have drone running on K8s cluster, native docker drover not kubernetes driver. If I wanted to mount a host volume in a build step container as per the docs:
kind: pipeline
name: default
steps:
- name: build
image: node
volumes:
- name: cache
path: /tmp/cache
commands:
- npm install
- npm test
volumes:
- name: cache
host:
path: /var/lib/cache
As I understand on our k8s cluster with one node, that would mount the volume on the actual node host, not just within the Agent right? So if I wanted to use a PersistentVolumes to mount the above build step volume… would I mount it within the agent first?