mirror of https://github.com/dapr/docs.git
moving tutorial to Kubernetes section
Signed-off-by: salaboy <Salaboy@gmail.com>
This commit is contained in:
parent
d96d0a8495
commit
62bfaf3cbd
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
type: docs
|
||||
title: "Deploy Dapr on a per-machine or per-node with Dapr Shared"
|
||||
linkTitle: "Dapr Shared"
|
||||
weight: 100
|
||||
description: "Learn the different deployment strategies with Dapr Shared"
|
||||
---
|
|
@ -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"
|
||||
|
||||
---
|
||||
|
@ -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.
|
||||
|
@ -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.
|
|
@ -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"
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue