-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: setup of nomad and consul with dapr working
- Loading branch information
1 parent
b9d6c54
commit e2bd24e
Showing
9 changed files
with
113 additions
and
67 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
dapr-distributed-calendar/hashicorp/components/barista_pubsub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: baristapubsub | ||
namespace: default | ||
spec: | ||
type: pubsub.redis | ||
version: v1 | ||
metadata: | ||
- name: redisHost | ||
value: redis:6379 | ||
- name: redisPassword | ||
value: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: consul | ||
namespace: default | ||
spec: | ||
type: state.consul | ||
version: v1 | ||
metadata: | ||
- name: datacenter | ||
value: dc1 # Required. Example: dc1 | ||
- name: httpAddr | ||
value: 127.0.0.1:8500 # TODO update here 10.1.0.4:8500 # Required. Example: "consul.default.svc.cluster.local:8500" |
26 changes: 26 additions & 0 deletions
26
dapr-distributed-calendar/hashicorp/components/daprConfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
apiVersion: dapr.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
name: daprConfig | ||
spec: | ||
nameResolution: | ||
component: "consul" | ||
configuration: | ||
selfRegister: true | ||
client: | ||
address: "127.0.0.1:8500" # TODO: update here "10.1.0.4:8500" # Required. Example: "consul.default.svc.cluster.local:8500" | ||
checks: | ||
- name: "Dapr Health Status" | ||
checkID: "daprHealth: - ${APP_ID} - ${CONSUL_HTTP_ADDR}" | ||
interval: "15s" | ||
tcp: "127.0.0.1:8500" # TODO: update here "10.1.0.4:8500" # Required. Example: "consul.default.svc.cluster.local:8500" | ||
tags: | ||
- "dapr" | ||
queryOptions: | ||
useCache: true | ||
filter: "Checks.ServiceTags contains dapr" | ||
tracing: | ||
samplingRate: "1" | ||
zipkin: | ||
endpointAddress: http://127.0.0.1:9411/api/v2/spans |
13 changes: 13 additions & 0 deletions
13
dapr-distributed-calendar/hashicorp/components/kitchen_pubsub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: kitchenpubsub | ||
namespace: default | ||
spec: | ||
type: pubsub.redis | ||
version: v1 | ||
metadata: | ||
- name: redisHost | ||
value: redis:6379 | ||
- name: redisPassword | ||
value: "" |
13 changes: 13 additions & 0 deletions
13
dapr-distributed-calendar/hashicorp/components/orderup_pubsub.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: dapr.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: orderuppubsub | ||
namespace: default | ||
spec: | ||
type: pubsub.redis | ||
version: v1 | ||
metadata: | ||
- name: redisHost | ||
value: redis:6379 | ||
- name: redisPassword | ||
value: "" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.