Skip to content

Commit 2a59ede

Browse files
Merge pull request #281107 from hhunter-ms/hh-286152
[Dapr/AKS] Clarify the instructions for manually upgrading Dapr
2 parents 8c96539 + b5dbb9c commit 2a59ede

File tree

2 files changed

+64
-54
lines changed

2 files changed

+64
-54
lines changed

articles/aks/dapr-overview.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,7 @@ Microsoft provides best-effort support for [the latest version of Dapr and two p
6565

6666
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).
6767

68-
To view a list of the stable Dapr versions available to your managed AKS cluster, run the following command:
69-
70-
```azurecli
71-
az k8s-extension extension-types list-versions-by-cluster --resource-group myResourceGroup --cluster-name myCluster --cluster-type managedClusters --extension-type microsoft.dapr --release-train stable
72-
```
73-
74-
To see the latest stable Dapr version available to your managed AKS cluster, run the following:
75-
76-
```azurecli
77-
az k8s-extension extension-types list-versions-by-cluster --resource-group myResourceGroup --cluster-name myCluster --cluster-type managedClusters --extension-type microsoft.dapr --release-train stable --show-latest
78-
```
79-
80-
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)
8769

8870
### Runtime support
8971

articles/aks/dapr.md

Lines changed: 63 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: devx-track-azurecli, references_regions
1515
[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:
1616
- Calling other services reliably and securely
1717
- 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)
1919

2020
> [!NOTE]
2121
> 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
3939
## Prerequisites
4040

4141
- 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].
4343
- 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)
4545

4646
Select how you'd like to install, deploy, and configure the Dapr extension.
4747

@@ -64,7 +64,7 @@ az extension update --name k8s-extension
6464

6565
### Register the `KubernetesConfiguration` resource provider
6666

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:
6868

6969
```azurecli-interactive
7070
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
119119
For example, install the latest version of Dapr via the Dapr extension on your AKS cluster:
120120
```azurecli
121121
az k8s-extension create --cluster-type managedClusters \
122-
--cluster-name myAKSCluster \
123-
--resource-group myResourceGroup \
122+
--cluster-name <myAKSCluster> \
123+
--resource-group <myResourceGroup> \
124124
--name dapr \
125125
--extension-type Microsoft.Dapr \
126126
--auto-upgrade-minor-version false
127127
```
128128

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:
136+
137+
| Value | Description |
138+
| -------- | ----------------------------------------- |
139+
| `stable` | Default. |
140+
| `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
130149

131150
> [!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)
133152
134153
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.
135154

@@ -141,44 +160,53 @@ You can disable auto-update by specifying the `--auto-upgrade-minor-version` par
141160
--auto-upgrade-minor-version true
142161
```
143162

144-
### Targeting a specific Dapr version
163+
#### Viewing the latest stable Dapr versions available
145164

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:
166+
167+
```azurecli
168+
az k8s-extension extension-types list-versions-by-cluster --resource-group <myResourceGroup> --cluster-name <myCluster> --cluster-type managedClusters --extension-type microsoft.dapr --release-train stable
169+
```
148170

149-
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:
150172

151173
```azurecli
152-
az k8s-extension create --cluster-type managedClusters \
153-
--cluster-name myAKSCluster \
154-
--resource-group myResourceGroup \
155-
--name dapr \
156-
--extension-type Microsoft.Dapr \
157-
--auto-upgrade-minor-version false \
158-
--version 1.11.2
174+
az k8s-extension extension-types list-versions-by-cluster --resource-group <myResourceGroup> --cluster-name <myCluster> --cluster-type managedClusters --extension-type microsoft.dapr --release-train stable --show-latest
159175
```
160176

161-
### Choosing a release train
177+
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.
162180

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
183+
```
164184

165-
| Value | Description |
166-
| -------- | ----------------------------------------- |
167-
| `stable` | Default. |
168-
| `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)
169186

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:
171193

172194
```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
174202
```
175203

176204
# [Bicep](#tab/bicep)
177205
## Before you begin
178206

179207
### Register the `KubernetesConfiguration` resource provider
180208

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:
182210

183211
```azurecli-interactive
184212
az provider list --query "[?contains(namespace,'Microsoft.KubernetesConfiguration')]" -o table
@@ -220,7 +248,7 @@ az feature show --namespace Microsoft.KubernetesConfiguration --name ExtensionTy
220248

221249
## Deploy the Dapr extension on your AKS or Arc-enabled Kubernetes cluster
222250

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.
224252

225253
```bicep
226254
@description('The name of the Managed Cluster resource.')
@@ -254,11 +282,11 @@ resource daprExtension 'Microsoft.KubernetesConfiguration/extensions@2022-11-01'
254282
}
255283
```
256284

257-
Set the following variables, changing the values below to your actual resource group and cluster names.
285+
Set the following variables, changing the following values to your actual resource group and cluster names.
258286

259287
```azurecli-interactive
260-
MY_RESOURCE_GROUP=myResourceGroup
261-
MY_AKS_CLUSTER=myAKScluster
288+
MY_RESOURCE_GROUP=<myResourceGroup>
289+
MY_AKS_CLUSTER=<myAKSCluster>
262290
```
263291

264292
Deploy the Bicep template using the `az deployment group` command.
@@ -310,7 +338,7 @@ When configuring the extension, you can choose to install Dapr from a particular
310338
| Value | Description |
311339
| -------- | ----------------------------------------- |
312340
| `stable` | Default. |
313-
| `dev` | Early releases, can contain experimental features. Not suitable for production. |
341+
| `dev` | Early releases that can contain experimental features. Not suitable for production. |
314342

315343
For example:
316344

@@ -335,10 +363,10 @@ Troubleshoot Dapr errors via the [common Dapr issues and solutions guide][dapr-t
335363
If you need to delete the extension and remove Dapr from your AKS cluster, you can use the following command:
336364

337365
```azurecli
338-
az k8s-extension delete --resource-group myResourceGroup --cluster-name myAKSCluster --cluster-type managedClusters --name dapr
366+
az k8s-extension delete --resource-group <myResourceGroup> --cluster-name <myAKSCluster> --cluster-type managedClusters --name dapr
339367
```
340368

341-
Or simply remove the Bicep template.
369+
Or you can remove the Bicep template.
342370

343371
## Next Steps
344372

0 commit comments

Comments
 (0)