istio.io/content/zh/docs/ambient/getting-started/_index.md

2.6 KiB
Raw Permalink Blame History

title description weight aliases owner test skip_list next
入门 如何在 Ambient 模式下部署和安装 Istio。 2
/zh/docs/ops/ambient/getting-started
/zh/latest/docs/ops/ambient/getting-started
istio/wg-networking-maintainers yes true /docs/ambient/getting-started/deploy-sample-app

本指南可让您快速评估 Istio 的 {{< gloss "ambient" >}}Ambient 模式{{< /gloss >}}。 您需要一个 Kubernetes 集群才能继续。如果您没有集群, 则可以使用 kind 或任何其他受支持的 Kubernetes 平台

这些步骤要求您拥有一个{{< gloss "cluster" >}}集群{{< /gloss >}} 其中运行 Kubernetes 受支持的版本 {{< supported_kubernetes_versions >}})。

下载 Istio CLI

Istio 使用名为 istioctl 的命令行工具进行配置。下载该工具以及 Istio 示例应用程序:

{{< text syntax=bash snip_id=none >}} $ curl -L https://istio.io/downloadIstio | sh - $ cd istio-{{< istio_full_version >}} $ export PATH=$PWD/bin:$PATH {{< /text >}}

通过打印版本的命令来检查您是否能够运行 istioctl。 此时Istio 尚未安装在您的集群中,因此您将看到没有 Pod 就绪。

{{< text syntax=bash snip_id=none >}} $ istioctl version Istio is not present in the cluster: no running Istio pods in namespace "istio-system" client version: {{< istio_full_version >}} {{< /text >}}

将 Istio 安装到你的集群上

istioctl 支持多种配置文件 其中包含不同的默认选项,并可根据您的生产需求进行自定义。 ambient 配置文件中包含对 Ambient 模式的支持。使用以下命令安装 Istio

{{< text syntax=bash snip_id=install_ambient >}} $ istioctl install --set profile=ambient --skip-confirmation {{< /text >}}

安装完成后,您将看到以下输出,表明所有组件已成功安装。

{{< text syntax=plain snip_id=none >}} ✔ Istio core installed ✔ Istiod installed ✔ CNI installed ✔ Ztunnel installed ✔ Installation complete {{< /text >}}

安装 Kubernetes Gateway API CRD

您将使用 Kubernetes Gateway API 来配置流量路由。

{{< boilerplate gateway-api-install-crds >}}

下一步

恭喜!您已经成功安装支持 Ambient 模式的 Istio。 继续下一步以安装示例应用程序