Skip to content

Commit

Permalink
moving tutorial to Kubernetes section
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Jun 21, 2024
1 parent 0dae2b6 commit 4d5ce9f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
7 changes: 0 additions & 7 deletions daprdocs/content/en/operations/dapr-shared/_index.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
type: docs
title: "Deploy Dapr per-node or per-cluster with Dapr Shared"
linkTitle: "Dapr Shared"
weight: 20000
weight: 50000
description: "Learn more about using Dapr Shared as an alternative deployment to sidecars"

---
Expand All @@ -20,7 +20,6 @@ For each Dapr application, you need to deploy the Dapr Shared chart using differ




## Why Dapr Shared?

By default, when Dapr is installed into a Kubernetes cluster, the Dapr control plane injects a Dapr as sidecar to applications annotated with Dapr annotations ( `dapr.io/enabled: "true"`). Sidecars have many advantages including improved resiliency since there is an instance per application and all communication between the application and the sidecar happens without involving the network.
Expand Down Expand Up @@ -63,6 +62,23 @@ Before installing Dapr Shared, make ensure you have [Dapr installed in your clus
If you want to get started with Dapr Shared, you can create a new Dapr Shared instance by installing the official Helm Chart:

```
helm install my-shared-instance oci://registry-1.docker.io/daprio/dapr-shared-chart --set shared.appId=<DAPR_APP_ID> --set shared.remoteURL=<REMOTE_URL> --set shared.remotePort=<REMOTE_PORT>
helm install my-shared-instance oci://registry-1.docker.io/daprio/dapr-shared-chart --set shared.appId=<DAPR_APP_ID> --set shared.remoteURL=<REMOTE_URL> --set shared.remotePort=<REMOTE_PORT> --set shared.strategy=deployment
```

Your Dapr-enabled applications can now make use of the Dapr Shared instance by pointing the Dapr SDKs or sending request to `my-shared-instance-dapr` Kubernetes service exposed by the Dapr Shared instance. Notice that `my-shared-instance` is the Helm Chart release name.

If you are using the Dapr SDKs you can set the following environment variables for your application to connect to the Dapr Shared instance (in this case running on the `default` namespace):

```
env:
- name: DAPR_HTTP_ENDPOINT
value: http://my-shared-instance-dapr.default.svc.cluster.local:3500
- name: DAPR_GRPC_ENDPOINT
value: http://my-shared-instance-dapr.default.svc.cluster.local:50001
```

If you are not using the SDKs you can still send HTTP or gRCP requests to those endpoints.

## Next steps

Check the [`Hello Kubernetes with Dapr Shared`]() tutorial.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
type: docs
title: "How-to: Mount Pod volumes to the Dapr sidecar"
linkTitle: "How-to: Mount Pod volumes"
weight: 80000
weight: 90000
description: "Configure the Dapr sidecar to mount Pod Volumes"
---

Expand Down

0 comments on commit 4d5ce9f

Please sign in to comment.