From f2aa40ff143f063a1208844abb64d65c2f0c37bf Mon Sep 17 00:00:00 2001 From: i312345 Date: Mon, 19 Aug 2019 10:01:33 +0530 Subject: [PATCH] docker-compose-yaml modification --- docker-compose.yaml | 11 +++++++++++ edge-envoy/envoy.yaml | 17 +++++++++++++++++ go.mod | 6 +++--- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 2aa8826..6963680 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,6 +21,17 @@ services: - metricsservice ports: - "10001:10001" + + accesslogservice: + build: + context: ./accesslogservice + dockerfile: Dockerfile + networks: + envoymesh: + aliases: + - accesslogservice + ports: + - "10002:10002" fluentd: build: ./fluentd diff --git a/edge-envoy/envoy.yaml b/edge-envoy/envoy.yaml index 14c64c3..4676bd9 100644 --- a/edge-envoy/envoy.yaml +++ b/edge-envoy/envoy.yaml @@ -11,6 +11,14 @@ static_resources: - name: envoy.http_connection_manager typed_config: "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager + access_log: + - name: envoy.http_grpc_access_log + config: + common_config: + log_name: "edgeenvoyaccesslog" + grpc_service: + envoy_grpc: + cluster_name: accesslogservice stat_prefix: ingress_http route_config: name: local_route @@ -49,6 +57,15 @@ static_resources: - socket_address: address: metricsservice port_value: 10001 + - name: accesslogservice + connect_timeout: "0.25s" + type: "strict_dns" + lb_policy: ROUND_ROBIN + http2_protocol_options: {} + hosts: + - socket_address: + address: accesslogservice + port_value: 10002 stats_sinks: - name: envoy.metrics_service config: diff --git a/go.mod b/go.mod index 97936a9..3d44381 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,10 @@ go 1.12 require ( github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect - github.com/envoyproxy/go-control-plane v0.8.6 // indirect - github.com/fluent/fluent-logger-golang v1.4.0 // indirect + github.com/envoyproxy/go-control-plane v0.8.6 + github.com/fluent/fluent-logger-golang v1.4.0 github.com/kr/pretty v0.1.0 // indirect github.com/philhofer/fwd v1.0.0 // indirect github.com/tinylib/msgp v1.1.0 // indirect - google.golang.org/grpc v1.23.0 // indirect + google.golang.org/grpc v1.23.0 )