Dapr#
Dapr (Distributed Application Runtime) is an open-source, portable, event-driven runtime that makes it easy for developers to build resilient, microservices applications that run on the cloud and edge. Dapr provides APIs that abstract away the complexities of common challenges when building distributed applications, such as: Service-to-service invocation: Enables reliable and secure communication between microservices.
State management: Provides a consistent way to manage application state.
Publish and subscribe: Allows microservices to communicate asynchronously through message brokers.
Bindings: Connects applications to external systems and services (e.g., databases, message queues, cloud services).
Actors: Provides a framework for building stateful, concurrent objects.
Observability: Offers built-in observability features, including tracing, metrics, and logging.
Looking for Commercial Support? LEARN MORE
Prerequisites#
Deploy k0rdent v1.2.0: QuickStart
Deploy Ingress-nginx to expose application web UI
Install template to k0rdent#
helm upgrade --install dapr oci://ghcr.io/k0rdent/catalog/charts/kgst --set "chart=dapr:1.14.4" -n kcm-system
helm upgrade --install dapr-dashboard oci://ghcr.io/k0rdent/catalog/charts/kgst --set "chart=dapr-dashboard:0.15.0" -n kcm-system
Verify service template#
kubectl get servicetemplates -A
# NAMESPACE NAME VALID
# kcm-system dapr-1-14-4 true
# kcm-system dapr-dashboard-0-15-0 true
Deploy service template#
apiVersion: k0rdent.mirantis.com/v1beta1
kind: ClusterDeployment
# kind: MultiClusterService
...
serviceSpec:
services:
- template: dapr-1-14-4
name: dapr
namespace: dapr
- template: dapr-dashboard-0-15-0
name: dapr-dashboard
namespace: dapr
values: |
dapr-dashboard:
ingress:
enabled: true
className: nginx
host: 'dapr.example.com'