Commit ac3b0c19 by 蒋勇

Merge branch 'master' of gitlab.gongsibao.com:jiangyong/k8syml

parents fc6b4a10 6def7992
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
<component name="JavaScriptSettings"> <component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" /> <option name="languageLevel" value="ES6" />
</component> </component>
<component name="WebPackConfiguration">
<option name="mode" value="DISABLED" />
</component>
</project> </project>
\ No newline at end of file
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: fqtm2es
namespace: job-tasks
spec:
schedule: "0 */2 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: fqtm2es
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:188.20.1
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: syncfq.fqtm2es
- 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
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: tmmonitormsg
namespace: job-tasks
spec:
schedule: "0 9 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: tmmonitormsg
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:188.21.2
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: tm.tmmonitormsg
- 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
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: tmmonitorrisk
namespace: job-tasks
spec:
schedule: "*/10 * * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: tmmonitorrisk
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:188.22.2
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
- name: TASK_NAME
value: tm.tmmonitorrisk
- 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