apiVersion: batch/v1beta1 kind: CronJob metadata: name: hotspot-clear-job namespace: dev spec: # schedule: "* 10 * * *" # 10分钟 schedule: "0 * * * *" # 一小时 jobTemplate: spec: template: spec: containers: - name: hotspot-clear image: 192.168.1.131:8888/job/dev/hotspot-clear:3d8e798cdc1839ed09dcdc5349ed8684dc5d1115 env: - name: JM_ENVIRONMENT value: dev imagePullPolicy: IfNotPresent restartPolicy: OnFailure imagePullSecrets: - name: local-harbor