apiVersion: apps/v1
kind: Deployment
metadata:
  name: strimzi-cluster-operator
  labels:
    app: strimzi
spec:
  replicas: 1
  selector:
    matchLabels:
      name: strimzi-cluster-operator
      strimzi.io/kind: cluster-operator
  template:
    metadata:
      labels:
        name: strimzi-cluster-operator
        strimzi.io/kind: cluster-operator
        com.company: Red_Hat
        rht.prod_name: Red_Hat_Integration
        rht.prod_ver: "2021.Q4"
        rht.comp: AMQ_Streams
        rht.comp_ver: "2.0"
        rht.subcomp: cluster-operator
        rht.comp_t: infrastructure
    spec:
      serviceAccountName: strimzi-cluster-operator
      volumes:
        - name: strimzi-tmp
          emptyDir:
            medium: Memory
        - name: co-config-volume
          configMap:
            name: strimzi-cluster-operator
      containers:
        - name: strimzi-cluster-operator
          image: registry.redhat.io/amq7/amq-streams-rhel8-operator:2.0.0
          ports:
            - containerPort: 8080
              name: http
          args:
            - /opt/strimzi/bin/cluster_operator_run.sh
          volumeMounts:
            - name: strimzi-tmp
              mountPath: /tmp
            - name: co-config-volume
              mountPath: /opt/strimzi/custom-config/
          env:
            - name: STRIMZI_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: STRIMZI_FULL_RECONCILIATION_INTERVAL_MS
              value: "120000"
            - name: STRIMZI_OPERATION_TIMEOUT_MS
              value: "300000"
            - name: STRIMZI_DEFAULT_TLS_SIDECAR_ENTITY_OPERATOR_IMAGE
              value: registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_DEFAULT_KAFKA_EXPORTER_IMAGE
              value: registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_DEFAULT_CRUISE_CONTROL_IMAGE
              value: registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_DEFAULT_TLS_SIDECAR_CRUISE_CONTROL_IMAGE
              value: registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_KAFKA_IMAGES
              value: |
                2.8.0=registry.redhat.io/amq7/amq-streams-kafka-28-rhel8:2.0.0
                3.0.0=registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_KAFKA_CONNECT_IMAGES
              value: |
                2.8.0=registry.redhat.io/amq7/amq-streams-kafka-28-rhel8:2.0.0
                3.0.0=registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_KAFKA_CONNECT_S2I_IMAGES
              value: |
                2.8.0=registry.redhat.io/amq7/amq-streams-kafka-28-rhel8:2.0.0
                3.0.0=registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_KAFKA_MIRROR_MAKER_IMAGES
              value: |
                2.8.0=registry.redhat.io/amq7/amq-streams-kafka-28-rhel8:2.0.0
                3.0.0=registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_KAFKA_MIRROR_MAKER_2_IMAGES
              value: |
                2.8.0=registry.redhat.io/amq7/amq-streams-kafka-28-rhel8:2.0.0
                3.0.0=registry.redhat.io/amq7/amq-streams-kafka-30-rhel8:2.0.0
            - name: STRIMZI_DEFAULT_TOPIC_OPERATOR_IMAGE
              value: registry.redhat.io/amq7/amq-streams-rhel8-operator:2.0.0
            - name: STRIMZI_DEFAULT_USER_OPERATOR_IMAGE
              value: registry.redhat.io/amq7/amq-streams-rhel8-operator:2.0.0
            - name: STRIMZI_DEFAULT_KAFKA_INIT_IMAGE
              value: registry.redhat.io/amq7/amq-streams-rhel8-operator:2.0.0
            - name: STRIMZI_DEFAULT_KAFKA_BRIDGE_IMAGE
              value: registry.redhat.io/amq7/amq-streams-bridge-rhel8:2.0.0
            - name: STRIMZI_OPERATOR_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: STRIMZI_FEATURE_GATES
              value: ""
            - name: STRIMZI_CUSTOM_KAFKA_BRIDGE_SERVICE_LABELS
              value: |
                discovery.3scale.net=true
            - name: STRIMZI_CUSTOM_KAFKA_BRIDGE_SERVICE_ANNOTATIONS
              value: |
                discovery.3scale.net/scheme=http
                discovery.3scale.net/port=8080
                discovery.3scale.net/path=/
                discovery.3scale.net/description-path=/openapi
            - name: STRIMZI_CUSTOM_KAFKA_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-broker
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_KAFKA_CONNECT_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-connect
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_KAFKA_CONNECT_BUILD_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-connect-build
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_ZOOKEEPER_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=zookeeper
                rht.comp_t=infrastructure
            - name: STRIMZI_CUSTOM_ENTITY_OPERATOR_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=entity-operator
                rht.comp_t=infrastructure
            - name: STRIMZI_CUSTOM_KAFKA_MIRROR_MAKER2_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp= AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-mirror-maker2
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_KAFKA_MIRROR_MAKER_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-mirror-maker
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_CRUISE_CONTROL_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=cruise-control
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_KAFKA_BRIDGE_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-bridge
                rht.comp_t=application
            - name: STRIMZI_CUSTOM_KAFKA_EXPORTER_LABELS
              value: |
                com.company=Red_Hat
                rht.prod_name=Red_Hat_Integration
                rht.prod_ver=2021.Q4
                rht.comp=AMQ_Streams
                rht.comp_ver=2.0
                rht.subcomp=kafka-exporter
                rht.comp_t=application
          livenessProbe:
            httpGet:
              path: /healthy
              port: http
            initialDelaySeconds: 10
            periodSeconds: 30
          readinessProbe:
            httpGet:
              path: /ready
              port: http
            initialDelaySeconds: 10
            periodSeconds: 30
          resources:
            limits:
              cpu: 1000m
              memory: 384Mi
            requests:
              cpu: 200m
              memory: 384Mi
  strategy:
    type: Recreate
