apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: ipfs-counter
spec:
  schedule: "*/20 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: ipfs-counter
            image: gcr.io/resnetlab-p2p-observatory/ipfs-counter:latest
            imagePullPolicy: Always
            args: ["--dataset", "cloud_crawler_lanzafame", "--table", "uscentral", "--parallelism", "300", "--crawltime", "5000s", "--timeout", "30s", "--seed-table", "uscentral_trial"]
            env:
            - name: GOOGLE_APPLICATION_PROJECT_ID
              value: "resnetlab-p2p-observatory"
            - name: GOLOG_LOG_FMT
              value: "json"
            - name: GOLOG_LOG_LABELS
              value: "app=ipfs-counter"
          restartPolicy: Never
          serviceAccount: k8s-autopilot-svc-acct
          serviceAccountName: k8s-autopilot-svc-acct
