Commit cee9f92e by linboxuan

lin pannong

parent 3f5ec7ff
{
"kind": "CronJob",
"apiVersion": "batch/v1beta1",
"metadata": {
"name": "pangnongToken",
"namespace": "job-tasks",
"selfLink": "/apis/batch/v1beta1/namespaces/job-tasks/cronjobs/pangnongToken",
"uid": "35b99a2c-28bb-11eb-956a-00163e1666c8",
"resourceVersion": "76268371",
"creationTimestamp": "2020-11-17T09:56:49Z"
},
"spec": {
"schedule": "* * /2 * *",
"concurrencyPolicy": "Allow",
"suspend": false,
"jobTemplate": {
"metadata": {
"creationTimestamp": null
},
"spec": {
"template": {
"metadata": {
"creationTimestamp": null
},
"spec": {
"containers": [
{
"name": "pangnongToken",
"image": "registry.cn-beijing.aliyuncs.com/hantang2/imgshare:181.12.1",
"env": [
{
"name": "TZ",
"value": "Asia/Shanghai"
},
{
"name": "LANG",
"value": "zh_CN.UTF-8"
},
{
"name": "TASK_NAME",
"value": "verif.pannong"
},
{
"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"
}
}
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "OnFailure",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
}
},
"successfulJobsHistoryLimit": 3,
"failedJobsHistoryLimit": 1
},
"status": {
"lastScheduleTime": "2020-11-18T07:55:00Z"
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@ metadata:
name: pangnongToken
namespace: job-tasks
spec:
schedule: "* * 2 * *"
schedule: "* * */2 * *"
jobTemplate:
spec:
template:
......
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