-
Notifications
You must be signed in to change notification settings - Fork 716
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
fix: use dl.k8s.io, not kubernetes-release bucket #2872
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,8 @@ The table below summarize the current state: | |
|
||
| | .deb or .rpm | kubeadm binary | control plane | | ||
|-------------------------|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | ||
| **GA release** | from .deb or .rpm repository | from [github release page](https://github.com/kubernetes/kubernetes/releases) or from `gs://kubernetes-release/release/` GCS bucket | from `k8s.gcr.io` container registry or from [github release page](https://github.com/kubernetes/kubernetes/releases) | | ||
| **alpha/beta release*** | not available. | from [github release page](https://github.com/kubernetes/kubernetes/releases) or from `gs://kubernetes-release/release/` GCS bucket | from `k8s.gcr.io` container registry or from [github release page](https://github.com/kubernetes/kubernetes/releases) | | ||
| **GA release** | from .deb or .rpm repository | from [github release page](https://github.com/kubernetes/kubernetes/releases) or from `https://dl.k8s.io/` release bucket | from `k8s.gcr.io` container registry or from [github release page](https://github.com/kubernetes/kubernetes/releases) | | ||
| **alpha/beta release*** | not available. | from [github release page](https://github.com/kubernetes/kubernetes/releases) or from `https://dl.k8s.io/` release bucket | from `k8s.gcr.io` container registry or from [github release page](https://github.com/kubernetes/kubernetes/releases) | | ||
| **CI/CD release*** | not available. | from `gs://k8s-release-dev/ci/` GCS bucket (built every merge) | from `gcr.io/k8s-staging-ci-images` container registry (built every few hours, not by PR) | | ||
|
||
[*] for alpha/beta and CI/CD currently it is not possible to have exact version number consistency for all the | ||
|
@@ -94,29 +94,16 @@ apt-get install <package name>=<version number> | |
yum install <package name>-<version number> | ||
``` | ||
|
||
### Getting kubeadm binaries from a GCS bucket | ||
### Getting kubeadm binaries from a release bucket | ||
|
||
Pre-compiled GA, alpha/beta versions of kubeadm binary are deployed into `gs://kubernetes-release/release/` GCS bucket, | ||
Pre-compiled GA, alpha/beta versions of kubeadm binary are deployed into `https://dl.k8s.io/release/` release bucket, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pacoxu mentioned this URL is a 404. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be a 302 if done with $ curl -s -o /dev/null -w "%{http_code}\n" https://dl.k8s.io/release/
302
$ curl -sL -o /dev/null -w "%{http_code}\n" https://dl.k8s.io/release/
404
$ curl -sL -o /dev/null -w "%{http_code}\n" https://dl.k8s.io/release/stable.txt
200 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sgtm, @pacoxu please let us know if you see a problem with the doc text, as is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /lgtm |
||
while CI/CD versions are deployed into `gs://k8s-release-dev/ci/` bucket. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same Q as above for the CI bucket There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
To explore versions available in Google Storage buckets use: | ||
|
||
```bash | ||
gsutil ls gs://{bucket-name}{filter} | ||
|
||
# e.g. search all GA and alpha/beta v1.10 releases | ||
gsutil ls -d gs://kubernetes-release/release/v1.10* | ||
``` | ||
|
||
As alternative, you can browse GCS buckets using <https://console.cloud.google.com/storage/browser/{bucket-name}> or | ||
<http://gcsweb.k8s.io/gcs/kubernetes-release/release/> (only for `gs://kubernetes-release/release/`). | ||
To explore Kubernetes versions available to use, visit the [github release page](https://github.com/kubernetes/kubernetes/releases). | ||
|
||
To retrieve a pre-compiled version of kubeadm binary use: | ||
|
||
```bash | ||
gsutil cp gs://{bucket-name}/{release}/bin/linux/amd64/kubeadm . | ||
|
||
# or, only for releases in gs://kubernetes-release/release/ | ||
curl -L https://dl.k8s.io/release/{release}/bin/linux/amd64/kubeadm && chown +x kubeadm | ||
``` | ||
|
||
|
@@ -167,8 +154,8 @@ Run `cluster/get-kube-binaries.sh` to download the tarball with server binaries. | |
|
||
> Inside release notes, usually there is a direct link for getting server binaries directly | ||
|
||
> `cluster/get-kube-binaries.sh` retrieves server binaries from `gs://kubernetes-release/release/{release}` | ||
GCS bucket; you can use `gsutil` to get server binaries directly. | ||
> `cluster/get-kube-binaries.sh` retrieves server binaries from `https://dl.k8s.io/release/{release}` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note, in the future we should clean all /cluster/x referenced There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Were those fully depricated or were they moved somewhere else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i haven't checked. we should not ref /cluster tools from k/kubeadm, since /cluster should not be used directly by users. instead users should curl, perhaps. |
||
Release bucket; you can use `curl` to get server binaries directly. | ||
|
||
Both Kubeadm binaries and docker images are available in `/server/bin` folder of `kubernetes-server-linux-amd64.tar.gz` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the plan for
gs://k8s-release-dev/ci/
, can we change it with its pot. replacement in this PR?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asking kubernetes/k8s.io#2396 (comment), rework based on the sig's recommendation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubernetes/k8s.io#2396 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack