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

72 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 入门
description: 如何在 Ambient 模式下部署和安装 Istio。
weight: 2
aliases:
- /zh/docs/ops/ambient/getting-started
- /zh/latest/docs/ops/ambient/getting-started
owner: istio/wg-networking-maintainers
test: yes
skip_list: true
next: /docs/ambient/getting-started/deploy-sample-app
---
本指南可让您快速评估 Istio 的 {{< gloss "ambient" >}}Ambient 模式{{< /gloss >}}。
您需要一个 Kubernetes 集群才能继续。如果您没有集群,
则可以使用 [kind](/zh/docs/setup/platform-setup/kind)
或任何其他[受支持的 Kubernetes 平台](/zh/docs/setup/platform-setup)。
这些步骤要求您拥有一个{{< gloss "cluster" >}}集群{{< /gloss >}}
其中运行 Kubernetes [受支持的版本](/zh/docs/releases/supported-releases#support-status-of-istio-releases)
{{< supported_kubernetes_versions >}})。
## 下载 Istio CLI {#download-the-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 安装到你的集群上 {#install-istio-on-to-your-cluster}
`istioctl` 支持多种[配置文件](/zh/docs/setup/additional-setup/config-profiles/)
其中包含不同的默认选项,并可根据您的生产需求进行自定义。
`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 {#install-the-kubernetes-gateway-api-crds}
您将使用 Kubernetes Gateway API 来配置流量路由。
{{< boilerplate gateway-api-install-crds >}}
## 下一步 {#next-steps}
恭喜!您已经成功安装支持 Ambient 模式的 Istio。
继续下一步以[安装示例应用程序](/zh/docs/ambient/getting-started/deploy-sample-app/)。