You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Dapr extension for Azure Kubernetes Service (AKS) and Arc-enabled Kubernetes
13
13
14
-
[Dapr](https://dapr.io/)is a portable, event-driven runtime that simplifies building resilient, stateless, and stateful applications that run on the cloud and edge and embrace the diversity of languages and developer frameworks. Applying the benefits of a sidecar architecture, Dapr helps you tackle the challenges that come with building microservices and keeps your code platform agnostic. In particular, it helps solve problems around services:
14
+
As a portable, event-driven runtime, [Dapr](https://dapr.io/) simplifies building resilient, stateless, and stateful applications that run on the cloud and edge and embrace the diversity of languages and developer frameworks. With its sidecar architecture, Dapr helps you tackle the challenges that come with building microservices and keeps your code platform agnostic. In particular, it helps solve problems around services:
15
15
- Calling other services reliably and securely
16
16
- Building event-driven apps with pub-sub
17
17
- Building applications that are portable across multiple cloud services and hosts (for example, Kubernetes vs. a VM)
18
18
19
-
[By using the Dapr extension to provision Dapr on your AKS or Arc-enabled Kubernetes cluster](../azure-arc/kubernetes/conceptual-extensions.md), you eliminate the overhead of downloading Dapr tooling and manually installing and managing the runtime on your AKS cluster. Additionally, the extension offers support for all [native Dapr configuration capabilities][dapr-configuration-options] through simple command-line arguments.
19
+
[Using the Dapr extension to provision Dapr on your AKS or Arc-enabled Kubernetes cluster](../azure-arc/kubernetes/conceptual-extensions.md) eliminates the overhead of:
20
+
- Downloading Dapr tooling
21
+
- Manually installing and managing the runtime on your AKS cluster
22
+
23
+
Additionally, the extension offers support for all [native Dapr configuration capabilities][dapr-configuration-options] through simple command-line arguments.
20
24
21
25
> [!NOTE]
22
26
> If you plan on installing Dapr in a Kubernetes production environment, see the [Dapr guidelines for production usage][kubernetes-production] documentation page.
23
27
24
28
## How it works
25
29
26
-
The Dapr extension uses the Azure CLI to provision the Dapr control plane on your AKS or Arc-enabled Kubernetes cluster. This will create:
30
+
The Dapr extension uses the Azure CLI to provision the Dapr control plane on your AKS or Arc-enabled Kubernetes cluster, creating the following Dapr services:
27
31
28
-
-**dapr-operator**: Manages component updates and Kubernetes services endpoints for Dapr (state stores, pub/subs, etc.)
29
-
-**dapr-sidecar-injector**: Injects Dapr into annotated deployment pods and adds the environment variables `DAPR_HTTP_PORT` and `DAPR_GRPC_PORT` to enable user-defined applications to easily communicate with Dapr without hard-coding Dapr port values.
30
-
-**dapr-placement**: Used for actors only. Creates mapping tables that map actor instances to pods
31
-
-**dapr-sentry**: Manages mTLS between services and acts as a certificate authority. For more information, read the [security overview][dapr-security].
32
+
| Dapr service | Description |
33
+
| ------------ | ----------- |
34
+
|`dapr-operator`| Manages component updates and Kubernetes services endpoints for Dapr (state stores, pub/subs, etc.) |
35
+
|`dapr-sidecar-injector`| Injects Dapr into annotated deployment pods and adds the environment variables `DAPR_HTTP_PORT` and `DAPR_GRPC_PORT` to enable user-defined applications to easily communicate with Dapr without hard-coding Dapr port values. |
36
+
|`dapr-placement`| Used for actors only. Creates mapping tables that map actor instances to pods. |
37
+
|`dapr-sentry`| Manages mTLS between services and acts as a certificate authority. For more information, read the [security overview][dapr-security]. |
32
38
33
39
Once Dapr is installed on your cluster, you can begin to develop using the Dapr building block APIs by [adding a few annotations][dapr-deployment-annotations] to your deployments. For a more in-depth overview of the building block APIs and how to best use them, see the [Dapr building blocks overview][building-blocks-concepts].
34
40
@@ -100,7 +106,7 @@ Global Azure cloud is supported with Arc support on the following regions:
100
106
101
107
### Set up the Azure CLI extension for cluster extensions
102
108
103
-
You'll need the `k8s-extension` Azure CLI extension. Install by running the following commands:
109
+
Install the `k8s-extension` Azure CLI extension by running the following commands:
104
110
105
111
```azurecli-interactive
106
112
az extension add --name k8s-extension
@@ -114,7 +120,7 @@ az extension update --name k8s-extension
114
120
115
121
### Register the `KubernetesConfiguration` service provider
116
122
117
-
If you have not previously used cluster extensions, you may need to register the service provider with your subscription. You can check the status of the provider registration using the [az provider list][az-provider-list] command, as shown in the following example:
123
+
If you haven't previously used cluster extensions, you may need to register the service provider with your subscription. You can check the status of the provider registration using the [az provider list][az-provider-list] command, as shown in the following example:
118
124
119
125
```azurecli-interactive
120
126
az provider list --query "[?contains(namespace,'Microsoft.KubernetesConfiguration')]" -o table
@@ -178,7 +184,7 @@ For example:
178
184
> [!NOTE]
179
185
> Dapr is supported with a rolling window, including only the current and previous versions. It is your operational responsibility to remain up to date with these supported versions. If you have an older version of Dapr, you may have to do intermediate upgrades to get to a supported version.
180
186
181
-
The same command-line argument is used for installing a specific version of Dapr or rolling back to a previous version. Set `--auto-upgrade-minor-version` to `false` and `--version` to the version of Dapr you wish to install. If the `version` parameter is omitted, the extension will install the latest version of Dapr. For example, to use Dapr X.X.X:
187
+
The same command-line argument is used for installing a specific version of Dapr or rolling back to a previous version. Set `--auto-upgrade-minor-version` to `false` and `--version` to the version of Dapr you wish to install. If the `version` parameter is omitted, the extension installs the latest version of Dapr. For example, to use Dapr X.X.X:
182
188
183
189
```azurecli
184
190
az k8s-extension create --cluster-type managedClusters \
0 commit comments