apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: team1-api-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
  rules:
  - http:
      paths:
      - path: /api/user
        pathType: Prefix
        backend:
          service:
            name: userprofile
            port:
              number: 80
      - path: /api/user-java
        pathType: Prefix
        backend:
          service:
            name: userjava
            port:
              number: 80
      - path: /api/trips
        pathType: Prefix
        backend:
          service:
            name: tripsapp
            port:
              number: 80
      - path: /api/poi
        pathType: Prefix
        backend:
          service:
            name: poiapp
            port:
              number: 80