kubernetes cronjob自定义值时无法正常工作

问题描述 投票:0回答:1

我正在使用牧场主2.3.3当我使用@hourly和@daily这样的时间表值配置cronjob时,效果很好。但是当我使用“ 6 1 * * *”之类的值对其进行配置时,将无法使用。

OS时间在所有群集节点之间同步

我的配置文件

apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: samplename
  namespace: samplenamespace
spec:
  schedule: "6 1 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: samplename
              image: myimageaddress:1.0
          restartPolicy: OnFailure
kubernetes cron rancher
1个回答
1
投票

我找到了根本原因调度程序容器具有不同的时区,因此它会延迟几个小时运行

© www.soinside.com 2019 - 2024. All rights reserved.