【发布时间】:2023-03-31 21:23:01
【问题描述】:
我有一个带有 AKS 的 Azure 应用程序网关,我在其中创建了带有以下注释的入口对象。
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "myingress"
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/backend-path-prefix: "/path/"
appgw.ingress.kubernetes.io/health-probe-hostname: "myhost"
appgw.ingress.kubernetes.io/health-probe-port: "myport"
appgw.ingress.kubernetes.io/health-probe-path: "/path/health"
appgw.ingress.kubernetes.io/health-probe-status-codes: "200-399, 403"
appgw.ingress.kubernetes.io/health-probe-interval: "20"
appgw.ingress.kubernetes.io/health-probe-timeout: "15"
appgw.ingress.kubernetes.io/health-probe-unhealthy-threshold: "5"
spec:
rules:
- host: "myhost"
http:
paths:
- path: /something/path/*
pathType: Prefix
backend:
service:
name: "myservice"
port:
number: "8080"
但是,我没有看到此信息传递到应用网关。
-- App Gwy config -- {
-- App Gwy config -- "id": "/subscriptions/mysubscription/resourceGroups/my-rg/providers/Microsoft.Network/applicationGateways/mygateway/probes/pb-ns-myservice-8080-myingress",
-- App Gwy config -- "name": "pb-ns-myservice-8080-myingress",
-- App Gwy config -- "properties": {
-- App Gwy config -- "host": "myhost",
-- App Gwy config -- "interval": 30,
-- App Gwy config -- "match": {},
-- App Gwy config -- "minServers": 0,
-- App Gwy config -- "path": "/path/health",
-- App Gwy config -- "pickHostNameFromBackendHttpSettings": false,
-- App Gwy config -- "protocol": "Http",
-- App Gwy config -- "timeout": 30,
-- App Gwy config -- "unhealthyThreshold": 3
-- App Gwy config -- }
-- App Gwy config -- }
任何帮助将不胜感激。
【问题讨论】:
标签: kubernetes-ingress azure-aks azure-application-gateway