-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkeylime-toolbox-export-job.yml
44 lines (44 loc) · 1.26 KB
/
keylime-toolbox-export-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
apiVersion: batch/v1
kind: Job
metadata:
name: keylime-toolbox-export
spec:
template:
metadata:
name: keylime-toolbox-export
labels:
app: keylime-toolbox-export
spec:
containers:
- name: keylime-toolbox-export
# TODO: Set this to the name (and tag, if needed) that you uploaded to your registry
image: keylime-toolbox-export:latest
# TODO: Change the bucket here (and add other options, if needed)
command: ["./export-data", "target-bucket"]
resources:
requests:
memory: 100M
cpu: 150m
limits:
memory: 1G
env:
# TODO: Set all of these values. You might consider Secrets for the secret keys.
- name: AWS_REGION
value:
- name: KEYLIME_TOOLBOX_EMAIL
value:
- name: KEYLIME_TOOLBOX_TOKEN
value:
# valueFrom:
# secretKeyRef:
# name: keylime-toolbox-auth
# key: KEYLIME_TOOLBOX_TOKEN
- name: AWS_ACCESS_KEY_ID
value:
- name: AWS_SECRET_ACCESS_KEY
value:
# valueFrom:
# secretKeyRef:
# name: aws-auth
# key: AWS_SECRET_ACCESS_KEY
restartPolicy: OnFailure