Dapr can be configured to run on any supported versions of Kubernetes. To achieve this, Dapr begins by deploying the dapr-sidecar-injector
, dapr-operator
, dapr-placement
, and dapr-sentry
Kubernetes services. These provide first-class integration to make running applications with Dapr easy.
DAPR_HTTP_PORT
and DAPR_GRPC_PORT
to enable user-defined applications to easily communicate with Dapr without hard-coding Dapr port values.Read this guide to learn how to deploy Dapr to your Kubernetes cluster.
Deploying and running a Dapr enabled application into your Kubernetes cluster is as simple as adding a few annotations to the deployment schemes. To give your service an id
and port
known to Dapr, turn on tracing through configuration and launch the Dapr sidecar container, you annotate your Kubernetes deployment like this. For more information check dapr annotations
annotations:
dapr.io/enabled: "true"
dapr.io/app-id: "nodeapp"
dapr.io/app-port: "3000"
dapr.io/config: "tracing"
You can see some examples here in the Kubernetes getting started quickstart.
Dapr is tested and supported on the following versions of Kubernetes.
Supported Kubernetes versions |
---|
1.17.x and above |