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

Add a flag to customize kubeReleaseBucketURL #3178

Closed
yxxhero opened this issue Apr 6, 2025 · 11 comments
Closed

Add a flag to customize kubeReleaseBucketURL #3178

yxxhero opened this issue Apr 6, 2025 · 11 comments
Assignees
Labels
area/api priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Milestone

Comments

@yxxhero
Copy link
Member

yxxhero commented Apr 6, 2025

Add a flag to customize kubeReleaseBucketURL

https://dl.k8s.io is not stable in china. so we can add a flag to customize kubeReleaseBucketURL.

@yxxhero
Copy link
Member Author

yxxhero commented Apr 6, 2025

/cc @pacoxu

@yxxhero
Copy link
Member Author

yxxhero commented Apr 6, 2025

/cc @neolit123

@yxxhero yxxhero changed the title Add a flag to cusmize kubeReleaseBucketURL Add a flag to customize kubeReleaseBucketURL Apr 6, 2025
@yxxhero
Copy link
Member Author

yxxhero commented Apr 6, 2025

/assign

@neolit123
Copy link
Member

neolit123 commented Apr 6, 2025

what is the blocker here? if it fails, it ends up using the local version, correct?

new configuration options should go in the api and not flags:
#3160

my initial reaction is -1, https://dl.k8s.io/ is a stable default, same to registry.k8s.io.
but registry.k8s.io is configurable.

by making this configurable are you supposed to deploy a fake service that emulates what dl.k8s.io does?
that sounds very hacky.

@neolit123 neolit123 added priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. area/api labels Apr 6, 2025
@neolit123 neolit123 added this to the v1.34 milestone Apr 6, 2025
@yxxhero
Copy link
Member Author

yxxhero commented Apr 6, 2025

@neolit123 thanks for your comments.
Due to network issues, there may be instability in address access in China, so it would be better to add a configuration option that can cover this scenario in the settings.

@neolit123
Copy link
Member

if there is a custom url, how would one set it up the service?

it has some custom version markers and it falls back to binary version on network failure. it is used to fetch latest patch version, but the user can just pass --kubernetes-version instead.

cc @SataQiu @carlory @HirazawaUi for opinion.

@yxxhero
Copy link
Member Author

yxxhero commented Apr 7, 2025

@neolit123 user can mirror https://dl.k8s.io.

@HirazawaUi
Copy link
Contributor

HirazawaUi commented Apr 7, 2025

LOL, Chinese people active on github are really good at tunneling through the internet, so I've never run into this issue.

In fact, there are plenty of guides on the Chinese internet about using kubeadm offline, and they’ve never been troubled by this problem, so I’m quite skeptical about the necessity of adding this parameter. Could you describe the issue you encountered in more detail?

edit:
I tried turning off my VPN and accessing https://dl.k8s.io/ in my browser, and it seems this website isn’t blocked by the GFW.

@HirazawaUi
Copy link
Contributor

Upon revisiting this issue, I think the vast majority of users wouldn’t do this (even in a restricted network environment). Setting up a mirror for https://dl.k8s.io/ is far more troublesome than simply specifying kubernetes version (at the very least, there’s no reliable documentation telling users how to set up such a mirror). Unless there’s a more compelling reason, my stance also -1.

@carlory
Copy link
Member

carlory commented Apr 9, 2025

Unless there’s a more compelling reason, my stance also -1.

Agreed.

@yxxhero
Copy link
Member Author

yxxhero commented Apr 9, 2025

make sense. thanks you all

@yxxhero yxxhero closed this as completed Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

4 participants