-
Notifications
You must be signed in to change notification settings - Fork 828
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
Release.key URL redirect causes problem with Cloud Init and gpg #6188
Comments
Tickle this as it still happens. |
/sig release |
This seems like a cloud-init bug, if anything?
Officially you should not depend on implementation details. We could have to switch backing hosts at any time. It is community run, funded on donations from vendors, and subject to change at any time. For registry.k8s.io (container images) that is documented at https://registry.k8s.io#stability I don't think we have a landing page or separate docs for pkgs.k8s.io currently. Sorry for the delayed response, most of us are doing a LOT these days. |
Lots of services serve 302 to current hosts, cloud-init really ought to have a |
If you look at the error, it's gpg that fails before the See my community question to get around this issue, notably "gpg doesn't have a built-in option to automatically follow redirects": https://serverfault.com/questions/1149572/cloud-init-cant-create-apt-source-from-k8s-io-due-to-302-redirect I agree that this is Cloud Init, or rather gpg, issue at it's core, but I'm surprised that the docs don't at least mention the gpg restriction - that seems like it would be a common issue that users would face following the docs. Anyway, if nothing else, it's documented here. |
The documentation covers a way that's known to work; it's to use This is in my opinion a topic for SIG Docs rather than SIG Release, I recommend reaching out to them if you think that the documentation should be improved.
@BenTheElder clearly described this (thank you!), we don't provide any guarantees on what URL is actually used by This is documented in the official announcement, although it would be nice if pkgs.k8s.io had a landing page with the relevant information. |
I created a new issue to track adding a landing page for |
@xmudrii: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I've got a Clout Init setup that creates/adds apt sources upon VM creation (my original query into this can be found at Stackoverflow).
The official installation documentation states the following for configuring deb sources on Debian-based systems:
The URL
https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key
is a302
redirect tohttps://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.28/deb/Release.key
When configuring a system via Cloud Init, gpg fails:
The solution is to use the redirect URL in the Cloud Init config.
I guess this begs the questions:
The text was updated successfully, but these errors were encountered: