1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/definitions/k8s-resource/cronjob.yaml
2020-09-15 11:20:08 -07:00

21 lines
506 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: policyreport-background-scan
spec:
schedule: "*/6 * * * *"
concurrencyPolicy : Forbid
suspend : true
successfulJobsHistoryLimit : 4
failedJobsHistoryLimit : 4
jobTemplate:
spec:
template:
spec:
containers:
- name: policyreport-background-scan
image: evalsocket/kyverno-cli:latest
args:
- report
- all
restartPolicy: OnFailure