老师,你好,CronJob被废弃了?
我安装的是 1.23.3版本的k8s,还是可以用 CronJob,appVersion是 batch/v1,比如
apiVersion: batch/v1
kind: CronJob
metadata:
name: test-cronjob
spec:
schedule: "0 0 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: test
image: busybox
args:
- /bin/sh
- -c
- echo "hello world"
restartPolicy: OnFailure