Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto tungphuong-main
  • Loading branch information
thangchung committed May 26, 2023
2 parents 81f8f8d + a098cba commit f24de27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/dapr/consul/components/consul.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
Expand All @@ -10,4 +11,4 @@ spec:
- name: datacenter
value: dc1 # Required. Example: dc1
- name: httpAddr
value: 127.0.0.1:8500 # Required. Example: "consul.default.svc.cluster.local:8500"
value: # TODO update here 10.1.0.4:8500 # Required. Example: "consul.default.svc.cluster.local:8500"
13 changes: 13 additions & 0 deletions build/dapr/consul/components/daprConfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
Expand All @@ -7,6 +8,18 @@ spec:
component: "consul"
configuration:
selfRegister: true
client:
address: # 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: # 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:
Expand Down

0 comments on commit f24de27

Please sign in to comment.