apiVersion: batch/v1beta1
kind: CronJob
metadata:
  namespace: cortijo
  name: set-it
spec:
  schedule: "*/5 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: route53
            image: enriqueramosmunoz/setip:rasp
            volumeMounts:
            - name: config
              mountPath: /root/node/set-ip-config.sh
              subPath: set-ip-config.sh
          restartPolicy: Never
          volumes:
          - name: config
            configMap:
              name: set-ip-config
