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

feat(kuma-cp) support for http2 #911

Merged
merged 1 commit into from
Jul 21, 2020
Merged

feat(kuma-cp) support for http2 #911

merged 1 commit into from
Jul 21, 2020

Conversation

jakubdyszkiewicz
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz commented Jul 16, 2020

Summary

Let's assume connection

web <--C1--> web's Envoy <--C2--> backend's Envoy <--C3--> backend

This PR sets HTTP/2 by default for connections between Envoys (C2 in the above example).

It also allows to set a protocol: http2 tag for dataplane, so for example if such tag is set for backend, the C3 will also be on http2.

HTTP/2 support in Envoy can be enabled by setting http2ProtocolOptions: {} on a cluster.

SSL is recommended for HTTP/2, but it's not required. Connections between Envoy works on HTTP/2 without mTLS.

If backend is on HTTP/2 and there is no option to resign from TLS, TLS context can be configured with new ProxyTemplate modifications.

Issues resolved

Fix #889

Documentation

kumahq/kuma-website#239

clusterBuilder := envoy_clusters.NewClusterBuilder().
Configure(envoy_clusters.StaticCluster(localClusterName, endpoint.WorkloadIP, endpoint.WorkloadPort))
if protocol == mesh_core.ProtocolHTTP2 {
clusterBuilder.Configure(envoy_clusters.Http2())
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be like this?

clusterBuilder = clusterBuilder.Configure(envoy_clusters.Http2())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does not have to be, cluster builder is mutable.

Copy link
Contributor

@nickolaev nickolaev left a comment

Choose a reason for hiding this comment

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

Looks great!

@jakubdyszkiewicz jakubdyszkiewicz merged commit 129d1a7 into master Jul 21, 2020
@jakubdyszkiewicz jakubdyszkiewicz deleted the http2 branch July 21, 2020 09:34
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.

Missing support for http2 in kuma-sidecar (envoy)
3 participants