apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    run:  retail-analytics-stream
  name:  retail-analytics-stream
spec:
  replicas: 1
  selector:
    matchLabels:
      name:  retail-analytics-stream
  template:
    metadata:
      labels:
        name:  retail-analytics-stream
    spec:
      containers:
        - env:
            - name: spring.rabbitmq.host
              value: rabbitmq
            - name: spring_rabbitmq_username
              valueFrom:
                secretKeyRef:
                  name: retail-secrets
                  key: spring_rabbitmq_username
            - name: spring.rabbitmq.password
              valueFrom:
                secretKeyRef:
                  name: retail-secrets
                  key: spring_rabbitmq_password
            - name: LOCATORS
              valueFrom:
                configMapKeyRef:
                  name: retail-configmap
                  key: spring.data.gemfire.pool.locators
          image: nyla/retail-analytics-stream:0.0.4-SNAPSHOT
          name: retail-analytics-stream
