# API Gateway for Routing traffic to
# respective Microservices
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: sigma-gw-ingress
  namespace: sigma
spec:
  # Add TLS 
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
          # UI Service
           name: ws-service
           port:
             number: 80
      - path: /tomcat8
        pathType: Prefix
        backend:
          service:
          # Service 1: Product Service
           name: tc8-service
           port:
             number: 80
      - path: /tomcat9
        pathType: Prefix
        backend:
          service:
          # Service 2: Shopping Cart Service
           name: tc9-service
           port:
             number: 80
      - path: /tomcat10
        pathType: Prefix
        backend:
          service:
          # Service 3: Order Service
           name: tc10-service
           port:
             number: 80
