apiVersion: apps/v1
kind: Deployment
metadata:
  name: order-deployment
  labels:
    app: order
spec:
  selector:
    matchLabels:
      app: order
  template:
    metadata:
      labels:
        app: order
    spec:
      containers:
        - name: order
          image: flaviogf/intensivao-microservicos-order
          env:
            - name: AMQP_URL
              value: "amqp://rabbitmq:rabbitmq@rabbitmq-service:5672"
            - name: REDIS_URL
              value: redis-service:6379
          command: ["./order"]
          args: ["-o", "checkout"]
