otto
9 months ago
1 changed files with 22 additions and 0 deletions
@ -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 |
Loading…
Reference in new issue