Skip to content

Commit 8fd32d1

Browse files
authored
Sync #16456 Azure Load Balancer notes into Chinese (#16765)
1 parent 473195c commit 8fd32d1

File tree

1 file changed

+38
-0
lines changed
  • content/zh/docs/setup/platform-setup/azure

1 file changed

+38
-0
lines changed

content/zh/docs/setup/platform-setup/azure/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,41 @@ Azure 为 Azure Kubernetes Service (AKS) 提供了
6464
{{< text bash >}}
6565
$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
6666
{{< /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 >}}

0 commit comments

Comments
 (0)