apiVersion: apps/v1
kind: Deployment
metadata:
  name: paymentservice
  labels:
    app: paymentservice
spec:
  replicas: 3
  selector:
    matchLabels:
      app: paymentservice
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 3
  template:
    metadata:
      labels:
        app: paymentservice
    spec:
      containers:
        - name: payment
          image: huntex/paymentservice:v0.0.2
          env:
            - name: PRODUCT_CATALOG_SERVICE_ADDR
              value: "https://some-catalog-service"
            - name: CURRENCY_SERVICE_ADDR
              value: "https://some-currency-service"
            - name: CART_SERVICE_ADDR
              value: "https://some-cart-service"
            - name: RECOMMENDATION_SERVICE_ADDR
              value: "https://some-rec-service"
            - name: CHECKOUT_SERVICE_ADDR
              value: "https://some-checkout-service"
            - name: SHIPPING_SERVICE_ADDR
              value: "https://some-shipping-service"
            - name: AD_SERVICE_ADDR
              value: "https://some-ad-service"
