Skip to content

Commit

Permalink
Convert job in a cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbcd committed Nov 21, 2024
1 parent 1cedcee commit ed80420
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions eks-anywhere-common/Testers/Sysdig/sysdig-test-job.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
apiVersion: batch/v1
kind: Job
kind: CronJob
metadata:
name: sysdig-agent-test
namespace: sysdig
spec:
schedule: "0 1 * * *"
backoffLimit: 1
template:
jobTemplate:
spec:
containers:
- name: job
image: 'alpine/k8s:1.26.2'
imagePullPolicy: Always
command:
- /bin/test.sh
volumeMounts:
- name: sysdig-test-configmap-volume
mountPath: /bin/test.sh
readOnly: true
subPath: test.sh
volumes:
- name: sysdig-test-configmap-volume
configMap:
defaultMode: 0700
name: sysdig-test-configmap
restartPolicy: Never
template:
activeDeadlineSeconds: 1000
containers:
- name: job
image: 'alpine/k8s:1.26.2'
imagePullPolicy: Always
command:
- /bin/test.sh
volumeMounts:
- name: sysdig-test-configmap-volume
mountPath: /bin/test.sh
readOnly: true
subPath: test.sh
volumes:
- name: sysdig-test-configmap-volume
configMap:
defaultMode: 0700
name: sysdig-test-configmap
restartPolicy: Never

0 comments on commit ed80420

Please sign in to comment.