Azure / application-gateway-kubernetes-ingress

This is an ingress controller that can be run on Azure Kubernetes Service (AKS) to allow an Azure Application Gateway to act as the ingress for an AKS cluster.
https://azure.github.io/application-gateway-kubernetes-ingress
MIT License
677 stars 420 forks source link

Path Based Routing is not working Properly #1547

Open SujithJulakanti2002 opened 1 year ago

SujithJulakanti2002 commented 1 year ago

Describe the bug When i use pathType: ImplementationSpecific, it is being routed to one of the path I mentioned there(provided I don't give any paths explicitly), no matter what path i give to the host & when i use the pathtype: Prefix, it is always redirecting to alerta and not routing to grafana, even though i gave correct path

*To Reproduce** Steps to reproduce the behavior:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: azure/application-gateway
    appgw.ingress.kubernetes.io/backend-path-prefix: /
  namespace: monitoring
  name: guidebook
spec:
  defaultBackend:
    service:
      name: alerta-alerta-web
      port:
        number: 80
  rules:
    - host: genix-health-hub.westeurope.cloudapp.azure.com
      http:
        paths:
        - backend:
            service:
              name: alerta-alerta-web
              port:
                number: 80
          path: /alerta*
          pathType: Prefix
        - backend:
            service:
              name: prometheus-monitoring-grafana
              port:
                number: 80
          path: /grafana*
          pathType: Prefix

Ingress Controller details

ntsh999 commented 5 months ago

were you able to fix this? I am also facing this issue.