apiVersion: apps/v1
kind: Deployment
metadata:
  name: lhconsumer-dev
  namespace: kra-qa
spec:
  replicas: 1
  selector:
    matchLabels:
      app: lhconsumer
  template:
    metadata:
      labels:
        app: lhconsumer
    spec:
      containers:
      - name: lhconsumer
        image: private-repo:5000/lhconsumer:latest
        env:
        - name: ELASTICSEARCH_ADDRESSES
          value: "http://elasticsearch.logharbour.svc.cluster.local:9200"
        - name: ELASTICSEARCH_INDEX
          value: "qa-ndmlkra"
        #- name: ELASTICSEARCH_USERNAME
         # value: "elastic"
        #- name: ELASTICSEARCH_PASSWORD
         # value: "ommxdr3n5cbhU9WLH*-K"
        #- name: KAFKA_URL
         # value: "kafka-svc.svc.cluster.local:9092"
        - name: KAFKA_BROKERS
          value: "kafka-svc.kra-qa.svc.cluster.local:9092"
        - name: KAFKA_TOPIC
          value: "qa-ndmlkra"
      nodeSelector:
        name: master

