otto
2 years ago
2 changed files with 16 additions and 12 deletions
@ -1,16 +1,20 @@ |
|||||||
apiVersion: batch/v1 |
apiVersion: batch/v1beta1 |
||||||
kind: Job |
kind: CronJob |
||||||
metadata: |
metadata: |
||||||
name: room-hot-compute-job |
name: room-hot-compute-job |
||||||
namespace: dev |
namespace: dev |
||||||
spec: |
spec: |
||||||
ttlSecondsAfterFinished: 10 |
schedule: "*/1 * * * *" |
||||||
activeDeadlineSeconds: 10 |
jobTemplate: |
||||||
|
spec: |
||||||
template: |
template: |
||||||
spec: |
spec: |
||||||
containers: |
containers: |
||||||
- name: room-hot-compute-job |
- name: room-hot-compute-job |
||||||
image: registry.internal.jumaiyx.cn/job/room-hot-compute:v1.0.0 |
image: registry.internal.jumaiyx.cn/job/room-hot-compute:v1.0.0 |
||||||
restartPolicy: Never |
imagePullPolicy: IfNotPresent |
||||||
|
command: |
||||||
|
- ./server |
||||||
|
restartPolicy: OnFailure |
||||||
imagePullSecrets: |
imagePullSecrets: |
||||||
- name: registry-harbor |
- name: registry-harbor |
Loading…
Reference in new issue