Kubernetes Cronjob using temporary Volume in GKE

4/2/2019

I'm writing a CronJob which needs to create a Persistent Volume when it starts, attach it to the container, and once the job is done it should destroy it again.

I was reading through the reclaim policies of PVCs and PVs, but I can't find a nice way to do that without having to script the creation / deletion of the PVCs at the beginning / end of the job.

-- replay
google-kubernetes-engine
kubernetes

0 Answers