From cb659028195ee47c19adebb977fe68cfa824b80a Mon Sep 17 00:00:00 2001 From: otto <965391514@qq.com> Date: Sun, 7 Apr 2024 11:19:57 +0800 Subject: [PATCH] up --- hotspot-clear-job-master.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hotspot-clear-job-master.yaml diff --git a/hotspot-clear-job-master.yaml b/hotspot-clear-job-master.yaml new file mode 100644 index 0000000..a8fd79b --- /dev/null +++ b/hotspot-clear-job-master.yaml @@ -0,0 +1,22 @@ +apiVersion: batch/v1beta1 +kind: CronJob +metadata: + name: hotspot-clear-job + namespace: master +spec: +# schedule: "* 10 * * *" # 10分钟 + schedule: "0 * * * *" # 一小时 + jobTemplate: + spec: + template: + spec: + containers: + - name: hotspot-clear + image: 192.168.1.131:8888/job/dev/hotspot-clear:36f154020271a29a65ed74a54732bb2c1d82281d + env: + - name: JM_ENVIRONMENT + value: master + imagePullPolicy: IfNotPresent + restartPolicy: OnFailure + imagePullSecrets: + - name: local-harbor \ No newline at end of file