-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathjob.yaml
40 lines (39 loc) · 983 Bytes
/
job.yaml
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
apiVersion: batch/v1
kind: Job
metadata:
name: test-skbn
labels:
name: test-skbn
app: test-skbn
spec:
template:
metadata:
labels:
name: test-skbn
app: test-skbn
spotinst.io/restrict-scale-down: "true"
annotations:
iam.amazonaws.com/role: test-dbbackup-operator
spec:
restartPolicy: OnFailure
serviceAccount: opsflow
containers:
- name: test-skbn
image: nuvo/skbn:0.5.1
resources:
limits:
memory: "3Gi"
cpu: "2000m"
command: ["skbn"]
args: [
"cp",
"--parallel", "1",
"--src", "k8s://invu-sre/cassandra-primary-r1-sts-0/cassandra/var/lib/cassandra/test.file",
"--dst", "s3://nuvo-dev-dbbackup/test.file",
"--buffer-size", "512",
"--verbose"
]
env:
- name: AWS_REGION
value: us-east-1
imagePullPolicy: IfNotPresent