apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: microservice-app-example
  name: log-message-processor
spec:
  replicas: 1
  selector:
    matchLabels:
      service: log-message-processor
  template:
    metadata:
      labels:
        app: microservice-app-example
        service: log-message-processor
      annotations:
        df.k8-app.comp.log-message-processor/alertPolicy: "bip-interpreted"
        df.k8-app.comp.log-message-processor/lsa: "python"
    spec:
      hostAliases:
      - ip: "52.89.65.81"
        hostnames:
        - "asp.eksv21.deepfactor.io"
      containers:
      - env:
        - name: REDIS_HOST
          value: redis-queue
        - name: REDIS_PORT
          value: "6379"
        - name: REDIS_CHANNEL
          value: log_channel
        - name: ZIPKIN_URL
          value: http://zipkin:9411/api/v1/spans          
        image: deepfactor/todo-app-log-message-processor:anurag
        name: log-message-processor
        imagePullPolicy: Never
      restartPolicy: Always
