Adding corona to be also restarted

This commit is contained in:
Moritz Graf 2020-04-09 22:57:14 +02:00
parent b0576b227b
commit bab83e615a
1 changed files with 23 additions and 0 deletions

View File

@ -54,3 +54,26 @@ spec:
- name: DEPLOYMENT
value: "corona-api"
restartPolicy: Never
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: redeploy-corona
namespace: datalab
spec:
schedule: "15 1 * * *"
jobTemplate:
spec:
template:
spec:
serviceAccountName: redeploy
imagePullSecrets:
- name: "hub-moritzgraf-de"
containers:
- name: redeploy-corona
image: hub.moritzgraf.de:5000/redeploy:latest
env:
- name: DEPLOYMENT
value: "corona"
restartPolicy: Never