docs/release_notes/v1.8.0.md
We're happy to announce the release of Dapr 1.8.0!
We would like to extend our thanks to all the new and existing contributors who helped make this release happen.
Thanks to everyone who made this release possible!
@1046102779, @AaronCrawfis, @aditirao7, @akhilac1, @akkie, @amimimor, @amulyavarote, @arahja, @Arashrohani, @artursouza, @beiwei30, @ben-kotvis, @BenLocal, @berndverst, @bibryam, @CacheCoww, @ChenCong0207, @CrazyHZM, @daixiang0, @davidfowl, @DeepanshuA, @dntbeSris, @duglin, @espinm2, @ewassef, @fabistb, @famarting, @fanfanbj, @greenie-msft, @halspang, @harrykimpel, @hhunter-ms, @hueifeng, @inirudebwoy, @ItalyPaleAle, @jack1142, @jackliusr, @JadynWong, @jasonlica, @jigargandhi, @jjcollinge, @johnewart, @Joshswooft, @Juneezee, @karpikpl, @LaurenceLiZhixin, @lotuc, @maltegoetz, @marcinjahn, @mattmazzola, @moreyhat, @msfussell, @mukundansundar, @noahziheng, @nyemade-uversky, @patrickhuber, @paulyuk, @pigletfly, @pkedy, @pravinpushkar, @psychomelet, @rzyns, @saber-wang, @safanaj, @sarsharma, @seeflood, @shiling02404, @Shoothzj, @shubham1172, @sjwaight, @skyao, @slapointe, @stulzq, @subash89, @sunzhaochang, @suraciii, @surenderssm, @Taction, @tanvigour, @theonefx, @thielepaul, @ThorstenHans, @tlawrie, @wonderflow, @wujunwei, @wwbweibo, @XavierGeerinck, @yaron2, @zcong1993, @zhenlei520, @zhi-gang-sun
Continuing the v1.7 release resilency policy features.
appid to reuse the same state store. Read more about state sharing.The Dapr sidecar can now support installation of certificates for both Linux and Windows containers. This allows for use cases like
New arguments and annotations include:
Placement service host addressesThis release focused on preparing more components for beta and stable designation. This means certification tests are added and quality issues are addressed. Read component certification lifecycle for details.
The following components are now officially designated beta status, several of which are stable candidates ready to become stable soon in a future release:
There are now over 100+ components in Dapr (105 in total). New components added in this release:
The following features are now stable, having been in preview for at least 2 releases.
Python
Java
.NET
JavaScript
annotate CLI command for adding Dapr annotations to deployed Kubernetes configurations.dapr init and dapr upgrade in k8s mode can now use GHCR and private registry to pull images.version command.If you're new to Dapr, visit the getting started page and familiarize yourself with Dapr.
Docs have been updated with all the new features and changes of this release. To get started with new capabilities introduced in this release, go to the Concepts and the Developing applications.
Note: This release contains a few breaking changes.
See this section on upgrading Dapr to version 1.8.0.
automountServiceAccountToken: false 4227-mariner tag 4673dapr version command with JSON output format 737dapr annotate CLI command for adding dapr annotations to Kubernetes configurations. 870downloadFile method 962dapr init in Kubernetes mode 968dapr init --from-file 970dapr runtime 987--dapr-http-read-buffer-size not passed properly in CLI 991DaprInvocationHttpClient should correctly populate headers in InvokeMethodResponse 398invoke_binding call shouldn't require the data parameter 399To upgrade to this release of Dapr, follow the steps here to ensure a smooth upgrade. You know, the one where you don't get red errors on the terminal.. we all hate that, right?
Uninstall Dapr using the CLI you currently have installed. Note that this will remove the default $HOME/.dapr directory, binaries and all containers dapr_redis, dapr_placement and dapr_zipkin. Linux users need to run sudo if docker command needs sudo:
dapr uninstall --all
For RC releases like this, download the latest and greatest release from here and put the dapr binary in your PATH.
Once you have installed the CLI, run:
dapr init --runtime-version=1.8.0
Wait for the update to finish, ensure you are using the latest version of Dapr(1.8.0) with:
$ dapr --version
CLI version: 1.8.0
Runtime version: 1.8.0
You can perform zero-downtime upgrades using both Helm 3 and the Dapr CLI.
Download the latest RC release from here and put the dapr binary in your PATH.
To upgrade Dapr, run:
dapr upgrade --runtime-version 1.8.0 -k
To upgrade with high availability mode:
dapr upgrade --runtime-version 1.8.0 --enable-ha=true -k
Wait until the operation is finished and check your status with dapr status -k.
All done!
Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar
To upgrade Dapr using Helm, run:
helm repo add dapr https://dapr.github.io/helm-charts/
helm repo update
helm upgrade dapr dapr/dapr --version 1.8.0 --namespace=dapr-system --wait
Wait until the operation is finished and check your status with dapr status -k.
All done!
Note: Make sure your deployments are restarted to pick the latest version of the Dapr sidecar
Please see how to deploy Dapr on a Kubernetes cluster for a complete guide to installing Dapr on Kubernetes
You can use Helm 3 to install Dapr:
helm repo add dapr https://dapr.github.io/helm-charts/
helm repo update
kubectl create namespace dapr-system
helm install dapr dapr/dapr --version 1.8.0 --namespace dapr-system --wait
Alternatively, you can use the latest version of CLI:
dapr init --runtime-version=1.8.0 -k
Verify the control plane pods are running and are healthy:
$ dapr status -k
NAME NAMESPACE HEALTHY STATUS REPLICAS VERSION AGE CREATED
dapr-dashboard dapr-system True Running 1 0.10.0 15s 2022-06-24 13:07.39
dapr-sidecar-injector dapr-system True Running 1 1.8.0 15s 2022-06-24 13:07.39
dapr-sentry dapr-system True Running 1 1.8.0 15s 2022-06-24 13:07.39
dapr-operator dapr-system True Running 1 1.8.0 15s 2022-06-24 13:07.39
dapr-placement dapr-system True Running 1 1.8.0 15s 2022-06-24 13:07.39
After Dapr 1.8.0 has been installed, perform a rolling restart for your deployments to pick up the new version of the sidecar. This can be done with:
kubectl rollout restart deploy/<deployment-name>