You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: CronJob
|
|
|
|
metadata:
|
|
|
|
name: hotspot-clear-job
|
|
|
|
namespace: master
|
|
|
|
spec:
|
|
|
|
schedule: "*/10 * * * *" # 10分钟
|
|
|
|
# schedule: "0 * * * *" # 一小时
|
|
|
|
successfulJobsHistoryLimit: 3
|
|
|
|
failedJobsHistoryLimit: 1
|
|
|
|
jobTemplate:
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: hotspot-clear
|
|
|
|
image: 192.168.0.19:5000/job/master/hotspot-clear:77828635aff0ab0eb0992c381e668db2f29fd979
|
|
|
|
imagePullPolicy: Always
|
|
|
|
env:
|
|
|
|
- name: JM_ENVIRONMENT
|
|
|
|
value: master
|
|
|
|
# imagePullPolicy: IfNotPresent
|
|
|
|
restartPolicy: OnFailure
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: internal-harbor
|