apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
#    kubectl.kubernetes.io/last-applied-configuration: |
#      {"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{"kubernetes.io/ingress.class":"nginx","nginx.ingress.kubernetes.io/ssl-redirect":"false","nginx.ingress.kubernetes.io/use-regex":"true"},"name":"api-ingress","namespace":"api"},"spec":{"rules":[{"http":{"paths":[{"backend":{"service":{"name":"poi","port":{"number":80}}},"path":"/api/poi","pathType":"Prefix"},{"backend":{"service":{"name":"trips","port":{"number":80}}},"path":"/api/trips","pathType":"Prefix"},{"backend":{"service":{"name":"userprofile","port":{"number":80}}},"path":"/api/user","pathType":"Prefix"},{"backend":{"service":{"name":"userjava","port":{"number":80}}},"path":"/api/user-java","pathType":"Prefix"}]}}]}}
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/use-regex: "true"
#  creationTimestamp: "2021-09-29T12:34:26Z"
#  generation: 1
  name: api-ingress
  namespace: api
#  resourceVersion: "269106"
#  uid: a86d53c7-7c0e-4e4b-b401-dfc045a4d884
spec:
  rules:
    - http:
        paths:
          - backend:
              service:
                name: poi
                port:
                  number: 80
            path: /api/poi
            pathType: Prefix
          - backend:
              service:
                name: trips
                port:
                  number: 80
            path: /api/trips
            pathType: Prefix
          - backend:
              service:
                name: userprofile
                port:
                  number: 80
            path: /api/user
            pathType: Prefix
          - backend:
              service:
                name: userjava
                port:
                  number: 80
            path: /api/user-java
            pathType: Prefix
#status:
#  loadBalancer:
#    ingress:
#      - ip: 51.137.176.23
