Commit ce2e7da5 by 蒋勇

d

parent 6cb0f6fd
apiVersion: v1
kind: Namespace
metadata:
name: job-tasks
\ No newline at end of file
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: cronjob-taskdemo
namespace: job-tasks
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: hello
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:39.0.2
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: testTask
- name: TASK_PARAM
value: hello,world
---
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment