-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathinit-job.yaml
More file actions
31 lines (31 loc) · 934 Bytes
/
init-job.yaml
File metadata and controls
31 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: batch/v1
kind: Job
metadata:
name: feast-apply-job
spec:
template:
spec:
containers:
- name: feast-apply
image: quay.io/feastdev/feature-server:latest
command: ["/bin/sh", "-c"]
args:
- |
echo "Starting feast initialization job...";
mkdir /tmp/sample;
cd /tmp/sample;
cp /sample/* .;
sed -i 's/localhost/postgres/' feature_store.yaml;
feast apply;
CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S");
feast materialize-incremental $CURRENT_TIME;
echo "Feast initialization completed successfully.";
volumeMounts:
- name: sample-repo-files
mountPath: /sample
restartPolicy: Never
volumes:
- name: sample-repo-files
configMap:
name: sample-repo
backoffLimit: 1