apiVersion: batch/v1
kind: CronJob
metadata:
  name: extraire-info-hmi
spec:
  schedule: "0 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: extraire-info-hmi
            image: erabliereapi/extraireinfohmi:latest
            imagePullPolicy: Always
            command:
            - /bin/sh
            - -c
            - python3 extraireInfoHmi.py <hmi-web-address> <rest-api-post-address> <erabliere-guid-id>
            volumeMounts:
            - name: extraire-info-hmi-config
              mountPath: /home/ubuntu/.erabliereapi
          restartPolicy: Never
          volumes:
          - name: extraire-info-hmi-config
            secret:
              secretName: cronjob-authentification-secret
