apiVersion: apps/v1
kind: Deployment
metadata:
  name: paymentservice
  labels:
    app: paymentservice
spec:
  replicas: 3
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
  selector:
    matchLabels:
      app: paymentservice
  template:
    metadata:
      labels:
        app: paymentservice
    spec:
      containers:
      - name: server
        image: 2kw92/paymentservice:0.0.2
        env:
          - name: PRODUCT_CATALOG_SERVICE_ADDR
            value: "192.168.1.1"
          - name: CURRENCY_SERVICE_ADDR
            value: "192.168.1.2"
          - name: CART_SERVICE_ADDR
            value: "192.168.1.3"
          - name: RECOMMENDATION_SERVICE_ADDR
            value: "192.168.1.4"
          - name: CHECKOUT_SERVICE_ADDR
            value: "192.168.1.5"
          - name: SHIPPING_SERVICE_ADDR
            value: "192.168.1.6"
          - name: AD_SERVICE_ADDR
            value: "192.168.1.7"

