Kubernetes: Is it possible to mount volumes to a container running as a CronJob?
A CronJob uses a PodTemplate as everything else based on Pods and can use Volumes. You placed your Volume specification directly in the CronJobSpec instead of the PodSpec, use it like this: apiVersion: batch/v1beta1 kind: CronJob metadata: name: update-db spec: schedule: “*/1 * * * *” jobTemplate: spec: template: spec: containers: – name: update-fingerprints image: … Read more