The documentation you are viewing is for Dapr v1.6 which is an older version of Dapr. For up-to-date documentation, see the latest version.
Setup an Azure Kubernetes Service (AKS) cluster
How to setup Dapr on an Azure Kubernetes Cluster.
Set up an Azure Kubernetes Service cluster
Prerequisites
Deploy an Azure Kubernetes Service cluster
This guide walks you through installing an Azure Kubernetes Service cluster. If you need more information, refer to Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using the Azure CLI
- Login to Azure
az login
- Set the default subscription
az account set -s [your_subscription_id]
- Create a resource group
az group create --name [your_resource_group] --location [region]
- Create an Azure Kubernetes Service cluster
Note: To use a specific version of Kubernetes use
--kubernetes-version
(1.13.x or newer version required)
az aks create --resource-group [your_resource_group] --name [your_aks_cluster_name] --node-count 2 --enable-addons http_application_routing --generate-ssh-keys
- Get the access credentials for the Azure Kubernetes cluster
az aks get-credentials -n [your_aks_cluster_name] -g [your_resource_group]
(optional) Install Helm v3
Note: The latest Dapr helm chart no longer supports Helm v2. Please migrate from helm v2 to helm v3 by following this guide.
- In case you need permissions the kubernetes dashboard (i.e. configmaps is forbidden: User “system:serviceaccount:kube-system:kubernetes-dashboard” cannot list configmaps in the namespace “default”, etc.) execute this command
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.
Last modified November 30, 2022: Use Google Analytics 4 ID for v1.6 via head-end hook (#2963) (9231f27)