File tree Expand file tree Collapse file tree 6 files changed +55
-21
lines changed
deployment/clouddeploy/gke-workers Expand file tree Collapse file tree 6 files changed +55
-21
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : CronJob
3
+ metadata :
4
+ name : importer-deleter
5
+ spec :
6
+ schedule : " * */3 * * *"
7
+ concurrencyPolicy : Forbid
8
+ jobTemplate :
9
+ spec :
10
+ template :
11
+ spec :
12
+ containers :
13
+ - name : importer-deleter
14
+ image : importer
15
+ imagePullPolicy : Always
16
+ volumeMounts :
17
+ - mountPath : " /work"
18
+ name : " ssd"
19
+ securityContext :
20
+ privileged : true
21
+ resources :
22
+ requests :
23
+ cpu : 1
24
+ memory : " 10G"
25
+ limits :
26
+ cpu : 1
27
+ memory : " 11G"
28
+ restartPolicy : OnFailure
29
+ volumes :
30
+ - name : " ssd"
31
+ hostPath :
32
+ path : " /mnt/disks/ssd0"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ resources:
2
2
- workers.yaml
3
3
- scaler.yaml
4
4
- importer.yaml
5
+ - importer-deleter.yaml
5
6
- exporter.yaml
6
7
- alpine-cve-convert.yaml
7
8
- combine-to-osv.yaml
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ kind: CronJob
3
3
metadata :
4
4
name : importer-deleter
5
5
spec :
6
- schedule : " * */6 * * *"
7
- concurrencyPolicy : Forbid
8
6
jobTemplate :
9
7
spec :
10
8
template :
19
17
- --delete
20
18
- --delete_threshold_pct=20
21
19
- --public_log_bucket=osv-test-public-import-logs
22
- imagePullPolicy : Always
23
- volumeMounts :
24
- - mountPath : " /work"
25
- name : " ssd"
26
- securityContext :
27
- privileged : true
28
- resources :
29
- requests :
30
- cpu : 1
31
- memory : " 10G"
32
- limits :
33
- cpu : 1
34
- memory : " 11G"
35
- restartPolicy : OnFailure
36
- volumes :
37
- - name : " ssd"
38
- hostPath :
39
- path : " /mnt/disks/ssd0"
Original file line number Diff line number Diff line change 1
1
resources :
2
2
- ../../base
3
3
- debian-cve-convert.yaml
4
- - importer-deleter.yaml
5
4
patches :
6
5
- path : workers.yaml
7
6
- path : scaler.yaml
8
7
- path : importer.yaml
8
+ - path : importer-deleter.yaml
9
9
- path : exporter.yaml
10
10
- path : alpine-cve-convert.yaml
11
11
- path : combine-to-osv.yaml
Original file line number Diff line number Diff line change
1
+ apiVersion : batch/v1
2
+ kind : CronJob
3
+ metadata :
4
+ name : importer-deleter
5
+ spec :
6
+ suspend : true
7
+ jobTemplate :
8
+ spec :
9
+ template :
10
+ spec :
11
+ containers :
12
+ - name : importer-deleter
13
+ env :
14
+ - name : GOOGLE_CLOUD_PROJECT
15
+ value : oss-vdb
16
+ image : importer
17
+ args :
18
+ - --delete
19
+ - --delete_threshold_pct=20
20
+ - --public_log_bucket=osv-public-import-logs
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ resources:
5
5
patches :
6
6
- path : workers.yaml
7
7
- path : importer.yaml
8
+ - path : importer-deleter.yaml
8
9
- path : exporter.yaml
9
10
- path : alpine-cve-convert.yaml
10
11
- path : combine-to-osv.yaml
You can’t perform that action at this time.
0 commit comments