Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article shows you how to migrate from Dapr OSS to the Dapr extension for AKS.
You can configure the Dapr extension to use and manage the Kubernetes resources created by Dapr OSS by either:
--configuration-settings
.For more information, see an overview of the Dapr extension for AKS.
When you install the Dapr extension, the extension checks for an existing Dapr installation on your cluster. If Dapr exists, the extension uses and manages the Kubernetes resources created by Dapr OSS.
List the details of your current Dapr installation using the helm list -A
command and save the Dapr release name and namespace from the output.
helm list -A
Enter the Helm release name and namespace (from helm list -A
) when prompted with the following questions:
Enter the Helm release name for Dapr, or press Enter to use the default name [dapr]:
Enter the namespace where Dapr is installed, or press Enter to use the default namespace [dapr-system]:
When you create the Dapr extension, you can configure the extension to use and manage the Kubernetes resources created by Dapr OSS using the --configuration-settings
flag.
List the details of your current Dapr installation using the helm list -A
command and save the Dapr release name and namespace from the output.
helm list -A
Create the Dapr extension using the az k8s-extension create
and use the --configuration-settings
flags to set the Dapr release name and namespace.
az k8s-extension create --cluster-type managedClusters \
--cluster-name myAKSCluster \
--resource-group myResourceGroup \
--name dapr \
--extension-type Microsoft.Dapr \
--configuration-settings "existingDaprReleaseName=dapr" \
--configuration-settings "existingDaprReleaseNamespace=dapr-system"
When installing the Dapr extension on top of an existing Dapr installation, you receive the following message:
The extension will be installed on your existing Dapr installation. Note, if you have updated the default values for global.ha.* or dapr_placement.* in your existing Dapr installation, you must provide them in the configuration settings. Failing to do so will result in an error, since Helm upgrade will try to modify the StatefulSet. See <link> for more information.
Kubernetes only allows patching for limited fields in StatefulSets. If any of the HA mode or placement service settings are configured, the upgrade fails. To update the HA mode or placement service settings, you must delete the stateful set and then update the HA mode.
Delete the stateful set using the kubectl delete
command.
kubectl delete statefulset.apps/dapr-placement-server -n dapr-system
Update the HA mode using the az k8s-extension update
command.
az k8s-extension update --cluster-type managedClusters \
--cluster-name myAKSCluster \
--resource-group myResourceGroup \
--name dapr \
--extension-type Microsoft.Dapr \
--auto-upgrade-minor-version true \
--configuration-settings "global.ha.enabled=true" \
For more information, see the Dapr production guidelines.
Learn more about Dapr and how to use it.
Azure Kubernetes Service feedback
Azure Kubernetes Service is an open source project. Select a link to provide feedback:
Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Apply cluster upgrades and security patches with Azure Kubernetes Service - Training
Apply the latest version upgrades and patches to your Azure Kubernetes Service clusters.
Certification
Microsoft Certified: Azure for SAP Workloads Specialty - Certifications
Demonstrate planning, migration, and operation of an SAP solution on Microsoft Azure while you leverage Azure resources.