Skip to content
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

internal/envoy: enable Envoy ADS support #1864

Closed
wants to merge 1 commit into from

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Nov 6, 2019

Since the Contour GRPC server already multiplexes Envoy requests
using the resource type URL, we can support ADS simply by enabling
it in the bootstrap configuration.

Signed-off-by: James Peach jpeach@vmware.com

@@ -37,6 +37,7 @@ func registerBootstrap(app *kingpin.Application) (*kingpin.CmdClause, *bootstrap
bootstrap.Flag("envoy-cert-file", "gRPC Client cert filename for Envoy to load").Envar("ENVOY_CERT_FILE").StringVar(&ctx.config.GrpcClientCert)
bootstrap.Flag("envoy-key-file", "gRPC Client key filename for Envoy to load").Envar("ENVOY_KEY_FILE").StringVar(&ctx.config.GrpcClientKey)
bootstrap.Flag("namespace", "The namespace the Envoy container will run in").Envar("CONTOUR_NAMESPACE").Default("projectcontour").StringVar(&ctx.config.Namespace)
bootstrap.Flag("enable-ads", "Enable the Envoy Aggregated Discovery Service").BoolVar(&ctx.config.EnableADS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to not just turn this on and not allow for a flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not especially, just risk mitigation. I'd be OK with removing it, or flipping the default. I'd slightly prefer the latter, since users could flip ADS off if something horrible happens :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flipped this so it is enabled by default.

@jpeach jpeach changed the title RFC: Enable Envoy ADS support. internal/envoy: enable Envoy ADS support Nov 12, 2019
@jpeach jpeach marked this pull request as ready for review November 12, 2019 01:55
@jpeach
Copy link
Contributor Author

jpeach commented Nov 18, 2019

@davecheney Can you please take a look?

@davecheney
Copy link
Contributor

davecheney commented Nov 18, 2019 via email

@jpeach
Copy link
Contributor Author

jpeach commented Dec 20, 2019

Related #1178 and #1286.

Since the Contour GRPC server already multiplexes Envoy requests
using the resource type URL, we can support ADS simply by enabling
it in the bootstrap configuration.

This fixes projectcontour#1178.
This fixes projectcontour#1286.

Signed-off-by: James Peach <jpeach@vmware.com>
@jpeach
Copy link
Contributor Author

jpeach commented Jan 20, 2020

Updated with a nonce de-synchronization fix.

@jpeach
Copy link
Contributor Author

jpeach commented Jan 22, 2020

This needs a lot more work, based on my improved understanding of ADS.

@jpeach jpeach closed this Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants