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
Copy file name to clipboardExpand all lines: articles/aks/dapr-overview.md
+1-19Lines changed: 1 addition & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,25 +65,7 @@ Microsoft provides best-effort support for [the latest version of Dapr and two p
65
65
66
66
You can run Azure CLI commands to retrieve a list of available versions in [a cluster](/cli/azure/k8s-extension/extension-types#az-k8s-extension-extension-types-list-versions-by-cluster) or [a location](/cli/azure/k8s-extension/extension-types#az-k8s-extension-extension-types-list-versions-by-location).
67
67
68
-
To view a list of the stable Dapr versions available to your managed AKS cluster, run the following command:
To view a list of the stable Dapr versions available _by location_:
81
-
1.[Make sure you've registered the `ExtenstionTypes` feature to your Azure subscription.](./dapr.md#register-the-extenstiontypes-feature-to-your-azure-subscription)
82
-
1. Run the following command.
83
-
84
-
```azurecli
85
-
az k8s-extension extension-types list-versions-by-location --location westus --extension-type microsoft.dapr
86
-
```
68
+
[Learn how to view and target the latest stable Dapr versions available to your managed AKS cluster.](./dapr.md#viewing-the-latest-stable-dapr-versions-available)
[Dapr](./dapr-overview.md) simplifies building resilient, stateless, and stateful applications that run on the cloud and edge and embrace the diversity of languages and developer frameworks. With Dapr's sidecar architecture, you can keep your code platform agnostic while tackling challenges around building microservices, like:
16
16
- Calling other services reliably and securely
17
17
- Building event-driven apps with pub/sub
18
-
- Building applications that are portable across multiple cloud services and hosts (for example, Kubernetes vs. a VM)
18
+
- Building applications that are portable across multiple cloud services and hosts (for example, Kubernetes vs. a virtual machine)
19
19
20
20
> [!NOTE]
21
21
> If you plan on installing Dapr in a Kubernetes production environment, see the [Dapr guidelines for production usage][kubernetes-production] documentation page.
@@ -39,9 +39,9 @@ Once Dapr is installed on your cluster, you can begin to develop using the Dapr
39
39
## Prerequisites
40
40
41
41
- An Azure subscription. [Don't have one? Create a free account.](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
42
-
-Install the latest version of the [Azure CLI][install-cli].
42
+
-The latest version of the [Azure CLI][install-cli].
43
43
- An existing [AKS cluster][deploy-cluster] or connected [Arc-enabled Kubernetes cluster][arc-k8s-cluster].
44
-
-[An Azure Kubernetes Service RBAC Admin role](../role-based-access-control/built-in-roles.md#azure-kubernetes-service-rbac-admin)
44
+
-[An Azure Kubernetes Service Role-Based Access Control Admin role](../role-based-access-control/built-in-roles.md#azure-kubernetes-service-rbac-admin)
45
45
46
46
Select how you'd like to install, deploy, and configure the Dapr extension.
47
47
@@ -64,7 +64,7 @@ az extension update --name k8s-extension
64
64
65
65
### Register the `KubernetesConfiguration` resource provider
66
66
67
-
If you haven't previously used cluster extensions, you may need to register the resource 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:
67
+
If you aren't already using cluster extensions, you may need to register the resource 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:
68
68
69
69
```azurecli-interactive
70
70
az provider list --query "[?contains(namespace,'Microsoft.KubernetesConfiguration')]" -o table
@@ -119,17 +119,36 @@ Create the Dapr extension, which installs Dapr on your AKS or Arc-enabled Kubern
119
119
For example, install the latest version of Dapr via the Dapr extension on your AKS cluster:
120
120
```azurecli
121
121
az k8s-extension create --cluster-type managedClusters \
122
-
--cluster-name myAKSCluster \
123
-
--resource-group myResourceGroup \
122
+
--cluster-name <myAKSCluster> \
123
+
--resource-group <myResourceGroup> \
124
124
--name dapr \
125
125
--extension-type Microsoft.Dapr \
126
126
--auto-upgrade-minor-version false
127
127
```
128
128
129
-
### Configuring automatic updates to Dapr control plane
129
+
### Keep your managed AKS cluster updated to the latest version
130
+
131
+
Based on your environment (dev, test, or production), you can keep up-to-date with the latest stable Dapr versions.
132
+
133
+
#### Choosing a release train
134
+
135
+
When configuring the extension, you can choose to install Dapr from a particular release train. Specify one of the two release train values:
|`dev`| Early releases that can contain experimental features. Not suitable for production. |
141
+
142
+
For example:
143
+
144
+
```azurecli
145
+
--release-train stable
146
+
```
147
+
148
+
#### Configuring automatic updates to Dapr control plane
130
149
131
150
> [!WARNING]
132
-
> You can enable automatic updates to the Dapr control plane only in dev or test environments. Auto-upgrade is not suitable for production environments.
151
+
> Auto-upgrade is not suitable for production environments. Only enable automatic updates to the Dapr control plane in dev or test environments. [Learn how to manually upgrade to the latest Dapr version for production environments.](#viewing-the-latest-stable-dapr-versions-available)
133
152
134
153
If you install Dapr without specifying a version, `--auto-upgrade-minor-version`*is automatically enabled*, configuring the Dapr control plane to automatically update its minor version on new releases.
135
154
@@ -141,44 +160,53 @@ You can disable auto-update by specifying the `--auto-upgrade-minor-version` par
141
160
--auto-upgrade-minor-version true
142
161
```
143
162
144
-
###Targeting a specific Dapr version
163
+
#### Viewing the latest stable Dapr versions available
145
164
146
-
> [!NOTE]
147
-
> 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.
165
+
To upgrade to the latest Dapr version in a production environment, you need to manually upgrade. Start by viewing a list of the stable Dapr versions available to your managed AKS cluster. Run the following command:
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 1.11.2:
171
+
To see the latest stable Dapr version available to your managed AKS cluster, run the following command:
150
172
151
173
```azurecli
152
-
az k8s-extension create --cluster-type managedClusters \
To view a list of the stable Dapr versions available _by location_:
178
+
1.[Make sure you've registered the `ExtenstionTypes` feature to your Azure subscription.](./dapr.md#register-the-extenstiontypes-feature-to-your-azure-subscription)
179
+
1. Run the following command.
162
180
163
-
When configuring the extension, you can choose to install Dapr from a particular release train. Specify one of the two release train values:
181
+
```azurecli
182
+
az k8s-extension extension-types list-versions-by-location --location westus --extension-type microsoft.dapr
|`dev`| Early releases, can contain experimental features. Not suitable for production. |
185
+
[Next, manually update Dapr to the latest stable version.](#targeting-a-specific-dapr-version)
169
186
170
-
For example:
187
+
#### Targeting a specific Dapr version
188
+
189
+
> [!NOTE]
190
+
> 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.
191
+
192
+
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 1.13.5:
171
193
172
194
```azurecli
173
-
--release-train stable
195
+
az k8s-extension create --cluster-type managedClusters \
196
+
--cluster-name <myAKSCluster> \
197
+
--resource-group <myResourceGroup> \
198
+
--name dapr \
199
+
--extension-type Microsoft.Dapr \
200
+
--auto-upgrade-minor-version false \
201
+
--version 1.13.5
174
202
```
175
203
176
204
# [Bicep](#tab/bicep)
177
205
## Before you begin
178
206
179
207
### Register the `KubernetesConfiguration` resource provider
180
208
181
-
If you haven't previously used cluster extensions, you may need to register the resource 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:
209
+
If you aren't already using cluster extensions, you may need to register the resource 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:
182
210
183
211
```azurecli-interactive
184
212
az provider list --query "[?contains(namespace,'Microsoft.KubernetesConfiguration')]" -o table
@@ -220,7 +248,7 @@ az feature show --namespace Microsoft.KubernetesConfiguration --name ExtensionTy
220
248
221
249
## Deploy the Dapr extension on your AKS or Arc-enabled Kubernetes cluster
222
250
223
-
Create a Bicep template similar to the following example to deploy the Dapr extension to your existing cluster.
251
+
Create a Bicep template similar to the following example and deploy the Dapr extension to your existing cluster.
224
252
225
253
```bicep
226
254
@description('The name of the Managed Cluster resource.')
0 commit comments