mirror of https://github.com/istio/istio.io.git
928 B
928 B
{{< tip >}} {{< boilerplate gateway-api-future >}} {{< boilerplate gateway-api-choose >}} {{< /tip >}}
{{< warning >}} 本文档使用实验性的 Gateway API 功能配置 Istio,在使用 Gateway API 指令之前,请确保:
-
安装 实验版本 的 Gateway API CRD:
{{< text syntax=bash snip_id=install_experimental_crds >}} $ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref={{< k8s_gateway_api_version >}}" | kubectl apply -f - {{< /text >}}
-
安装 Istio 时,通过将
PILOT_ENABLE_ALPHA_GATEWAY_API
环境变量设置为true
使 Istio 读取 Alpha 版本的 Gateway API 资源:{{< text syntax=bash snip_id=enable_alpha_crds >}} $ istioctl install --set values.pilot.env.PILOT_ENABLE_ALPHA_GATEWAY_API=true --set profile=minimal -y {{< /text >}}
{{< /warning >}}