apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    run:  stream-account-generator-source
  name:  stream-account-generator-source
spec:
  replicas: 1
  selector:
    matchLabels:
      name:  stream-account-generator-source
  template:
    metadata:
      labels:
        name:  stream-account-generator-source
    spec:
      containers:
        - env:
            - name: spring.profiles.active
              value: stream
            - name: gemfire.region.name
              value: AccountStream
            - name: spring.rabbitmq.host
              value: rabbitmq
            - name: spring_rabbitmq_username
              valueFrom:
                secretKeyRef:
                  name: rabbitmq-default-user
                  key: username
            - name: spring.rabbitmq.password
              valueFrom:
                secretKeyRef:
                  name: rabbitmq-default-user
                  key: password
          image: cloudnativedata/stream-account-generator-source:0.0.1-SNAPSHOT
          name: stream-account-generator-source
