Skip to content

Bump konnectivity to v0.37.1 - #8826

Open
k0s-bot wants to merge 1 commit into
mainfrom
renovate/main-konnectivity
Open

k0s-bot wants to merge 1 commit into
mainfrom
renovate/main-konnectivity

Conversation

@k0s-bot

@k0s-bot k0s-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change Age Confidence
kubernetes-sigs/apiserver-network-proxy patch 0.37.0 → 0.37.1 age confidence
sigs.k8s.io/apiserver-network-proxy/konnectivity-client indirect patch v0.37.0 → v0.37.1 age confidence

Release Notes

kubernetes-sigs/apiserver-network-proxy

v0.37.1: ANP v0.37.1 Release

Compare Source

SECURITY

  1. Go 1.27.3 build.
    Go released a critical security fix, so the build now requires Go 1.27.3
    via GOTOOLCHAIN, and the Docker build uses the same version. The linter was
    updated to work with it.

RELIABILITY FIXES

  1. A dial timeout no longer drops a healthy agent (#​924).
    Before, if sending a dial request to an agent timed out, the server retired
    the whole agent connection and cut every other tunnel using it. Now only
    that one dial fails. Waiting for the send lock can also be cancelled, so
    expired requests are never sent.

  2. Client Close() no longer blocks.
    conn.Close() used to wait up to 10 seconds for the server to confirm the
    close. A webhook call with a 10s timeout could therefore take 20s and hold
    an apiserver goroutine the whole time. Close() now returns right away and
    waits for the confirmation in the background.

  3. The agent no longer closes the wrong connection.
    When a server connection died, two cleanup paths could each try to remove
    it. If the agent reconnected in between, the second removal killed the new,
    healthy connection. Removal now checks that it is removing the same client.

  4. Fixed an agent crash on auth setup failure (#​927).
    If the auth context failed to initialize, the agent could crash with a nil
    pointer error and lose the real error. Both problems are fixed.

  5. Pending-dial counts stay accurate.
    Some cleanup paths skipped updating the pending_backend_dials gauge or the
    per-agent count of dials in progress. Every path now updates them.

FEATURES AND TUNING

  1. The server prefers faster agents for new dials.
    The server used to send every agent an equal share of new dials, even one
    too short on CPU to dial quickly. It now estimates how long each agent will
    take to dial and avoids clearly slow ones. In testing, mean dial time fell
    from 31ms to 5ms.

  2. New --keepalive-timeout flag on server and agent.
    You can now set how long each side waits for a keepalive ping reply before
    closing the connection (default 20s, same as before). With short keepalive
    values, dead connections behind load balancers or NAT are found in seconds
    instead of minutes.

  3. Fewer wasted reconnects with --sync-forever.
    With --count-server-leases, the agent stops dialing once it is connected to
    every server. Before, it opened a new connection every sync interval,
    causing churn on the load balancer and NAT and noise in the logs.

  4. Forward HTTP proxying.
    The HTTP frontend now forwards plain http:// requests like GET and POST
    through agent tunnels, not just CONNECT requests. The
    --backend-dial-timeout help text now covers these dials.

OBSERVABILITY

  1. New metrics for connection loss.
    Agent: server_connection_lost_total (by reason) and
    server_connection_attempts_total (by result).
    Server: established_connections_closed_total (by reason) and
    backend_connection_duration_seconds.
    These record short outages that a gauge can miss between scrapes.

TOOLING AND DOCS

  1. Troubleshooting toolkit.
    examples/kubernetes-troubleshooting has scripts and write-ups for
    reproducing proxy failures in a kind cluster, such as connection resets,
    CPU-starved agents and NAT behaviour. The tools tunnel-probe, webhook-load
    and test-webhook now live under cmd/.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@k0s-bot
k0s-bot requested review from a team as code owners November 14, 2026 00:43
@k0s-bot k0s-bot added the dependencies Pull requests that update a dependency file label Nov 14, 2026
@k0s-bot
k0s-bot requested review from apedriza and ncopa November 14, 2026 00:43
@k0s-bot
k0s-bot enabled auto-merge November 14, 2026 00:43
@k0s-bot
k0s-bot force-pushed the renovate/main-konnectivity branch 4 times, most recently from 6a66314 to a9375f4 Compare November 16, 2026 12:41
var statusErr *apierrors.StatusError
if !errors.As(err, &statusErr) {
// https://github.com/kubernetes-sigs/apiserver-network-proxy/blob/v0.37.0/pkg/server/backend_manager.go#L457
// https://github.com/kubernetes-sigs/apiserver-network-proxy/blob/v0.37.1/pkg/server/backend_manager.go#L457

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

https://github.com/kubernetes-sigs/apiserver-network-proxy/blob/v0.37.1/pkg/server/backend_manager.go#L578

I'm not fixing this yet because we need to bump quay.io/k0sproject/apiserver-network-proxy-agent image first

@k0s-bot
k0s-bot force-pushed the renovate/main-konnectivity branch 12 times, most recently from af80fd4 to f2499a5 Compare November 20, 2026 16:28
Signed-off-by: k0s-bot <110385897+k0s-bot@users.noreply.github.com>
@k0s-bot
k0s-bot force-pushed the renovate/main-konnectivity branch from f2499a5 to 8951bdd Compare November 20, 2026 20:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants