2015-06-26 21:42:48 +00:00
|
|
|
# Getting Kubernetes Builds
|
|
|
|
|
2016-05-03 19:31:42 +00:00
|
|
|
You can use [hack/get-build.sh](http://releases.k8s.io/HEAD/hack/get-build.sh)
|
|
|
|
to get a build or to use as a reference on how to get the most recent builds
|
|
|
|
with curl. With `get-build.sh` you can grab the most recent stable build, the
|
|
|
|
most recent release candidate, or the most recent build to pass our ci and gce
|
|
|
|
e2e tests (essentially a nightly build).
|
2015-06-26 21:42:48 +00:00
|
|
|
|
2015-10-12 23:11:12 +00:00
|
|
|
Run `./hack/get-build.sh -h` for its usage.
|
|
|
|
|
2016-05-03 19:31:42 +00:00
|
|
|
To get a build at a specific version (v1.1.1) use:
|
2015-10-12 23:11:12 +00:00
|
|
|
|
2015-07-19 08:54:49 +00:00
|
|
|
```console
|
2016-03-06 21:07:51 +00:00
|
|
|
./hack/get-build.sh v1.1.1
|
2015-10-12 23:11:12 +00:00
|
|
|
```
|
2015-06-26 21:42:48 +00:00
|
|
|
|
2016-05-03 19:31:42 +00:00
|
|
|
To get the latest stable release:
|
2015-10-12 23:11:12 +00:00
|
|
|
|
|
|
|
```console
|
|
|
|
./hack/get-build.sh release/stable
|
|
|
|
```
|
|
|
|
|
2016-05-03 19:31:42 +00:00
|
|
|
Use the "-v" option to print the version number of a build without retrieving
|
|
|
|
it. For example, the following prints the version number for the latest ci
|
|
|
|
build:
|
2015-10-12 23:11:12 +00:00
|
|
|
|
|
|
|
```console
|
|
|
|
./hack/get-build.sh -v ci/latest
|
2015-06-26 21:42:48 +00:00
|
|
|
```
|
|
|
|
|
2016-05-03 19:31:42 +00:00
|
|
|
You can also use the gsutil tool to explore the Google Cloud Storage release
|
|
|
|
buckets. Here are some examples:
|
2015-07-17 02:01:02 +00:00
|
|
|
|
2015-07-19 08:54:49 +00:00
|
|
|
```sh
|
2016-06-29 22:02:37 +00:00
|
|
|
gsutil cat gs://kubernetes-release-dev/ci/latest.txt # output the latest ci version number
|
|
|
|
gsutil cat gs://kubernetes-release-dev/ci/latest-green.txt # output the latest ci version number that passed gce e2e
|
|
|
|
gsutil ls gs://kubernetes-release-dev/ci/v0.20.0-29-g29a55cc/ # list the contents of a ci release
|
2015-06-26 21:42:48 +00:00
|
|
|
gsutil ls gs://kubernetes-release/release # list all official releases and rcs
|
|
|
|
```
|
|
|
|
|
2016-03-06 21:07:51 +00:00
|
|
|
## Install `gsutil`
|
|
|
|
|
|
|
|
Example installation:
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ curl -sSL https://storage.googleapis.com/pub/gsutil.tar.gz | sudo tar -xz -C /usr/local/src
|
|
|
|
$ sudo ln -s /usr/local/src/gsutil/gsutil /usr/bin/gsutil
|
|
|
|
```
|
2015-06-26 21:42:48 +00:00
|
|
|
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
2015-06-26 21:42:48 +00:00
|
|
|
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/devel/getting-builds.md?pixel)]()
|
2015-07-14 00:13:09 +00:00
|
|
|
<!-- END MUNGE: GENERATED_ANALYTICS -->
|