apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 
kind: Deployment 
metadata: 
  name: nestjs-microservices-deployment 
spec: 
  selector: 
    matchLabels: 
      app: nestjs-microservices 
  replicas: 5 # tells deployment to run 2 pods matching the template 
  template: 
    metadata: 
      labels: 
        app: nestjs-microservices 
    spec: 
      containers:
      - name: api-gateway
        image: mahathir85/api-gateway:1.0.1
        ports:
          - containerPort: 3000
      - name: order-service
        image: mahathir85/order-service:1.0.0
        ports:
          - containerPort: 3001
      - name: payment-service
        image: mahathir85/payment-service:1.0.0
        ports:
          - containerPort: 3002