Files
polaris/test/webhook_cases/passing_test.cronjob.yaml
2019-09-18 10:12:36 -04:00

24 lines
560 B
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: test
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: test
image: busybox:uclibc
args:
- whoami
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
- ALL
restartPolicy: OnFailure