apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: microservice-app-example
    service: log-message-processor
  name: log-message-processor
spec:
  selector:
    matchLabels:
      service: log-message-processor
  replicas: 1
  template:
    metadata:
      labels:
        service: log-message-processor
    spec:
      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: log-message-processor
        name: log-message-processor
        imagePullPolicy: IfNotPresent
      restartPolicy: Always
