Files
digital-patients/k8s/job-copy-node-to-pvc.yaml
Olamide Isreal 9e6a16c19b Initial commit: digital-patients pipeline (clean, no large files)
Large reference/model files excluded from repo - to be staged to S3 or baked into Docker images.
2026-03-26 15:15:23 +01:00

54 lines
1.4 KiB
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: job-data-copy-digital-patient-node-to-pvc
namespace: bioinformatics
spec:
backoffLimit: 6
completionMode: NonIndexed
completions: 1
manualSelector: false
parallelism: 1
suspend: false
template:
spec:
containers:
- args:
- |
apk add --no-cache rsync
mkdir -p /target
rsync -av --exclude .git/ --exclude .git-old/ --exclude work/ /source/ /target/digital-patient-data
command:
- /bin/sh
- -c
image: alpine
imagePullPolicy: Always
name: data-copy
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /source
name: k8s-node
- mountPath: /target
name: pvc-volume
dnsPolicy: ClusterFirst
nodeSelector:
kubernetes.io/hostname: k8s-node23
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: omic-app
operator: Equal
value: similarity-search
volumes:
- name: pvc-volume
persistentVolumeClaim:
claimName: dreamdock-data
- hostPath:
path: /data/bugra/digital_patient ## CHANGE ME
type: ""
name: k8s-node