apiVersion: apps/v1
kind: Deployment
metadata:
  name: ms-productreview-deploy
  namespace: shoppingportal
spec:
  replicas: 1
  selector:
    matchLabels:
      zone: prod
      app: productreview-svc
  minReadySeconds: 10
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 1
  template:
    metadata:
      labels:
        name: productreview-svc
        version: v1
        release: stable
        tier: fe
        zone: prod
        managed-by: m2
        app: productreview-svc
    spec:
      containers:
        - name: ms-productreview-deploy-ctr
          image: metamagic/ms-productreview-service:1.0 
          imagePullPolicy: Always
          ports:
          - containerPort: 8080           
          env:
          - name: SPRING_PROFILES_ACTIVE
            value: "prod"        