-
Notifications
You must be signed in to change notification settings - Fork 704
docs: xds name scheme v2 #6656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
docs: xds name scheme v2 #6656
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -82,6 +82,89 @@ data: | |
|
|
||
| {{< boilerplate rollout-envoy-gateway >}} | ||
|
|
||
| ## XDS Name Scheme V2 | ||
|
|
||
| Starting from v1.5, Envoy Gateway uses version 2 of the xDS name scheme when generating xDS resources. | ||
| Because [EnvoyPatchPolicy][] relies on specific xDS resource names, it’s important to use the correct naming format when authoring a patch policy. | ||
|
|
||
| | Component | Scheme Version | Format Description | Example | | ||
| |----------------------|----------------|------------------------------------------------------------------------------|----------------------------------| | ||
| | **Listener name** | Old | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>` | `default/eg/http` | | ||
| | | V2 | `<Protocol>-<Port>` | `tcp-80` | | ||
| | **RouteConfig name** | Old | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>` | `default/eg/http` | | ||
| | | V2 (HTTP) | `http-<Port>` | `http-80` | | ||
| | | V2 (HTTPS) | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>` | `default/eg/https` | | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually we need to apply the same name pattern of HTTP to HTTP3 - this will be addressed in a follow-up PR. |
||
| | **FilterChain name** | Old | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>` | `default/eg/http` | | ||
| | | V2 (HTTP) | `http-<Port>` | `http-80` | | ||
| | | V2 (HTTPS) | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>` | `default/eg/https` | | ||
| | **VirtualHost name** | Old | `<GatewayNamespace>/<GatewayName>/<GatewayListenerName>/<VirtualHost>` | `default/eg/http/www_example_com` | | ||
| | | V2 | `<VirtualHost>` | `www_example_com` | | ||
| | **HCM StatPrefix** | Old | `<ApplicationProtocol>/<ContainerPort>` | `http-10080`, `https-10443` | | ||
| | | V2 (HTTP) | `http-<Port>` | `http-80` | | ||
| | | V2 (HTTPS) | `https-<Port>` | `https-443` | | ||
|
|
||
|
|
||
| This change is gated by the XDSNameSchemeV2 runtime flag. The flag is disabled by default in v1.5 and will be enabled by default starting in v1.6. | ||
|
|
||
| We recommend users begin migrating their [EnvoyPatchPolicy][] resources to use the version 2 naming scheme before upgrading to v1.6. | ||
|
|
||
| To opt in to the new naming scheme early, add the`XDSNameSchemeV2` runtime flag to the `runtimeFlags.enabled` field in your [EnvoyGateway][] configuration. | ||
zhaohuabing marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| {{< tabpane text=true >}} | ||
| {{% tab header="Apply from stdin" %}} | ||
|
|
||
| ```shell | ||
| cat <<EOF | kubectl apply -f - | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: envoy-gateway-config | ||
| namespace: envoy-gateway-system | ||
| data: | ||
| envoy-gateway.yaml: | | ||
| apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
| kind: EnvoyGateway | ||
| provider: | ||
| type: Kubernetes | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| extensionApis: | ||
| enableEnvoyPatchPolicy: true | ||
| runtimeFlags: | ||
| enabled: | ||
| - XDSNameSchemeV2 | ||
| EOF | ||
| ``` | ||
|
|
||
| {{% /tab %}} | ||
| {{% tab header="Apply from file" %}} | ||
| Save and apply the following resource to your cluster: | ||
|
|
||
| ```yaml | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: envoy-gateway-config | ||
| namespace: envoy-gateway-system | ||
| data: | ||
| envoy-gateway.yaml: | | ||
| apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
| kind: EnvoyGateway | ||
| provider: | ||
| type: Kubernetes | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| extensionApis: | ||
| enableEnvoyPatchPolicy: true | ||
| runtimeFlags: | ||
| enabled: | ||
| - XDSNameSchemeV2 | ||
| ``` | ||
|
|
||
| {{% /tab %}} | ||
| {{< /tabpane >}} | ||
|
|
||
| ## Testing | ||
|
|
||
| ### Customize Response | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.