# This is the PersistentVolumeClaim object that is sent to Kubernetes master
# when creating a persistent volume claim for a Twister2 job

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: <job-id>
  namespace: <kubernetes.namespace>
  labels:
    app: twister2
    t2-job: <job-id>
  annotations:
    volume.beta.kubernetes.io/storage-class: "<kubernetes.persistent.storage.class>"
spec:
  accessModes:
  - <kubernetes.storage.access.mode>
  resources:
    requests:
      storage: <persistent.volume.per.worker> * <twister2.worker.instances> + <twister2.job.master.persistent.volume.size>

