Azure

    你可以通过完全支持 Istio 的 AKS 或者 ,部署一个 Kubernetes 集群到 Azure 上。

    你可以通过 the az cli 或者 创建一个 AKS 集群。

    对于 cli 的选项,完成 az login 认证或者使用 cloud shell,然后运行下面的命令。

    • 确定支持 AKS 的期望 region 名
    • 证实对于期望的 region 有支持的 Kubernetes 版本
    1. $ az aks get-versions --location "my location" --query "orchestrators[].orchestratorVersion"

    确保最小值 1.10.5 被列出。

    使用期望的名字替换 myResourceGroupmyAKSCluster,使用第一步中的名字替换 mylocation,替换 1.10.5 如果其在 region 中不被支持,然后执行:

    • 取得 AKS kubeconfig 证书

    使用从之前步骤中获得的名字替换 myResourceGroup 和 并且执行:

    1. $ az aks get-credentials --resource-group myResourceGroup --name myAKSCluster

    AKS-Engine

    • 下载支持部署 Istio 的 aks-engine API 模型定义:

    注意:可能使用其他可以和 Istio 一起工作的 api 模型定义。MutatingAdmissionWebhook 和 ValidatingAdmissionWebhook 准入控制标识和 RBAC 被默认打开。从 获取更多信息。

    • 使用 istio.json 模板来部署你的集群。你能发现对于参数的参考在官方文档 中。

    参数期望值subscription_idAzure Subscription Iddns_prefix集群 DNS 前缀location集群位置

    1. --dns-prefix <dns_prefix> --location <location> --auto-suffix \
    2. --api-model istio.json
    • 使用 <dns_prefix>-<id> 集群 ID,为了从 _output 文件夹复制你的 kubeconfig 到你的机器:

    比如:

    1. $ cp _output/mycluster-5adfba82/kubeconfig/kubeconfig.westus2.json \