如何安排“clamdscan”每周在GKE上运行?
我可以手动触发扫描,但我无法找到如何安排它的方法?
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hello
image: busybox
args:
- /bin/sh
- -c
- date; echo "Hello, World!"
kubectl apply -f filename