apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    run:  vehicle-streaming-geode-sink
  name:  vehicle-streaming-geode-sink
spec:
  replicas: 1
  selector:
    matchLabels:
      name:  vehicle-streaming-geode-sink
  template:
    metadata:
      labels:
        name:  vehicle-streaming-geode-sink
    spec:
      serviceAccountName: rabbitmq-server
      automountServiceAccountToken: false
      containers:
        - env:
            - name: "JAVA_OPTS"
              value: "-Xms2g -Xmx2g -XX:+UseG1GC -XX:+PrintGCDetails -XX:MaxGCPauseMillis=10"
            - name: spring.cloud.stream.bindings.vehicleGemFireSink-in-0.consumer.concurrency
              value: "10"
            - name: rabbitmq_streaming_uris
              valueFrom:
                secretKeyRef:
                  name: vehicle-secrets
                  key: rabbitmq-stream_uris
            - name: spring.rabbitmq.host
              value: rabbitmq
            - name: rabbitmq_streaming_stream_maxLengthGb
              valueFrom:
                configMapKeyRef:
                  name: vehicle-configmap
                  key: rabbitmq_streaming_stream_maxLengthGb
            - name: spring_rabbitmq_username
              valueFrom:
                secretKeyRef:
                  name: vehicle-secrets
                  key: spring_rabbitmq_username
            - name: spring.rabbitmq.password
              valueFrom:
                secretKeyRef:
                  name: vehicle-secrets
                  key: spring_rabbitmq_password
            - name: spring.data.gemfire.pool.locators
              valueFrom:
                configMapKeyRef:
                  name: vehicle-configmap
                  key: spring.data.gemfire.pool.locators
          image: nyla/vehicle-streaming-geode-sink:0.0.6-SNAPSHOT
          name: vehicle-streaming-geode-sink
          resources:
            requests:
              memory: "3Gi"