Created
August 28, 2020 22:59
-
-
Save kyessenov/16a09bf62ff679b98223e2322fef4982 to your computer and use it in GitHub Desktop.
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
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 8081 | |
traffic_direction: INBOUND | |
filter_chains: | |
- filters: | |
- name: inbound-http-proxy | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | |
codec_type: auto | |
stat_prefix: ingress_http | |
route_config: | |
name: local_route | |
virtual_hosts: | |
- name: backend | |
domains: | |
- "*" | |
routes: | |
- match: | |
prefix: "/" | |
direct_response: | |
status: 200 | |
body: | |
inline_string: "hello, world!\n" | |
http_filters: | |
- name: stats | |
typed_config: | |
"@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
type_url: type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm | |
value: | |
config: | |
root_id: stats_outbound | |
configuration: | |
"@type": "type.googleapis.com/google.protobuf.StringValue" | |
value: | | |
{ | |
"debug": "false", | |
"stat_prefix": "istio", | |
"metrics": [ | |
{ | |
"dimensions": { | |
"source_cluster": "node.metadata['CLUSTER_ID']", | |
"destination_cluster": "upstream_peer.cluster_id" | |
} | |
} | |
] | |
} | |
vm_config: | |
vm_id: stats_outbound | |
runtime: envoy.wasm.runtime.v8 | |
allow_precompiled: true | |
code: | |
local: | |
filename: bazel-bin/extensions/stats.compiled.wasm | |
- name: front-router | |
typed_config: | |
"@type": type.googleapis.com/envoy.config.filter.http.router.v2.Router | |
clusters: | |
- connect_timeout: 1s | |
http2_protocol_options: {} | |
name: xds_cluster | |
load_assignment: | |
cluster_name: xds_cluster | |
endpoints: | |
- lb_endpoints: | |
- endpoint: | |
address: | |
socket_address: | |
address: 127.0.0.1 | |
port_value: 8080 | |
admin: | |
access_log_path: "/dev/null" | |
address: | |
socket_address: | |
address: 0.0.0.0 | |
port_value: 8001 | |
node: | |
id: test | |
cluster: test | |
metadata: { | |
"EXCHANGE_KEYS": "NAME,NAMESPACE,INSTANCE_IPS,LABELS,OWNER,PLATFORM_METADATA,WORKLOAD_NAME,CANONICAL_TELEMETRY_SERVICE,MESH_ID,SERVICE_ACCOUNT", | |
"INSTANCE_IPS": "10.52.0.34,fe80::a075:11ff:fe5e:f1cd", | |
"LABELS": { | |
"app": "ratings", | |
"pod-template-hash": "84975bc778", | |
"version": "v1", | |
"service.istio.io/canonical-name": "ratings", | |
"service.istio.io/canonical-revision": "version-1" | |
}, | |
"MESH_ID": "mesh", | |
"NAME": "ratings-v1-84975bc778-pxz2w", | |
"NAMESPACE": "default", | |
"OWNER": "kubernetes://apis/apps/v1/namespaces/default/deployments/ratings-v1", | |
"PLATFORM_METADATA": { | |
"gcp_gke_cluster_name": "test-cluster", | |
"gcp_location": "us-east4-b", | |
"gcp_project": "test-project" | |
}, | |
"POD_NAME": "ratings-v1-84975bc778-pxz2w", | |
"SERVICE_ACCOUNT": "bookinfo-ratings", | |
"WORKLOAD_NAME": "ratings-v1", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment