-
Notifications
You must be signed in to change notification settings - Fork 1
/
job.yml
119 lines (119 loc) · 3.59 KB
/
job.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
kind: Job
apiVersion: batch/v1
metadata:
name: v11y-walker-cve-2022
labels:
app.kubernetes.io/component: v11y
app.kubernetes.io/instance: redhat-trusted-profile-analyzer
app.kubernetes.io/name: v11y-walker
app.kubernetes.io/part-of: trusted-profile-analyzer
spec:
parallelism: 1
completions: 1
backoffLimit: 6
template:
metadata:
labels:
app.kubernetes.io/component: v11y
app.kubernetes.io/instance: redhat-trusted-profile-analyzer
app.kubernetes.io/name: v11y-walker
spec:
volumes:
- name: cvelist
persistentVolumeClaim:
claimName: v11y-walker
initContainers:
- resources: {}
terminationMessagePath: /dev/termination-log
name: git-fetch
command:
- /bin/sh
imagePullPolicy: Always
volumeMounts:
- name: cvelist
mountPath: /git
terminationMessagePolicy: File
image: 'registry.redhat.io/rhtpa/rhtpa-trustification-service-rhel9@sha256:9142fe58fad28a8b469b17bdd84fe6bbcb6830811a3b31c671142ce109739455'
workingDir: /git
args:
- '-ec'
- |
if test -d cvelistV5; then
cd cvelistV5
git pull
else
git clone https://github.com/CVEProject/cvelistV5
fi
containers:
- resources: {}
readinessProbe:
httpGet:
path: /health/ready
port: 9010
scheme: HTTP
initialDelaySeconds: 2
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
name: walker
command:
- /trust
livenessProbe:
httpGet:
path: /health/live
port: 9010
scheme: HTTP
initialDelaySeconds: 2
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: RUST_LOG
value: info
- name: INFRASTRUCTURE_ENABLED
value: 'true'
- name: INFRASTRUCTURE_BIND
value: '[::]:9010'
- name: STORAGE_ACCESS_KEY
valueFrom:
secretKeyRef:
name: s3-credentials
key: user
- name: STORAGE_SECRET_KEY
valueFrom:
secretKeyRef:
name: s3-credentials
key: password
- name: STORAGE_ENDPOINT
value: 'http://minio:9000'
- name: STORAGE_REGION
value: eu-west-1
- name: STORAGE_BUCKET
value: v11y-default
ports:
- name: infra
containerPort: 9010
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: cvelist
mountPath: /mnt
terminationMessagePolicy: File
image: 'registry.redhat.io/rhtpa/rhtpa-trustification-service-rhel9@sha256:9142fe58fad28a8b469b17bdd84fe6bbcb6830811a3b31c671142ce109739455'
args:
- v11y
- walker
- '--source'
- /mnt/cvelistV5
- '--prefix'
- CVE-2022-
restartPolicy: Never
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
completionMode: NonIndexed
suspend: false