apiVersion: v1
kind: Pod
metadata:
  name: attach-pvc-2
spec:
  containers:
  - name: attach-pvc
    image: armandmcqueen/tensorpack-mask-rcnn:master-latest
    command: ["/bin/bash"]
    securityContext:
      privileged: true
    args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 3600; done"]
    volumeMounts:
    - name:  fsx # efs or fsx
      mountPath: /fsx # /efs or /fsx
  volumes:
  - name:  fsx # efs or fsx
    persistentVolumeClaim:
      claimName: tensorpack-fsx
