apiVersion: apps/v1
kind: Deployment
metadata:
  name: lhconsumer-uat
  namespace: lh1
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://10.104.185.225:9200"
        - name: ELASTICSEARCH_INDEX
          value: "starmfv2-uat"
        #- 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:9092"
        - name: KAFKA_TOPIC
          value: "log_topic"
      nodeSelector:
        name: worker

