diff --git a/build/dapr/consul/components/consul.yml b/build/dapr/consul/components/consul.yml index a1f17ed..e2cb06a 100644 --- a/build/dapr/consul/components/consul.yml +++ b/build/dapr/consul/components/consul.yml @@ -1,3 +1,4 @@ + apiVersion: dapr.io/v1alpha1 kind: Component metadata: @@ -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" \ No newline at end of file + value: 127.0.0.1:8500 # TODO update here 10.1.0.4:8500 # Required. Example: "consul.default.svc.cluster.local:8500" \ No newline at end of file diff --git a/build/dapr/consul/components/daprConfig.yaml b/build/dapr/consul/components/daprConfig.yaml index 1bf28da..e06aea5 100644 --- a/build/dapr/consul/components/daprConfig.yaml +++ b/build/dapr/consul/components/daprConfig.yaml @@ -1,3 +1,4 @@ + apiVersion: dapr.io/v1alpha1 kind: Configuration metadata: @@ -7,6 +8,18 @@ spec: 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: