apiVersion: batch/v1 kind: CronJob metadata: name: hotspot-clear-job namespace: master spec: schedule: "* 10 * * *" # 10分钟 # schedule: "0 * * * *" # 一小时 jobTemplate: spec: template: spec: containers: - name: hotspot-clear image: harbor.homieyy.com/job/master/hotspot-clear:02703570f06903386517338b587d431f4b7c53df env: - name: JM_ENVIRONMENT value: master imagePullPolicy: IfNotPresent restartPolicy: OnFailure imagePullSecrets: - name: internal-harbor