apiVersion: v1
kind: Pod
metadata:
  name: vehicle-generator-source
  labels:
    run: vehicle-generator-source
spec:
  containers:
    - name: vehicle-generator-source
      image: nyla/vehicle-generator-source:0.0.4-SNAPSHOT
      imagePullPolicy: Always
      env:
        - name: vehicleCount
          value: "1"
        - name: messageCount
          value: "100000"
        - name: distanceIncrements
          value: "2"
        - name: delayMs
          value: "5"
        - name: vinPrefix
          value: "E"
        - name: spring_rabbitmq_host
          value: rabbitmq
        - 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