-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Stop using gs://kubernetes-release bucket, use dl.k8s.io for downloads #14828
Comments
@medyagh another google infrastructure cleanup item...
I guess it also affects the "minikube" subdirectory, eventually ? But primarily it was about kubeadm/kubelet/kubectl downloads: // DefaultKubeBinariesURL returns a URL to kube binaries
func DefaultKubeBinariesURL() string {
return fmt.Sprintf("https://%s/kubernetes-release/release", downloadHost)
}
The hardcoded bucket subdirectory needs go in the url/host instead. |
Current procedure follows upstream: ("Without a package manager") sudo curl -L --remote-name-all https://storage.googleapis.com/kubernetes-release/release/${RELEASE}/bin/linux/${ARCH}/{kubeadm,kubelet,kubectl}
sudo chmod +x {kubeadm,kubelet,kubectl} base := fmt.Sprintf("%s/%s/bin/%s/%s/%s", binaryURL, version, osName, archName, binaryName) |
Now changed to use "dl.k8s.io" (and removed kubectl) |
We are also keen to reduce our reliance on GCP (as in, on only GCP) due to financial concerns. |
Note that: Most minikube users will get their binaries from the "preload" (GCS), not from the dl.k8s.io If the Kubernetes project really wanted to make the downloads smaller, it would use .tar.xz ?
Should still do this change. Will make a PR... Wonder if |
The approach we recommend for end users subject to state-level censorship is to use a trusted mirror within their state's allowed boundary (we don't provide such a mirror). |
OK, will continue to use the current mirror then. // Mirror CN
AliyunMirror = "registry.cn-hangzhou.aliyuncs.com/google_containers"
...
// ImageRepositories contains all known image repositories
ImageRepositories = map[string][]string{
"global": {""},
"cn": {AliyunMirror},
} aliyunMirror = "kubernetes.oss-cn-hangzhou.aliyuncs.com"
downloadHost = "storage.googleapis.com" |
Seem to be confusing GCR and GCS while typing, too close alphabetically... Also, it seems that https://dl.k8s.io/stable.txt does not exist (so |
Apparently the directory is still there, my bad. Needs a
$ curl -s https://dl.k8s.io/release/stable.txt
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
$ curl -sSL https://dl.k8s.io/release/stable.txt
v1.26.1 |
The downloads should be using "
dl.k8s.io
" instead.The hardcoded urls might cause a problem in the future
(like is happening today, with the registry and packages)
i.e. no more
storage.googleapis.com/kubernetes-release
See:
The text was updated successfully, but these errors were encountered: