1.2.2.4.8. Kubernetes Gateway API
Kubernetes Gateway API 是一个技术预览功能,默认为禁用。
要启用这个功能,请在 ServiceMeshControlPlane 中为 Istiod 容器设置以下环境变量:
spec:
runtime:
components:
pilot:
container:
env:
PILOT_ENABLE_GATEWAY_API: true
PILOT_ENABLE_GATEWAY_API_STATUS: true
# and optionally, for the deployment controller
PILOT_ENABLE_GATEWAY_API_DEPLOYMENT_CONTROLLER: true
使用 SameNamespace 或 All 设置在 Gateway API 监听器上限制路由附加功能可能。Istio 会忽略 listeners.allowedRoutes.namespaces 中标签选择器的使用,并恢复到默认行为 (SameNamespace)。