Skip to content

Conversation

oliver-goetz
Copy link
Member

How to categorize this PR?

/area scalability
/kind enhancement

What this PR does / why we need it:
When L7 was introduced with PR #11085 it did not include support for SPDY which is the old streaming protocol in Kubernetes. Websocket is the future protocol which is enabled by default since Kubernetes v1.31.0 (see this blog entry for more information). Thus, L7 load balancing could be enabled for Kubernetes >=v1.31.0 only.

Later, we found out that the Kubernetes Conformance tests require SPDY support until Kubernetes v1.33.0. Additionally, some of our own implementation using streaming APIs had to be adapted (see #8810 (comment)).
We decided to add SPDY support to allow users a smooth transition to websockets and pass the Conformance test when the feature is active.

This PR implements SPDY support and is following this suggestion to create a custom route configuration and a custom (envoy) cluster with no HTTP2 support in order to support upgrading the connection to SPDY.

Given the circumstances that we are using istio, there are two different options.

  • Create the configuration entirely with EnvoyFilters
  • Use Istio objects and add the missing parts via EnvoyFilters

This PR follows the latter approach.
It uses EnvoyFilter to disable HTTP2 and to set the correct upgrade configs. Both cannot be done via Istio objects. Apart from that, the existing Istio configuration is used in a slightly adapted way.

Which issue(s) this PR fixes:
Part of #8810

Special notes for your reviewer:
/cc @ScheererJ @DockToFuture @hendrikKahl

Release note:

L7 load balancing is supporting the SPDY protocol for streaming APIs too.
L7 load balancing can now be enabled independently from the Kubernetes version of the shoot when `IstioTLSTermination` feature gate is enabled on the seed.

@gardener-prow gardener-prow bot added area/scalability Scalability related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 3, 2025
@ScheererJ
Copy link
Member

/assign

Copy link
Member

@ScheererJ ScheererJ left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the enhancement. It will hopefully make rollout of L7 load-balancing feasible.

I found a few nits, though.

Copy link
Member

@ScheererJ ScheererJ left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Apr 14, 2025
Copy link
Contributor

gardener-prow bot commented Apr 14, 2025

LGTM label has been added.

Git tree hash: 79df776cf40e9b221093505aae0eb39a829ffe3a

Copy link
Contributor

gardener-prow bot commented Apr 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ScheererJ

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 14, 2025
@gardener-prow gardener-prow bot merged commit 2122d06 into gardener:master Apr 14, 2025
19 checks passed
@oliver-goetz oliver-goetz deleted the enh/l7-spdy-support branch April 14, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/scalability Scalability related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants