34 lines
963 B
YAML
34 lines
963 B
YAML
|
|
apiVersion: batch/v1
|
||
|
|
kind: Job
|
||
|
|
metadata:
|
||
|
|
name: @@JOB_NAME@@
|
||
|
|
namespace: remora-testbed
|
||
|
|
spec:
|
||
|
|
activeDeadlineSeconds: 900
|
||
|
|
backoffLimit: 0
|
||
|
|
ttlSecondsAfterFinished: 300
|
||
|
|
template:
|
||
|
|
spec:
|
||
|
|
automountServiceAccountToken: false
|
||
|
|
enableServiceLinks: false
|
||
|
|
restartPolicy: Never
|
||
|
|
containers:
|
||
|
|
- name: tests
|
||
|
|
image: @@TEST_IMAGE@@
|
||
|
|
imagePullPolicy: Never
|
||
|
|
envFrom:
|
||
|
|
- configMapRef: {name: @@PROFILE_NAME@@}
|
||
|
|
env:
|
||
|
|
- name: REMORA_DELETION_REQUIRE
|
||
|
|
value: "1"
|
||
|
|
volumeMounts:
|
||
|
|
- {name: fixture-profile, mountPath: /run/remora-fixture, readOnly: true}
|
||
|
|
resources:
|
||
|
|
requests: {cpu: 250m, memory: 512Mi}
|
||
|
|
limits: {cpu: "2", memory: 2Gi}
|
||
|
|
volumes:
|
||
|
|
- name: fixture-profile
|
||
|
|
configMap:
|
||
|
|
name: @@PROFILE_NAME@@-file
|
||
|
|
items:
|
||
|
|
- {key: profile.env, path: profile.env}
|