apiVersion: batch/v1
kind: CronJob
metadata:
  name: machines-endpoints-cronjob
  labels:
    cronjob: machines-endpoints-cronjob
spec:
  schedule: "*/1 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
            - name: machines-endpoints
              image: quay.io/cybozu/machines-endpoints:0.4.10
              args:
                - --monitoring-endpoints
              imagePullPolicy: IfNotPresent
          hostNetwork: true
          restartPolicy: OnFailure
          serviceAccountName: machines-endpoints
  startingDeadlineSeconds: 30
