The documentation you are viewing is for Dapr v1.5 which is an older version of Dapr. For up-to-date documentation, see the latest version.
创建 Azure Kubernetes 服务集群
如何在 Azure Kubernetes 集群上设置 Dapr。
设置 Azure Kubernetes 服务集群
先决条件
部署 Azure Kubernetes 服务集群
本指南将引导你完成 Azure Kubernetes Service 集群的安装过程。 如果您需要更多信息,请参阅 快速启动:使用 Azure CLI 部署 Azure Kubernetes Service (AKS) 集群
- 登录到 Azure
az login
- 设置默认订阅
az account set -s [your_subscription_id]
- 创建资源组
az group create --name [your_resource_group] --location [region]
- 创建 Azure Kubernetes Service 集群
注意: 要使用特定版本的 Kubernetes 请使用
--kubernetes-version
(1.13.x 或需要更新版本)
az aks create --resource-group [your_resource_group] --name [your_aks_cluster_name] --node-count 2 --enable-addons http_application_routing --generate-ssh-keys
- 获取 Azure Kubernetes 集群的访问凭据
az aks get-credentials -n [your_aks_cluster_name] -g [your_resource_group]
(可选) 安装Helm v3
注意: 最新的 Dapr helm chart 不再支持 Helm v2。 请按照这篇文章 Helm 迁移指南 从Helm v2 迁移到Helm v3。
- 如果您需要 Kubernetes 仪表板权限,(例如 configmaps is forbidden: User “system:serviceaccount:kube-system:kubernetes-dashboard” cannot list configmaps in the namespace “default” 等等),执行这个命令
kubectl create clusterrolebinding kubernetes-dashboard -n kube-system --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.