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

Improve timeout handling for setup.Initialize #2591

Open
mayooot opened this issue Mar 14, 2025 · 0 comments
Open

Improve timeout handling for setup.Initialize #2591

mayooot opened this issue Mar 14, 2025 · 0 comments

Comments

@mayooot
Copy link
Contributor

mayooot commented Mar 14, 2025

Is your feature request related to a problem?

We are currently using vcluster in our production environment, and we encountered an occasional problem where the <vcluster-id>-certs secret was not created after the vcluster was created, which ultimately resulted in apiserver, controller-manager, and etcd not being Running.

Our guess is that it is a k8s cluster network issue that causes the syncer container to fail when creating the secret.

Image

Which solution do you suggest?

We modified the Initialize method in pkg/setup/initialize.go to set the timeout to 5 minutes, which I think alleviates the problem.

And we created a 30s context in the initialize method, mainly to solve the problem of calling k8s resources due to network problems that cause the request to get stuck, and the PollUntilContextTimeout can't go to the next loop.

Which alternative solutions exist?

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant