简体   繁体   English

Azure 应用程序网关入口 Controller 未到达服务(CLusterIP)

[英]Azure Application Gateway Ingress Controller not reaching Service(CLusterIP)

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.我可以使用 nginx 入口到达 clusterIP 但我无法使用 Azure 应用程序网关入口到达相同的服务。 Bellow annotation is not helping me波纹管注释对我没有帮助

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

Any Idea?任何想法?

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 .您可以在此处查看完整列表和示例。

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 在此处查看所有 AGIC 注释

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 应用程序网关多站点侦听器通过应用程序网关入口 Controller - Azure Application Gateway Multisite listener through Application Gateway Ingress Controller 用于Azure Kubernetes Service 502错误网关的Nginx入口控制器 - nginx-ingress controller for Azure Kubernetes Service 502 Bad Gateway Ingress 不适用于 AKS 的应用程序网关入口 controller (AGIC) 附加组件 - Ingress is not working for application gateway ingress controller (AGIC) add-on of AKS 具有外部和内部路径的kubernetes azure应用程序网关入口控制器 - kubernetes azure app gateway ingress controller with external and internal pathing 带有Service Fabric的Azure应用程序网关 - Azure Application Gateway with Service Fabric 使用App Service的Azure应用程序网关 - Azure Application Gateway with App Service Terraform 删除由应用程序网关入口控制器 (AGIC) 创建的配置/资源 - Terraform Removes Configurations/Resources Created by the Application Gateway Ingress Controller (AGIC) 使用应用程序网关入口控制器时可以配置 SSL 卸载吗? - Can SSL offloading be configured when using the Application Gateway Ingress Controller? AKS 1.22.2 群集入口配置不适用于 Azure 应用程序网关 - AKS 1.22.2 cluster Ingress configuration not working with Azure Application gateway Azure 应用程序服务在 Azure 应用程序网关后面 - Azure App Service behind Azure Application Gateway
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM