Skip to content

Instantly share code, notes, and snippets.

@dwradcliffe
Created March 14, 2019 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwradcliffe/98e8082eaecbb9982a023aea6c5df103 to your computer and use it in GitHub Desktop.
Save dwradcliffe/98e8082eaecbb9982a023aea6c5df103 to your computer and use it in GitHub Desktop.
expected = xds marshaling to any is enabled,
[
{
"name": "0.0.0.0_80",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 80
}
},
"filterChains": [
{
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"access_log": [
{
"config": {
"path": "/dev/stdout"
},
"name": "envoy.file_access_log"
}
],
"generate_request_id": true,
"http_filters": [
{
"config": {
"default_destination_service": "default",
"forward_attributes": {
"attributes": {
"source.uid": {
"string_value": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
}
}
},
"mixer_attributes": {
"attributes": {
"context.reporter.kind": {
"string_value": "outbound"
},
"context.reporter.uid": {
"string_value": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
},
"source.namespace": {
"string_value": "irs-client-staging"
},
"source.uid": {
"string_value": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
}
}
},
"service_configs": {
"default": {
"disable_check_calls": true
}
},
"transport": {
"check_cluster": "outbound|15004||istio-policy.istio-system.svc.cluster.local",
"network_fail_policy": {
"base_retry_wait": "0.080s",
"max_retry_wait": "1s"
},
"report_cluster": "outbound|15004||istio-telemetry.istio-system.svc.cluster.local"
}
},
"name": "mixer"
},
{
"name": "envoy.cors"
},
{
"name": "envoy.fault"
},
{
"name": "envoy.router"
}
],
"rds": {
"config_source": {
"ads": {}
},
"route_config_name": "80"
},
"stat_prefix": "0.0.0.0_80",
"stream_idle_timeout": "0s",
"tracing": {
"client_sampling": {
"value": 100
},
"operation_name": "EGRESS",
"overall_sampling": {
"value": 100
},
"random_sampling": {
"value": 1
}
},
"upgrade_configs": [
{
"upgrade_type": "websocket"
}
],
"use_remote_address": false
}
}
]
}
],
"deprecatedV1": {
"bindToPort": false
}
}
]
[
{
"name": "0.0.0.0_80",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 80
}
},
"filterChains": [
{
"filters": [
{
"name": "envoy.http_connection_manager",
"typedConfig": {
"@type": "type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager",
"statPrefix": "0.0.0.0_80",
"rds": {
"configSource": {
"ads": {}
},
"routeConfigName": "80"
},
"httpFilters": [
{
"name": "mixer",
"typedConfig": {
"@type": "type.googleapis.com/istio.mixer.v1.config.client.HttpClientConfig",
"transport": {
"networkFailPolicy": {
"baseRetryWait": "0.080s",
"maxRetryWait": "1s"
},
"checkCluster": "outbound|15004||istio-policy.istio-system.svc.cluster.local",
"reportCluster": "outbound|15004||istio-telemetry.istio-system.svc.cluster.local"
},
"serviceConfigs": {
"default": {
"disableCheckCalls": true
}
},
"defaultDestinationService": "default",
"mixerAttributes": {
"attributes": {
"context.reporter.kind": {
"stringValue": "outbound"
},
"context.reporter.uid": {
"stringValue": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
},
"source.namespace": {
"stringValue": "irs-client-staging"
},
"source.uid": {
"stringValue": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
}
}
},
"forwardAttributes": {
"attributes": {
"source.uid": {
"stringValue": "kubernetes://web-7b6d4ffd59-c6x8f.irs-client-staging"
}
}
}
}
},
{
"name": "envoy.cors"
},
{
"name": "envoy.fault"
},
{
"name": "envoy.router"
}
],
"tracing": {
"operationName": "EGRESS",
"clientSampling": {
"value": 100
},
"randomSampling": {
"value": 1
},
"overallSampling": {
"value": 100
}
},
"streamIdleTimeout": "0s",
"accessLog": [
{
"name": "envoy.file_access_log",
"typedConfig": {
"@type": "type.googleapis.com/envoy.config.accesslog.v2.FileAccessLog",
"path": "/dev/stdout",
"jsonFormat": {
"authority": "%REQ(:AUTHORITY)%",
"bytes_received": "%BYTES_RECEIVED%",
"bytes_sent": "%BYTES_SENT%",
"downstream_local_address": "%DOWNSTREAM_LOCAL_ADDRESS%",
"downstream_remote_address": "%DOWNSTREAM_REMOTE_ADDRESS%",
"duration": "%DURATION%",
"istio_policy_status": "%DYNAMIC_METADATA(istio.mixer:status)%",
"method": "%START_TIME%",
"path": "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%",
"protocol": "%PROTOCOL%",
"request_id": "%REQ(X-REQUEST-ID)%",
"requested_server_name": "%REQUESTED_SERVER_NAME%",
"response_code": "%RESPONSE_CODE%",
"response_flags": "%RESPONSE_FLAGS%",
"start_time": "%START_TIME%",
"upstream_cluster": "%UPSTREAM_CLUSTER%",
"upstream_host": "%UPSTREAM_HOST%",
"upstream_local_address": "%UPSTREAM_LOCAL_ADDRESS%",
"upstream_service_time": "%RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)%",
"user_agent": "%REQ(USER-AGENT)%",
"x_forwarded_for": "%REQ(X-FORWARDED-FOR)%"
}
}
}
],
"useRemoteAddress": false,
"generateRequestId": true,
"upgradeConfigs": [
{
"upgradeType": "websocket"
}
]
}
}
]
}
],
"deprecatedV1": {
"bindToPort": false
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment