mirror of https://github.com/dapr/docs.git
57 lines
1.9 KiB
Markdown
57 lines
1.9 KiB
Markdown
|
|
# Set up an Azure Kubernetes Service cluster
|
|
|
|
## Prerequisites
|
|
|
|
- [Docker](https://docs.docker.com/install/)
|
|
- [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
|
|
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
|
|
|
|
## 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](https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough)
|
|
|
|
1. Login to Azure
|
|
|
|
```bash
|
|
az login
|
|
```
|
|
|
|
2. Set the default subscription
|
|
|
|
```bash
|
|
az account set -s [your_subscription_id]
|
|
```
|
|
|
|
3. Create a resource group
|
|
|
|
```bash
|
|
az group create --name [your_resource_group] --location [region]
|
|
```
|
|
|
|
4. Create an Azure Kubernetes Service cluster
|
|
|
|
Use 1.13.x or newer version of Kubernetes with `--kubernetes-version`
|
|
|
|
```bash
|
|
az aks create --resource-group [your_resource_group] --name [your_aks_cluster_name] --node-count 2 --kubernetes-version 1.14.7 --enable-addons http_application_routing --enable-rbac --generate-ssh-keys
|
|
```
|
|
|
|
5. Get the access credentials for the Azure Kubernetes cluster
|
|
|
|
```bash
|
|
az aks get-credentials -n [your_aks_cluster_name] -g [your_resource_group]
|
|
```
|
|
|
|
|
|
## (optional) Install Helm v3
|
|
|
|
1. [Install Helm v3 client](https://helm.sh/docs/intro/install/)
|
|
|
|
> **Note:** The latest Dapr helm chart no longer supports Helm v2. Please migrate from helm v2 to helm v3 by following [this guide](https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3/).
|
|
|
|
2. 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
|
|
|
|
```bash
|
|
kubectl create clusterrolebinding kubernetes-dashboard -n kube-system --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
|
|
``` |