apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: aws-node-decommissioner
  namespace: "kube-system"
  labels:
    application: aws-node-decommissioner
spec:
  schedule: "*/5 * * * *"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 1
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      activeDeadlineSeconds: 300
      backoffLimit: 1
      template:
        metadata:
          labels:
            application: aws-node-decommissioner
          annotations:
            logging/destination: "{{.Cluster.ConfigItems.log_destination_infra}}"
        spec:
          serviceAccountName: aws-node-decommissioner
          restartPolicy: Never
          containers:
          - name: aws-node-decommissioner
            image: registry.opensource.zalan.do/teapot/aws-node-decommissioner:master-9e467a36
            args:
              - --debug
            resources:
              limits:
                cpu: 100m
                memory: 100Mi
              requests:
                cpu: 100m
                memory: 100Mi

apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: aws-node-decommissioner
  namespace: "kube-system"
  labels:
    application: kubernetes
    component: aws-node-decommissioner
spec:
  schedule: "*/5 * * * *"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 1
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      activeDeadlineSeconds: 300
      backoffLimit: 1
      template:
        metadata:
          labels:
            application: kubernetes
            component: aws-node-decommissioner
          annotations:
            logging/destination: "{{.Cluster.ConfigItems.log_destination_infra}}"
        spec:
          serviceAccountName: aws-node-decommissioner
          restartPolicy: Never
          containers:
          - name: aws-node-decommissioner
            image: registry.opensource.zalan.do/teapot/aws-node-decommissioner:master-9e467a36
            args:
              - --debug
            resources:
              limits:
                cpu: 100m
                memory: 100Mi
              requests:
                cpu: 100m
                memory: 100Mi

Move aws-node-decommissioner to the kubernetes application
Move aws-node-decommissioner to the kubernetes application

Signed-off-by: Mikkel Oscar Lyderik Larsen <81479e3d2d1e6902cb05f938ea9a734a092b1af3@zalando.de>
