Key is to make sure it is in the spec.jobTemplate.spec.template.spec next to containers (not in it) and that the volumeMounts goes under containers.
spec.jobTemplate.spec.template.spec
containers
volumeMounts