Commit cfd75f46 authored by Yuri Konotopov's avatar Yuri Konotopov

openshift: added cron jobs

parent 6022c725
......@@ -427,6 +427,58 @@
}
}
}
},
{
"kind": "CronJob",
"apiVersion": "batch/v1beta1",
"metadata": {
"name": "job-update-popularity"
},
"spec": {
"schedule": "0 0 * * *",
"jobTemplate": {
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "update-popularity",
"image": "${NAME}:latest",
"command": ["/extensions-web/app/bin/sweettooth-cron-update"]
}
],
"restartPolicy": "Never"
}
}
}
}
}
},
{
"kind": "CronJob",
"apiVersion": "batch/v1beta1",
"metadata": {
"name": "job-update-software"
},
"spec": {
"schedule": "10 0 * * *",
"jobTemplate": {
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "update-software",
"image": "${NAME}:latest",
"command": ["/extensions-web/app/bin/sweettooth-cron-software"]
}
],
"restartPolicy": "Never"
}
}
}
}
}
}
],
"parameters": [
......
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