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.

Home Page:https://azure.github.io/application-gateway-kubernetes-ingress

Repository from Github https://github.comAzure/application-gateway-kubernetes-ingressRepository from Github https://github.comAzure/application-gateway-kubernetes-ingress

AGIC 1.7.4 provided by AKS doesn't resolve port names correctly

HujinoKun opened this issue · comments

Hello,

Describe the bug

AGIC isn't resolving ports correctly when are identified by name. The error is the following :

Warning  PortResolutionError  21m (x2 over 21m)  azure/application-gateway  Code="ErrorServiceResolvedToInvalidPort" Message="service keycloak/keycloak and service port http was resolved to an invalid service-backend port 65536, defaulting to port 80"

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  • Use AKS 1.31 and AGIC 1.7.4 provided by aks

Ingress Controller details

  • Output of kubectl -n keycloak get ingress keycloak -oyaml :
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    meta.helm.sh/release-name: keycloak
    meta.helm.sh/release-namespace: keycloak
  creationTimestamp: "2024-10-31T14:14:25Z"
  generation: 1
  labels:
    app.kubernetes.io/component: keycloak
    app.kubernetes.io/instance: keycloak
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: keycloak
    app.kubernetes.io/version: 26.0.4
    helm.sh/chart: keycloak-24.0.3
  name: keycloak
  namespace: keycloak
spec:
  ingressClassName: azure-application-gateway
  rules:
  - host: keycloak.domain
    http:
      paths:
      - backend:
          service:
            name: keycloak
            port:
              name: http
        path: /
        pathType: ImplementationSpecific
  tls:
  - hosts:
    - keycloak.domain
    secretName: keycloak.domain-tls

Hello,

Someone can help me?