deletecronjob.yml 901 Bytes
Newer Older
Ľuboslav Pivarč's avatar
init  
Ľuboslav Pivarč committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  generateName: cbio-delete
  namespace: cbio-on-demand
  labels:
    app: cbio
    type: ondemand
    # generated by API by user id from request
    #user: Luboslav
    # generated by API unique for user
    #instance: "1"
  annotations:
    maintainer: Luboslav Pivarc <456130@muni.cz>
spec:
  # generated by API
  #schedule: "*/1 * * * *"
  startingDeadlineSeconds: 21600
  jobTemplate:
    spec:
      completions: 1
      template:
          spec:
              containers:
              - name: deletetion
                image: lpivo/job:tr1
                env:
                #  generated by API by usr id from request
                #- name: USER
                #  value: string
                # generated by API unique for user
                #- name: INSTANCE
                #  value: codpgfjr
              restartPolicy: OnFailure