kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
  name: assisted-installer
  namespace: REPLACE_NAMESPACE
  annotations:
    haproxy.router.openshift.io/timeout: 120s
    ingress.kubernetes.io/ssl-redirect: "false" # for haproxy
    nginx.ingress.kubernetes.io/ssl-redirect: "false" # for nginx
spec:
  tls:
    - hosts:
        - REPLACE_HOSTNAME
      secretName: assisted-service-tls
  rules:
    - host: REPLACE_HOSTNAME
      http:
        paths:
          - path: "/api"
            pathType: Prefix
            backend:
              service:
                name: assisted-service
                port:
                  number: 8090
          - path: "/ready"
            pathType: Prefix
            backend:
              service:
                name: assisted-service
                port:
                  number: 8090
          - path: "/images"
            pathType: Prefix
            backend:
              service:
                name: assisted-image-service
                port:
                  number: 8080
          - path: "/health"
            pathType: Prefix
            backend:
              service:
                name: assisted-image-service
                port:
                  number: 8080
