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

🐛 Disable default apiserver timeout (60s) for Syncer tunnel connection #2897

Merged

Conversation

jmprusi
Copy link
Member

@jmprusi jmprusi commented Mar 14, 2023

Summary

This PR adds the tunnel subresource (used by the syncer reverse tunnel) to the LongRunningFunc filter function. That is done to avoid the default timeout of 60s when accessing the tunnel subresource; this will fix the current issue where the Syncer tunnel is disconnected every minute, improving the end-user experience when accessing pods logs/exec...

Related issue(s)

Fixes #2886

pkg/server/config.go Outdated Show resolved Hide resolved
pkg/server/config.go Outdated Show resolved Hide resolved
pkg/server/config.go Outdated Show resolved Hide resolved
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 15, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ncdc, stevekuznetsov

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:
  • OWNERS [ncdc,stevekuznetsov]

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 15, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ncdc, stevekuznetsov

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:
  • OWNERS [ncdc,stevekuznetsov]

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

@jmprusi
Copy link
Member Author

jmprusi commented Mar 15, 2023

/retest

Error: failed to publish images: error building "ko://github.com/kcp-dev/kcp/cmd/syncer": GET https://cgr.dev/token?scope=repository%3Achainguard%2Fstatic%3Apull&service=ghcr.io: unexpected status code 503 Service Unavailable

@jmprusi
Copy link
Member Author

jmprusi commented Mar 15, 2023

/retest

@openshift-merge-robot openshift-merge-robot merged commit 810e6fd into kcp-dev:main Mar 15, 2023
@jmprusi jmprusi deleted the jmprusi/longrunning_tunnel branch March 15, 2023 23:44
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Pod logs periodically fail with "syncer tunnels: tunnel closed"
4 participants