apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: <ingress-id>
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
    kubernetes.io/ingress.global-static-ip-name: <ip-name>  # name of the static ip reservation
spec:
  rules:
  - http:
      paths:
      - path: /predict  # this path is used by OnlinePredict and LazyModelServer when serving your model
        pathType: ImplementationSpecific
        backend:
          service:
            name: nha-isle-router
            port:
              number: 80
      - path: /update  # this path is used by LazyModelServer when serving your model
        pathType: ImplementationSpecific
        backend:
          service:
            name: nha-isle-router
            port:
              number: 80
      - path: /artifactory/*  # this path is only required if you want to use Artifactory through an ingress
        pathType: Prefix
        backend:
          service:
            name: nha-isle-artif
            port:
              number: 8081