Steps to upgrade Dapr in a self-hosted environment
Follow these steps to upgrade Dapr in self-hosted mode and ensure a smooth upgrade
Uninstall the current Dapr deployment:
Note
This will remove the default$HOME/.daprdirectory, binaries and all containers (dapr_redis, dapr_placement, dapr_scheduler and dapr_zipkin), and the dapr_scheduler volume. Linux users need to runsudoif docker command needs sudo.dapr uninstall --allDownload and install the latest CLI by visiting this guide.
Initialize the Dapr runtime. Use the full version: a short form such as
1.19does not resolve.dapr init --runtime-version=1.19.0To have the Scheduler serve actor placement instead of the Placement service (Dapr 1.19 or later), add
--scheduler-placement. It does not start thedapr_placementcontainer. Learn more about serving placement from the Scheduler service.Ensure you are using the latest version of Dapr (v1.19.0)) with:
$ dapr --version CLI version: 1.19 Runtime version: 1.19