Commit 01c6d209 by 王悦

add zhugeio

parent 1fe39c29
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: zhugeiotask
namespace: job-tasks
spec:
schedule: "0 6 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: zhugeiotask
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:188.17.1
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: zhugeio.zhugesyncdata
- 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