forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: example config with runtime overrides of deprecated config (e…
…nvoyproxy#9850) Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
- Loading branch information
1 parent
b561556
commit 621b346
Showing
5 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
admin: | ||
access_log_path: /tmp/admin_access.log | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
address: 127.0.0.1 | ||
port_value: 9901 | ||
static_resources: | ||
listeners: | ||
- name: listener_0 | ||
address: | ||
socket_address: | ||
protocol: TCP | ||
address: 0.0.0.0 | ||
port_value: 10000 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: local_service | ||
domains: ["*"] | ||
routes: | ||
- match: | ||
prefix: "/" | ||
route: | ||
host_rewrite: www.google.com | ||
cluster: service_google | ||
cors: | ||
allow_origin: | ||
- "test-origin-1" | ||
http_filters: | ||
- name: envoy.router | ||
clusters: | ||
- name: service_google | ||
connect_timeout: 0.25s | ||
type: LOGICAL_DNS | ||
# Comment out the following line to test on v6 networks | ||
dns_lookup_family: V4_ONLY | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: service_google | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: www.google.com | ||
port_value: 443 | ||
transport_socket: | ||
name: envoy.transport_sockets.tls | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.api.v2.auth.UpstreamTlsContext | ||
sni: www.google.com | ||
tracing: | ||
http: | ||
name: envoy.zipkin | ||
config: | ||
collector_cluster: service_google | ||
collector_endpoint: /api/v1/spans | ||
collector_endpoint_version: HTTP_JSON_V1 | ||
layered_runtime: | ||
layers: | ||
- name: static_layer | ||
static_layer: | ||
envoy.deprecated_features:envoy.config.trace.v2.ZipkinConfig.HTTP_JSON_V1: true | ||
envoy.deprecated_features:envoy.api.v2.route.CorsPolicy.allow_origin: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.. _faq_deprecation: | ||
|
||
How are configuration deprecations handled? | ||
=========================================== | ||
|
||
As documented in the "Breaking change policy" in :repo:`CONTRIBUTING.md`, features can be marked | ||
as deprecated at any point as long as there is a replacement available. Each deprecation is | ||
annotated in the API proto itself and explained in detail in the | ||
:ref:`Envoy documentation <deprecated>`. | ||
|
||
For the first 3 months following deprecation, use of deprecated fields will result in a logged | ||
warning and incrementing the :ref:`deprecated_feature_use <runtime_stats>` counter. | ||
After that point, the field will be annotated as fatal-by-default and further use of the field | ||
will will be treated as invalid configuration unless | ||
:ref:`runtime overrides <config_runtime_deprecation>` are employed to re-enable use. |
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