Commit 781ce831 by 蒋勇

d

parent 89f1b4c7
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: customertofq
namespace: job-tasks
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: customertofq
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:188.6.2
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: tm.taskcustomer2fq
- name: TASK_PARAM
value: hello
- name: APP_ENV
valueFrom:
configMapKeyRef:
name: task-config
key: APP_ENV
- name: TASK_PORT
valueFrom:
configMapKeyRef:
name: task-config
key: TASK_PORT
- name: TASK_REDIS_DB
valueFrom:
configMapKeyRef:
name: task-config
key: FK_REDIS_DB
- name: REDIS_HOST
valueFrom:
configMapKeyRef:
name: task-config
key: FK_REDIS_HOST
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
name: task-config
key: FK_REDIS_PORT
- name: REDIS_PWD
valueFrom:
configMapKeyRef:
name: task-config
key: FK_REDIS_PWD
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