Dapr can be deployed on Kubernetes using either the Dapr CLI or Helm charts. Both methods support Linux nodes and hybrid Linux/Windows clusters. Before deploying, ensure you have Kubectl, a Kubernetes cluster, and either the Dapr CLI or Helm v3 installed. The Dapr CLI allows basic installation with `dapr init -k`, or a development installation including Redis and Zipkin with `dapr init -k --dev`. Advanced CLI options include enabling high availability with `--enable-ha=true` and specifying a custom namespace. Alternatively, Helm can be used by adding the Dapr Helm repository and installing Dapr using `helm upgrade`. Helm also supports high availability configurations for all or specific components. To verify the installation, check that the Dapr control plane components like `dapr-operator`, `dapr-placement`, and `dapr-sidecar-injector` are running. Mariner-based container images can be used for compliance requirements by specifying the `--image-variant mariner` flag or setting the `global.tag` in Helm. Production deployments should utilize high availability, while development environments benefit from the `--dev` flag.
dev.to
dev.to
