File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
content/zh/docs/setup/platform-setup/azure Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -64,3 +64,41 @@ Azure 为 Azure Kubernetes Service (AKS) 提供了
64
64
{{< text bash >}}
65
65
$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
66
66
{{< /text >}}
67
+
68
+ ### 在 Azure 中使用 Gateway API {#using-gateway-api-with-azure}
69
+
70
+ 如果您将 Gateway API 与 AKS 一起使用,则可能还需要将以下配置添加到 ` Gateway ` 资源:
71
+
72
+ {{< text yaml >}}
73
+ infrastructure:
74
+ annotations:
75
+ service.beta.kubernetes.io/port_ <http[ s] port>_ health-probe_protocol: tcp
76
+ {{< /text >}}
77
+
78
+ 其中,` <http[s] port> ` 是 HTTP(S) 侦听器的端口号。如果您有多个 HTTP(S) 侦听器,
79
+ 则需要为每个侦听器添加注解。当 ` / ` 路径未响应 200 时,此注解是 Azure 负载均衡器运行状况检查正常运行所必需的。
80
+
81
+ 例如,如果您按照 [ Ingress Gateway] ( /zh/docs/setup/getting-started )
82
+ 示例使用 Gateway API,则需要部署以下 ` Gateway ` :
83
+
84
+ {{< text bash >}}
85
+ $ kubectl apply -f - <<EOF
86
+ apiVersion: gateway.networking.k8s.io/v1
87
+ kind: Gateway
88
+ metadata:
89
+ name: httpbin-gateway
90
+ spec:
91
+ infrastructure:
92
+ annotations:
93
+ service.beta.kubernetes.io/port_80_health-probe_protocol: tcp
94
+ gatewayClassName: istio
95
+ listeners:
96
+ - name: http
97
+ hostname: "httpbin.example.com"
98
+ port: 80
99
+ protocol: HTTP
100
+ allowedRoutes:
101
+ namespaces:
102
+ from: Same
103
+ EOF
104
+ {{< /text >}}
You can’t perform that action at this time.
0 commit comments