配置
配置
spec:
schedule: "0 9 * * 1-5"
timeZone: "Asia/Shanghai" # 工作日 09:00(上海时间)验证
验证
kubectl get cronjob backup -o jsonpath='{.spec.timeZone}'
kubectl describe cronjob backup | grep -i -A2 schedule
kubectl get events -A | grep -i cronjob | tail -10不设 timeZone 时使用 kube-controller-manager 的本地时区(常见为 UTC),部署前核对现有集群行为。