Skip to content

Commit f655dd7

Browse files
author
mo
committed
k8s: clone into /app/repo and mount PVC at /app/repo/data to avoid non-empty dir; align prepare/train jobs
1 parent 7cd7648 commit f655dd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

k8s-prepare-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- |
1616
set -eu
1717
apt-get update && apt-get install -y git
18-
mkdir -p /app && cd /app
18+
mkdir -p /app/repo && cd /app/repo
1919
git clone https://github.com/david-thrower/cerebros-core-algorithm-alpha.git .
2020
git fetch origin 208-refactor-nlp-example-to-tokenize-first
2121
git checkout 208-refactor-nlp-example-to-tokenize-first
@@ -35,7 +35,7 @@ spec:
3535
value: "1"
3636
volumeMounts:
3737
- name: data-storage
38-
mountPath: /app/data
38+
mountPath: /app/repo/data
3939
resources:
4040
requests:
4141
memory: "4Gi"

k8s-train-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
- |
1616
set -eu
1717
apt-get update && apt-get install -y git
18-
mkdir -p /app && cd /app
18+
mkdir -p /app/repo && cd /app/repo
1919
git clone https://github.com/david-thrower/cerebros-core-algorithm-alpha.git .
2020
git fetch origin 208-refactor-nlp-example-to-tokenize-first
2121
git checkout 208-refactor-nlp-example-to-tokenize-first
@@ -34,7 +34,7 @@ spec:
3434
value: "1"
3535
volumeMounts:
3636
- name: data-storage
37-
mountPath: /app/data
37+
mountPath: /app/repo/data
3838
resources:
3939
requests:
4040
memory: "6Gi"

0 commit comments

Comments
 (0)