skip to Main Content

Here I have explained the scenario. I can reach a clusterIP using nginx ingress But I can’t reach the same service using Azure Application Gateway Ingress. Bellow annotation is not helping me

appgw.ingress.kubernetes.io/rewrite-target: /

Any Idea?

2

Answers


  1. Make sure you add below annotations to example-ingress.

    appgw.ingress.kubernetes.io/use-private-ip: "false"
    kubernetes.io/ingress.class: azure/application-gateway
    

    You can see the full list and examples here.

    Login or Signup to reply.
  2. You were using wrong annotation. I have updated your ingress with correct annotation:

    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: example-ingress
      annotations:
        kubernetes.io/ingress.class: azure/application-gateway
        appgw.ingress.kubernetes.io/backend-path-prefix: "/"
    spec:
      rules:
      - http:
          paths:
            - path: /apple/*
              pathType: Prefix
              backend:
                service:
                    name: apple-service
                    port:
                        number: 5678
    

    Checkout all the AGIC annotations here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search