apiVersion: batch/v1
kind: Job
metadata:
  labels:
    app: kafka-consumer-client
    user-test-app: kafka-clients
  name: kafka-consumer-client
spec:
  backoffLimit: 0
  completions: 1
  parallelism: 1
  template:
    metadata:
      labels:
        app: kafka-consumer-client
        job-name: kafka-consumer-client
        user-test-app: kafka-clients
      name: kafka-consumer-client
      namespace: my-project
    spec:
      containers:
        - env:
            - name: BOOTSTRAP_SERVERS
              value: my-cluster-kafka-bootstrap:9092
            - name: TOPIC
              value: my-topic
            - name: MESSAGE_COUNT
              value: "100"
            - name: GROUP_ID
              value: my-group
            - name: LOG_LEVEL
              value: DEBUG
          image: quay.io/strimzi-test-clients/test-client-kafka-consumer:latest-kafka-3.0.0
          imagePullPolicy: IfNotPresent
          name: kafka-consumer-client
      restartPolicy: "Never"