apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: service-balance
spec:
  rules:
  - host: projectpath.org
    http:
      paths:
      - pathType: Prefix
        path: "/api"
        backend:
          service:
            name: static-api-service
            port:
              number: 3000
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: static-front-service
            port:
              number: 3000
  - http:
      paths:
      - pathType: Prefix
        path: "/api"
        backend:
          service:
            name: static-api-service
            port:
              number: 3000
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: static-front-service
            port:
              number: 3000