apiVersion: apps/v1
kind: Deployment
metadata:
  name: shoppingcartservice
  labels:
    run: shoppingcartservice
spec:
  replicas: 1
  selector:
    matchLabels:
      name: shoppingcartservice
  template:
    metadata:
      labels:
        name: shoppingcartservice
        run: shoppingcartservice
    spec:
      hostname: shoppingcartservice
      containers:
      - name: shoppingcartservice
        image: hamzaak/shoppingcartservice:latest
        ports:
        - containerPort: 9003
          hostPort: 9003