# Temporary pod for uploading training data to PVC.
# Usage:
#   1. kubectl apply -f infra/k8s/training/training-data-pvc.yaml
#   2. kubectl apply -f infra/k8s/training/data-upload-job.yaml
#   3. kubectl cp test_data/futures-baseline foxhunt/data-upload:/data/futures-baseline
#   4. kubectl cp test_data/futures-baseline-l2 foxhunt/data-upload:/data/futures-baseline-l2
#   5. kubectl delete pod data-upload -n foxhunt
apiVersion: v1
kind: Pod
metadata:
  name: data-upload
  namespace: foxhunt
spec:
  containers:
    - name: upload
      image: busybox:1.36
      command: ["sleep", "3600"]
      volumeMounts:
        - name: training-data
          mountPath: /data
  volumes:
    - name: training-data
      persistentVolumeClaim:
        claimName: training-data-pvc
  restartPolicy: Never
