mirror of https://github.com/istio/istio.io.git
zh:sync setup/platform-setup/azure/index.md (#11483)
This commit is contained in:
parent
85edb53de2
commit
35b8a8db49
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Azure
|
||||
description: 为 Istio 设置一个 Azure 集群的指令。
|
||||
description: 为 Istio 设置一个 Azure 集群的操作说明。
|
||||
weight: 9
|
||||
skip_seealso: true
|
||||
aliases:
|
||||
|
@ -11,25 +11,25 @@ owner: istio/wg-environments-maintainers
|
|||
test: no
|
||||
---
|
||||
|
||||
跟随这些指令来为 Istio 准备一个 Azure 集群。
|
||||
跟随以下操作说明来为 Istio 准备一个 Azure 集群。
|
||||
|
||||
您可以通过完全支持 Istio 的 [AKS](https://azure.microsoft.com/en-us/services/kubernetes-service/) 或者 [AKS-Engine](https://github.com/azure/aks-engine),部署一个 Kubernetes 集群到 Azure 上。
|
||||
您可以通过完全支持 Istio 的 [AKS](https://azure.microsoft.com/zh-cn/services/kubernetes-service/) 或者 [AKS-Engine](https://github.com/azure/aks-engine),部署一个 Kubernetes 集群到 Azure 上。
|
||||
|
||||
## AKS
|
||||
|
||||
您可以通过 [the az cli](https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough) 或者 [the Azure portal](https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal) 创建一个 AKS 集群。
|
||||
您可以通过 [Azure CLI](https://docs.microsoft.com/zh-cn/azure/aks/learn/quick-kubernetes-deploy-cli) 或者 [Azure 门户](https://docs.microsoft.com/zh-cn/azure/aks/learn/quick-kubernetes-deploy-portal)创建一个 AKS 集群。
|
||||
|
||||
对于 `az` cli 的选项,完成 `az login` 认证或者使用 cloud shell,然后运行下面的命令。
|
||||
|
||||
1. 确定支持 AKS 的期望 region 名
|
||||
1. 确定支持 AKS 的目标 region 名称。
|
||||
|
||||
{{< text bash >}}
|
||||
$ az provider list --query "[?namespace=='Microsoft.ContainerService'].resourceTypes[] | [?resourceType=='managedClusters'].locations[]" -o tsv
|
||||
{{< /text >}}
|
||||
|
||||
1. 验证期望的 region 支持的 Kubernetes 版本
|
||||
1. 验证目标 region 所支持的 Kubernetes 版本。
|
||||
|
||||
使用从上面步骤中期望的 region 值替换 `my location`,然后执行:
|
||||
使用上一步中的目标 region 值替换 `my location`,然后执行:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az aks get-versions --location "my location" --query "orchestrators[].orchestratorVersion"
|
||||
|
@ -37,18 +37,18 @@ test: no
|
|||
|
||||
确保最小值 `1.10.5` 被列出。
|
||||
|
||||
1. 创建 resource group 和部署 AKS 集群
|
||||
1. 创建资源组并部署 AKS 集群。
|
||||
|
||||
使用期望的名字替换 `myResourceGroup` 和 `myAKSCluster`,使用第一步中的名字替换 `mylocation`,替换 `1.10.5` 如果其在 region 中不被支持,然后执行:
|
||||
使用第 1 步中得到的 `mylocation` 名称替换 `myResourceGroup` 和 `myAKSCluster`;如果该 region 不支持 `Kubernetes 1.10.5`,则执行:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az group create --name myResourceGroup --location "my location"
|
||||
$ az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 3 --kubernetes-version 1.10.5 --generate-ssh-keys
|
||||
{{< /text >}}
|
||||
|
||||
1. 取得 AKS `kubeconfig` 证书
|
||||
1. 取得 AKS `kubeconfig` 证书。
|
||||
|
||||
使用从之前步骤中获得的名字替换 `myResourceGroup` 和 `myAKSCluster` 并且执行:
|
||||
使用从之前步骤中获得的名称替换 `myResourceGroup` 和 `myAKSCluster` 并且执行:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
|
||||
|
@ -56,7 +56,7 @@ test: no
|
|||
|
||||
## AKS-Engine
|
||||
|
||||
1. [跟随这些命令](https://github.com/Azure/aks-engine/blob/master/docs/tutorials/quickstart.md#install-aks-engine)来获取和安装 `aks-engine` 的二进制版本。
|
||||
1. [跟随这些操作说明](https://github.com/Azure/aks-engine/blob/master/docs/tutorials/quickstart.md#install-aks-engine)来获取并安装 `aks-engine` 的二进制版本。
|
||||
|
||||
1. 下载支持部署 Istio 的 `aks-engine` API 模型定义:
|
||||
|
||||
|
@ -64,9 +64,9 @@ test: no
|
|||
$ wget https://raw.githubusercontent.com/Azure/aks-engine/master/examples/service-mesh/istio.json
|
||||
{{< /text >}}
|
||||
|
||||
注意:可以使用其他将与 Istio 一起工作的 api 模型定义。默认情况下,MutatingAdmissionWebhook 和 ValidatingAdmissionWebhook 准入控制标识和 RBAC 会被启用。参阅 [aks-engine api 模型默认值](https://github.com/Azure/aks-engine/blob/master/docs/topics/clusterdefinitions.md)获取更多信息。
|
||||
注意:可以使用其他将与 Istio 一起工作的 API 模型定义。默认情况下,MutatingAdmissionWebhook 和 ValidatingAdmissionWebhook 准入控制标识和 RBAC 会被启用。参阅 [aks-engine api 模型默认值](https://github.com/Azure/aks-engine/blob/master/docs/topics/clusterdefinitions.md)获取更多信息。
|
||||
|
||||
1. 使用 `istio.json` 模板来部署您的集群。您能在[官方文档](https://github.com/Azure/aks-engine/blob/master/docs/topics/creating_new_clusters.md#deploy)中找到对参数的参考。
|
||||
1. 使用 `istio.json` 模板来部署您的集群。您能在[官方文档](https://github.com/Azure/aks-engine/blob/master/docs/topics/creating_new_clusters.md#deploy)中找到有关参数的参考。
|
||||
|
||||
| 参数 | 期望值 |
|
||||
|---------------------------------------|----------------------------|
|
||||
|
|
Loading…
Reference in New Issue