---
apiVersion: v1
kind: ReplicationController
metadata:
  name: centosci-tasks
spec:
  replicas: 1
  selector:
    infra: cockpit-tasks
  template:
    metadata:
      labels:
        infra: cockpit-tasks
    spec:
      containers:
      - name: cockpit-tasks
        image: docker.io/cockpit/tasks
        env:
        - name: TEST_JOBS
          value: '4'
        - name: TEST_PUBLISH
          value: sink-local
        - name: AMQP_SERVER
          value: 'amqp.cockpit.svc.cluster.local:5671'
        volumeMounts:
        - name: secrets
          mountPath: "/secrets"
          readOnly: true
        - name: webhook-secrets
          mountPath: /run/secrets/webhook
          readOnly: true
        - name: cache
          mountPath: "/cache"
        - name: images
          mountPath: "/cache/images"
        - name: shm
          mountPath: "/dev/shm"
        - name: tmp
          mountPath: "/tmp"
        resources:
          limits:
            memory: 16G
      volumes:
      - name: secrets
        secret:
          secretName: cockpit-tasks-secrets
      - name: webhook-secrets
        secret:
          secretName: webhook-secrets
      - name: cache
        emptyDir: {}
      - name: images
        persistentVolumeClaim:
          claimName: cockpit-images
      - name: shm
        emptyDir:
          medium: Memory
      - name: tmp
        emptyDir:
          medium: Memory
          sizeLimit: 10G
      nodeSelector:
        oci_kvm_hook: allowed

---
apiVersion: v1
kind: ReplicationController
metadata:
  name: centosci-tasks
spec:
  replicas: 1
  selector:
    infra: cockpit-tasks
  template:
    metadata:
      labels:
        infra: cockpit-tasks
    spec:
      containers:
      - name: cockpit-tasks
        image: docker.io/cockpit/tasks
        env:
        - name: TEST_JOBS
          value: '4'
        - name: TEST_PUBLISH
          value: sink-local
        - name: AMQP_SERVER
          value: 'amqp.cockpit.svc.cluster.local:5671'
        - name: RUN_STATISTICS_QUEUE
          value: '1'
        volumeMounts:
        - name: secrets
          mountPath: "/secrets"
          readOnly: true
        - name: webhook-secrets
          mountPath: /run/secrets/webhook
          readOnly: true
        - name: cache
          mountPath: "/cache"
        - name: images
          mountPath: "/cache/images"
        - name: shm
          mountPath: "/dev/shm"
        - name: tmp
          mountPath: "/tmp"
        resources:
          limits:
            memory: 16G
      volumes:
      - name: secrets
        secret:
          secretName: cockpit-tasks-secrets
      - name: webhook-secrets
        secret:
          secretName: webhook-secrets
      - name: cache
        emptyDir: {}
      - name: images
        persistentVolumeClaim:
          claimName: cockpit-images
      - name: shm
        emptyDir:
          medium: Memory
      - name: tmp
        emptyDir:
          medium: Memory
          sizeLimit: 10G
      nodeSelector:
        oci_kvm_hook: allowed

Introduce 'RUN_STATISTICS_QUEUE' option for CentosCI
task: Introduce 'RUN_STATISTICS_QUEUE' option for CentosCI

This option enables task containers to pick events from 'statistics'
queue.
