Commit Graph

552 Commits (0c669fe6cc48208ebcdd43fa2ff425fce3c359a0)

Author SHA1 Message Date
Minhan Xia 4fa6f3841a fixing dead endpoint black hole udp traffic 2016-04-13 10:20:02 -07:00
k8s-merge-robot af1803bfb9 Merge pull request #23763 from david-mcmahon/build-regex
Automatic merge from submit-queue

Fix valid CI version regex in parse_and_validate_release_version().

Ref: #23759
cc @ihmccreery
2016-04-12 05:19:55 -07:00
k8s-merge-robot 4f329516ae Merge pull request #22149 from luxas/onedotsix
Automatic merge from submit-queue

Up to golang 1.6

A second attempt to upgrade go version above `go1.4`
Merge ASAP after you've cut the `release-1.2` branch and feel ready.
`go1.6` should perform slightly better than `go1.5`, so this time it might work
@gmarek @wojtek-t @zmerlynn @mikedanese @brendandburns @ixdy @thockin
2016-04-05 13:26:18 -07:00
Mike Danese 32426d6e97 don't ship kube-registry-proxy and pause in tars.
pause is built into containervm. if it's not on the machine we should just pull
it. nobody that I'm aware of uses kube-registry-proxy and it makes build/deployment
more complicated and slower.
2016-04-05 07:32:07 -07:00
k8s-merge-robot b8d000853e Merge pull request #21617 from luxas/hyperkube_for_arm
Automatic merge from submit-queue

Cross-build hyperkube and debian-iptables for ARM. Also add a flannel image

We have to be able to build complex docker images too on `amd64` hosts.
Right now we can't build Dockerfiles with `RUN` commands when building for other architectures e.g. ARM.

Resin has a tutorial about this here: https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/
But it's a bit clumsy syntax.

The other alternative would be running this command in a Makefile:
```
# This registers in the kernel that ARM binaries should be run by /usr/bin/qemu-{ARCH}-static
docker run --rm --privileged multiarch/qemu-user-static:register --reset
```
and 
```
ADD https://github.com/multiarch/qemu-user-static/releases/download/v2.5.0/x86_64_qemu-arm-static.tar.xz /usr/bin
```
Then the kernel will be able to differ ARM binaries from amd64. When it finds a ARM binary, it will invoke `/usr/bin/qemu-arm-static` first and lets `qemu` translate the ARM syscalls to amd64 ones.
Some code here: https://github.com/multiarch

WDYT is the best approach? If registering `binfmt_misc` in the kernels of the machines is OK, then I think we should go with that.
Otherwise, we'll have to wait for resin's patch to be merged into mainline qemu before we may use the code I have here now.

@fgrzadkowski @david-mcmahon @brendandburns @zmerlynn @ixdy @ihmccreery @thockin
2016-04-04 22:03:32 -07:00
Lucas Käldström 560268e036 Add a flannel image for arm and amd64. Cross-build debian-iptables for arm, arm64 and ppc64le. Build and push hyperkube for arm on every release 2016-04-04 23:33:32 +03:00
David McMahon c7c7d6c0aa Fix valid CI version regex in kube::release::parse_and_validate_release_version(). 2016-04-04 12:14:15 -07:00
Lucas Käldström c214c76671 Update the pause image to build for arm64 and ppc64le 2016-04-01 21:01:35 +03:00
David McMahon a7b789cb0a Honor incoming OUT_DIR from the Makefile. 2016-03-28 16:34:07 -07:00
Lucas Käldström 2928d0a8ec Up to golang 1.6 2016-03-27 17:17:04 +03:00
Andy Zheng 0a8e68fb49 Trusty: Avoid reaching GCE custom metadata size limit 2016-03-20 10:22:50 -07:00
zhouhaibing089 884fbf3d22 only pull addon images when it does not exist 2016-03-17 10:52:32 +08:00
k8s-merge-robot 2bb7960b61 Merge pull request #22738 from wojtek-t/build_protobufs_in_docker
Auto commit by PR queue bot
2016-03-15 16:56:26 -07:00
Wojciech Tyczynski 52798beef2 Generate protobuf-related files in Docker 2016-03-09 10:45:24 +01:00
mfanjie d433632cd2 add proxy settings for vagrant 2016-03-07 09:57:26 +08:00
Andy Zheng 242b9977c7 Remove manifest copies from Trusty support
This change revises the way to provide kube-system manifests for clusters on Trusty. Originally, we maintained copies of some manifests under cluster/gce/trusty/kube-manifests, which is not scalable and hard to maintain. With this change, clusters on Trusty will use the same source of manifests as ContainerVM. This change also fixes some minor problems such as shell variables and comments to meet the style guidance better.
2016-03-04 11:16:49 -08:00
k8s-merge-robot a511961cc8 Merge pull request #22329 from david-mcmahon/push-official
Auto commit by PR queue bot
2016-03-03 08:52:35 -08:00
k8s-merge-robot d81d823ca5 Merge pull request #22393 from eparis/blunderbuss
Auto commit by PR queue bot
2016-03-02 18:51:56 -08:00
Eric Paris 5e5a823294 Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
David McMahon efa588dcf9 Pass latest or stable to build/push-official-release.sh. 2016-03-02 12:43:27 -08:00
David McMahon 7a54cb2ad0 Add Godeps/LICENSES to server tarball. 2016-03-02 11:23:32 -08:00
k8s-merge-robot 6dbdcfe78f Merge pull request #22116 from david-mcmahon/license-tool
Auto commit by PR queue bot
2016-03-02 07:14:40 -08:00
David McMahon ffeaef6201 New Godeps LICENSE generation tool.
Includes initial Godeps/LICENSES and Godeps/.license_file_state file to ensure
fast local generation.
2016-03-01 18:16:09 -08:00
k8s-merge-robot cdf456af0e Merge pull request #21520 from mikedanese/fastbuild
Auto commit by PR queue bot
2016-02-28 07:23:22 -08:00
Filip Grzadkowski 6f6cb45638 Make #19601 backward compatible.
Fixes #20047
2016-02-25 14:24:51 +01:00
David McMahon c0fe6b765e Remove redundant call of kube::release::gcs::release.
This is called by build/push-official-release.sh.
2016-02-22 16:11:48 -08:00
David McMahon b24fc293e3 Merge pull request #21557 from luxas/fix_typo
Do not push images that don't exist
2016-02-19 11:56:21 -08:00
Mike Danese 132c4271dc add linux fastbuild option to ./build/release.sh 2016-02-19 10:18:05 -08:00
Lucas Käldström bfc9cfdb82 Do not push images that don't exist 2016-02-19 18:45:14 +02:00
k8s-merge-robot 4de373aafd Merge pull request #20714 from fgrzadkowski/push_gcr
Auto commit by PR queue bot
2016-02-18 23:31:13 -08:00
Phillip Wittrock 5fe856c749 Merge pull request #20882 from mikedanese/push-kube-cross
push kube-cross to gcr.io
2016-02-18 16:26:29 -08:00
Filip Grzadkowski 2c51e03759 Switch to k8s.production.user@gmail.com for pushing docker images during the release.
Fixes #19623
2016-02-18 20:15:02 +01:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Mike Danese f3b9fa62d6 push kube-cross to gcr.io
And do as much of the build setup work in it as possible.
2016-02-16 10:05:46 -08:00
k8s-merge-robot 62258cab24 Merge pull request #21031 from zmerlynn/distribute-source
Auto commit by PR queue bot
2016-02-14 11:12:18 -08:00
Lucas Käldström b67445b064 Share the host's timezone with the build container 2016-02-11 07:44:05 +02:00
Zach Loafman b857f61009 Output tar of build image during release process
To meet licensing/compliance guidelines, bundle up the source. One of
the easiest ways to do this is just to grab the entire build image
directory - this makes it pretty much guaranteed that the user could
re-run the Docker build again from the exact code point if they wanted
to (they just need to poke at our scripts to figure out how).
2016-02-10 18:04:04 -08:00
k8s-merge-robot fc3316ee1b Merge pull request #20398 from mfanjie/mfanjie-patch-1
Auto commit by PR queue bot
2016-02-09 22:55:18 -08:00
Lucas Käldström c969c041e2 Add support for building arm, arm64 and ppc64le server and client targets 2016-02-07 20:35:14 +02:00
fmeng aaea05980c change sed_opts as array 2016-02-06 16:49:35 +08:00
Daniel Smith 75c1dcaacd Merge pull request #20463 from andyzheng0831/trusty-master
Support master on Ubuntu Trusty
2016-02-05 15:49:28 -08:00
fmeng ef42dad78e update proxy settings for kubernetes build. 2016-02-04 17:38:07 +08:00
k8s-merge-robot dbd7b83d93 Merge pull request #20545 from pmorie/boilerplate
Auto commit by PR queue bot
2016-02-03 19:46:26 -08:00
Paul Morie b672785d72 Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
Paul Morie 05bd107301 Add boilerplate checks for Makefiles 2016-02-03 18:35:26 -05:00
Zach Loafman e87b93f1b8 KUBE_BUILD_GOLANG_VERSION=1.4.2 2016-02-03 11:46:03 -08:00
Zach Loafman 54a9241605 Revert "Up to golang 1.5.3"
This reverts commit d26f4e1583.
2016-02-03 11:44:30 -08:00
Andy Zheng b103f0f279 Support master on Ubuntu Trusty
This change support running kubernetes master on Ubuntu Trusty.
It uses pure cloud-config and shell scripts, and completely gets
rid of saltstack or the release salt tarball.
2016-02-03 11:22:28 -08:00
Jeff Lowdermilk d4e2e71b80 Merge pull request #19537 from mesosphere/jdef_fix_dockerfile_dir_suffix
ADDing to a dir should suffix the dir with /
2016-02-01 10:20:16 -08:00
fmeng 368fb2225c fix sed error in build/common.sh 2016-01-29 10:45:50 +08:00
k8s-merge-robot a95f1b84cb Merge pull request #17243 from yifan-gu/gce_coreos
Auto commit by PR queue bot
2016-01-27 13:02:20 -08:00
Zach Loafman 07c304b43d build: Use Go version in cross image tag
The new tag format is cross-<go version>-<cross version>, starting
with cross-1.5.3-1.

Also bump the image we pre-pull / warn-on to 1.5.3

Fixes #19990
2016-01-22 11:45:41 -08:00
Lucas Käldström d26f4e1583 Up to golang 1.5.3 2016-01-22 08:21:52 +02:00
Yifan Gu 723402c4e9 build/common.sh: Copy manifests. 2016-01-21 16:32:15 -08:00
Alex Mohr 12ecd67c01 Merge pull request #19703 from smarterclayton/add_protobuf
Install protoc into kube-cross Docker image
2016-01-21 14:59:41 -08:00
Alex Mohr e98fb3c424 Merge pull request #19810 from spiffxp/empty-docker-opts-cp
Support building on remote docker-machine instances
2016-01-21 14:30:57 -08:00
Alex Mohr ae56a2a1d5 Merge pull request #19555 from spiffxp/verify-prereqs-noargs
verify_prereqs doesn't special-case on 'clean' arg
2016-01-21 10:43:41 -08:00
Isaac Hollander McCreery 041f152e80 Add flag to force pull on docker build 2016-01-20 09:14:57 -08:00
Isaac Hollander McCreery e95dd01a53 Pin golang build to 1.4.2 instead of floating on 1.4 2016-01-19 17:08:34 -08:00
Aaron Crickenberger d46a97224a Support building on remote docker-machine instances
Use case: I have a docker-machine instance in the cloud, and an empty
DOCKER_OPTS env var.  I want to `build/run.sh hack/build-go.sh`

Previously, this would invoke `docker '' cp` which was erroring out
with: '' not a command.
2016-01-18 17:44:23 -08:00
Clayton Coleman 13acd621a8 Install protoc into kube-cross Docker image 2016-01-15 11:47:05 -05:00
Marek Grabowski e26f25f57b Revert "Add protobuf to the kube build image" 2016-01-15 17:36:14 +01:00
k8s-merge-robot f3793d0942 Merge pull request #19359 from smarterclayton/add_proto_to_build_image
Auto commit by PR queue bot
2016-01-15 07:56:23 -08:00
Mike Danese c446bf508e Merge pull request #19431 from spiffxp/docker-machine-rm-hardcode
Allow for use of docker-machine not named kube-dev
2016-01-14 13:46:10 -08:00
Aaron Crickenberger 4488f7d33c verify_prereqs doesn't special-case on 'clean' arg
update docs and invocation accordingly
2016-01-12 11:26:59 -08:00
James DeFelice 9b8651e7fd ADDing to a dir should suffix the dir with / 2016-01-12 16:26:24 +00:00
k8s-merge-robot cc7acc0c58 Merge pull request #19061 from fgrzadkowski/release_docker
Auto commit by PR queue bot
2016-01-11 20:56:00 -08:00
k8s-merge-robot ce9b117a19 Merge pull request #16698 from mml/issue3885
Auto commit by PR queue bot
2016-01-09 13:38:41 -08:00
Aaron Crickenberger 5062197ec6 Allow for use of docker-machine not named kube-dev 2016-01-08 17:07:48 -08:00
Clayton Coleman d12bbe0da9 Add protobuf to the kube build image 2016-01-06 22:34:18 -05:00
Matt Liggett c6e9ad066e Initial node drain implementation for #3885.
It cordons (marks unschedulable) the given node, and then deletes every
pod on it, optionally using a grace period.  It will not delete pods
managed by neither a ReplicationController nor a DaemonSet without the
use of --force.

Also add cordon/uncordon, which just toggle node schedulability.
2016-01-06 17:28:18 -08:00
Andy Zheng d27e3ae8a1 Run kube-proxy in Trusty in a static pod.
We copy the manifest from salt configurations, and then remove the salt
content in the file and replace the variables with values.
2016-01-05 16:11:58 -08:00
Filip Grzadkowski e7e8c5af84 Push docker images for cluster components during release. 2016-01-05 12:36:10 +01:00
Mike Danese c00dfe82f8 Revert "Push server docker images during the release" 2015-12-22 19:59:56 -08:00
k8s-merge-robot 78b573e803 Merge pull request #18893 from fgrzadkowski/release_docker
Auto commit by PR queue bot
2015-12-22 16:54:18 -08:00
k8s-merge-robot 3f91f18a55 Merge pull request #18488 from yifan-gu/dockerized_python
Auto commit by PR queue bot
2015-12-19 10:52:15 -08:00
Yifan Gu 516032f336 kube-addons: Use python container if python is not found on the machine.
To build the python image, BUILD_PYTHON_IMAGE should be set during make.
When the addon script is running, it will check if python is installed
on the machine, if not, it will use the python image that built previously.
2015-12-18 15:14:56 -08:00
Filip Grzadkowski f6fce5cd43 Push docker images during the release. 2015-12-18 16:08:44 +01:00
Andy Zheng 75e23a3845 Add release support for trusty kube-system manifests.
This is a follow-up work for PR 18115. It adds release support for
kube-system manifests.
2015-12-10 10:47:01 -08:00
Brendan Burns d2dbe56820 Add linux/arm to the list of server builds 2015-11-23 13:55:56 -08:00
k8s-merge-robot ac65782e03 Merge pull request #17121 from mikedanese/kube-proxy-static
Auto commit by PR queue bot
2015-11-20 07:19:26 -08:00
k8s-merge-robot c8d2ec6ffd Merge pull request #16919 from ihmccreery/enable-prerelease-push-official-release
Auto commit by PR queue bot
2015-11-20 06:47:23 -08:00
k8s-merge-robot d25cffef55 Merge pull request #17381 from caesarxuchao/add-blob
Auto commit by PR queue bot
2015-11-20 05:32:31 -08:00
Isaac Hollander McCreery 2fad9a1271 Use env variables instead of BASH_REMATCH for parse_and_validates 2015-11-19 09:51:51 -08:00
Isaac Hollander McCreery 58eaa33979 Enable push-official-version to deal with prereleases 2015-11-19 09:51:51 -08:00
Mike Danese 1d9d11c836 run kube-proxy in a static pod 2015-11-18 16:52:10 -08:00
Mike Danese ae05eed14a add a way to discover git version from a built release 2015-11-18 11:11:50 -08:00
k8s-merge-robot 8dc51efa04 Merge pull request #17379 from mikedanese/beta-deb
Auto commit by PR queue bot
2015-11-17 16:36:53 -08:00
Mike Danese 29f6074d96 drop another beta from the debian-iptables image 2015-11-17 11:00:56 -08:00
k8s-merge-robot 840f3dad53 Merge pull request #16960 from andyzheng0831/trusty
Auto commit by PR queue bot
2015-11-17 01:21:15 -08:00
k8s-merge-robot b04e63062c Merge pull request #17323 from mikedanese/debian-tag
Auto commit by PR queue bot
2015-11-16 17:46:43 -08:00
Chao Xu 0c913ed5a1 change HEAD to blob/HEAD, and add blob in versioned-docs.sh 2015-11-16 17:13:49 -08:00
k8s-merge-robot b250006e65 Merge pull request #17194 from mikedanese/configure-baseimage
Auto commit by PR queue bot
2015-11-16 13:48:49 -08:00
Mike Danese eb9f284f95 add jessie tag to debian iptables build 2015-11-16 10:40:53 -08:00
Matt Moore b750d1dddc Drop the beta for GCR v2 images.
beta.gcr.io is no longer needed to pull through v2.
2015-11-14 12:19:02 -08:00
Andy Zheng 5ca070478e Refactor cluster/gce/trusty/node.yaml
The node.yaml has some logic that will be also used by the kubernetes
master on trusty work (issue #16702). This change moves the code
shared by the master and node configuration to a separate script, and
the master and node configuration can source it to use the code.
Moreover, this change stages the script for GKE use.
2015-11-13 16:46:55 -08:00
Mike Danese d68c36a268 all wrapped binaries to use a configurable image as the base image 2015-11-13 08:58:31 -08:00
Mike Danese 28411be155 add debian iptables image 2015-11-12 17:46:39 -08:00
Matt Liggett d9a178915a Make verify-generated-docs work inside docker.
Add a few missing files to the docker tarball.
2015-11-05 16:59:21 -08:00
k8s-merge-robot 1831a057f1 Merge pull request #16694 from jbeda/update-etcd
Auto commit by PR queue bot
2015-11-05 03:27:26 -08:00
Isaac Hollander McCreery 1a59796402 Merge pull request #16767 from ihmccreery/versioned-beta-fix
Manual merge to get into release-1.1 sooner: Fix beta versioning for build/push_ci_build.sh
2015-11-04 14:51:16 -08:00
Isaac Hollander McCreery eaefc11df9 Fix beta versioning for build/push_ci_build.sh 2015-11-04 13:24:17 -08:00
Joe Beda 993c1ee222 Update etcd to 2.2.1 2015-11-04 12:26:57 -08:00
Isaac Hollander McCreery 72a586db7f Move to release/ 2015-11-02 09:27:52 -08:00
Isaac Hollander McCreery 7109700713 Don't mess with versionize-docs here 2015-11-02 09:27:52 -08:00
Isaac Hollander McCreery f2b8edddae Fixups of docs and scripts 2015-11-02 09:27:52 -08:00
Isaac Hollander McCreery ab7576ff5b WIP still 2015-11-02 09:27:52 -08:00
Isaac Hollander McCreery 30608dfc83 release.sh WIP 2015-11-02 09:27:52 -08:00
Chao Xu 819cbbefd5 fix versionize-docs.sh and mark-new-version.sh to rewrite links to release branch rather than to tag 2015-10-29 17:02:04 -07:00
Daniel Smith b791642480 Merge pull request #16217 from caesarxuchao/update-versionize
versionize the include directory in definitions.md and operations.md
2015-10-27 16:42:00 -07:00
nikhiljindal 4d084b8229 Fixing a typo in versionize-docs 2015-10-26 18:01:52 -07:00
Chao Xu 45b0917b6b versionize the include directory in definitions.md and operations.md 2015-10-26 14:19:54 -07:00
nikhiljindal 8234d13146 Fixing versionize docs 2015-10-26 12:14:44 -07:00
k8s-merge-robot a3f2ba2e34 Merge pull request #11694 from ncdc/add-spdy-proxy-support
Auto commit by PR queue bot
2015-10-15 06:56:15 -07:00
Marek Grabowski 8a5f748846 Merge pull request #15336 from ixdy/install-etcd
Move hack/travis/install-etcd.sh to hack/, and update etcd version to 2.0.12
2015-10-15 09:29:25 +02:00
Steve Milner 57fc4bfa56 build: test/images in test tar and a static kubectl
* release tar now includes test/images/*
* kubectl is now built as a static binary in the test
2015-10-14 09:42:04 -04:00
Jeff Grafton fbd58294b2 Update test helpers and dev doc to use etcd v2.0.12. 2015-10-13 16:05:56 -07:00
Isaac Hollander McCreery 5ac539abd5 Implement branched/versioned ci publishing to GCS. 2015-10-13 14:35:58 -07:00
Isaac Hollander McCreery 3a823ed363 Tag beta on same commit as NEW_VERSION 2015-10-13 14:35:58 -07:00
Isaac Hollander McCreery ea6c385674 Update swagger scripts, (this supplants #14596) 2015-10-13 14:35:58 -07:00
Isaac Hollander McCreery 9c952eec3e Add usage to mark-new-version 2015-10-13 14:35:58 -07:00
k8s-merge-robot 8580804f77 Merge pull request #15138 from mattmoor/limited-beta-rewrite
Auto commit by PR queue bot
2015-10-10 11:41:34 -07:00
Isaac Hollander McCreery ec43cb0ed0 Make latest.txt files non-cacheable 2015-10-08 11:29:18 -07:00
Matt Moore eeb4eeb17c Move pause and fluentd-elasticsearch to GCR v2.
This scopes down the initially ambitious PR:
https://github.com/kubernetes/kubernetes/pull/14960 to replace just
`pause` and `fluentd-elasticsearch` to come through `beta.gcr.io`.

The v2 versions have been pushed under new tags, `pause:2.0` and
`fluentd-elastisearch:1.12`.

NOTE: `beta.gcr.io` will still serve images using v1 until they are repushed with v2.  Pulls through `gcr.io` will still work after pushing through `beta.gcr.io`, but will be served over v1 (via compat logic).
2015-10-06 16:39:07 -07:00
Isaac Hollander McCreery 9e61f8d632 Use kube::release::gcs::publish_latest_official logic in mark-stable-release.sh and add quote fixups, fixes #14785; implement major- and minor-pinned version releases, fixes #14920 2015-10-06 09:17:48 -07:00
Mike Lyons e95406655f added note about /tmp/ make
as recommended by @fabioy
2015-09-29 16:25:06 -07:00
Jonathan Boulle 61741e094b build: fix link syntax in README 2015-09-23 11:21:21 -07:00
JanetKuo a7cd53bc7e Distribute kubectl bash completion file with kubernetes binaries 2015-09-10 14:25:39 -07:00
Daniel Smith 01aac19d5c Merge pull request #13312 from kelcecil/kube-help-correction
Fix docker-machine typo in daemon help
2015-09-01 12:24:17 -07:00
Prashanth B 9bae6636d5 Merge pull request #13281 from zmerlynn/fix_pushed_version
Actually make the pushed version directory match binary versions
2015-08-28 14:52:29 -07:00
Kel Cecil 12647523d2 Fix docker-machine typo in daemon help 2015-08-28 13:33:57 -04:00
Zach Loafman 65087a40ba Actually make the pushed version directory match binary versions
A small bug from #11941: When we push to GCS, we were pushing bucket
names that matched the old pattern `git describe`, e.g.:

gs://kubernetes-release/ci/v1.1.0-alpha.0-2413-g986d37d/

But after #11941, the binaries inside these actually have versions that look like:

v1.1.0-alpha.0.2413+g986d37d

to more closely match up with semver.

This pull makes the GCS directory match the binaries it's already serving.
2015-08-27 14:38:00 -07:00
Kel Cecil c4124d377f Reword introduction and requirements 2015-08-26 22:21:29 -04:00
Kel Cecil 60905867f1 Refactor to use docker-machine or boot2docker 2015-08-26 17:33:02 -04:00
Andy Zheng 94896d1340 Stage trusty/node.yaml for GKE use 2015-08-24 11:04:57 -07:00
Muhammed Uluyol 3dc10a209b Use gcr.io for proxy image 2015-08-21 13:32:08 -07:00
Muhammed Uluyol 7129d477d3 Launch a cluster-local registry.
This registry can be accessed through proxies that run on each node
listening on port 5000. We send the proxy images to the nodes directly
to avoid requests that hit the network during cluster launch. For now,
we continue to pull the registry itself over the network, especially
given its large size (we should be able to dramatically shrink the
image). On GCE we create a PD and use that for storage, otherwise we
use an emptyDir. The registry is not enabled outside of GCE. All
communication is currently plain HTTP. In order to use SSL, we will
need to be able to request a certificate/key from the apiserver signed
by the apiserver's CA cert.
2015-08-20 18:44:05 -07:00
Mike Danese 0282ba55be delete unused image hello-kubernetes 2015-08-14 15:45:44 -07:00
Mike Danese f061875840 updating all references in .sh scripts 2015-08-12 14:41:59 -07:00
Eric Paris 3b7c39656c Split hack/{verify,update}-* files so we don't always go build
Right now some of the hack/* tools use `go run` and build almost every
time. There are some which expect you to have already run `go install`.
And in all cases the pre-commit hook, which runs a full build wouldn't
want to do either, since it just built!

This creates a new hack/after-build/ directory and has the scripts which
REQUIRE that the binary already be built. It doesn't test and complain.
It just fails miserably. Users should not be in this directory. Users
should just use hack/verify-* which will just do the build and then call
the "after-build" version. The pre-commit hook or anything which KNOWS
the binaries have been built can use the fast version.
2015-08-11 14:20:46 -04:00
Jeff Grafton 67b10ac222 Handle errors properly in kube::gcs::release functions 2015-08-06 12:36:08 -07:00
Mike Danese fe6b15ba2f rewrite all links to issues to k8s links 2015-08-05 21:11:11 -07:00
Mike Danese fb02b33e99 fix build 2015-08-05 17:52:56 -07:00
Alex Mohr 8d11137ed6 Merge pull request #12177 from ixdy/retry-gsutil-upload
Retry uploading/publishing CI builds to work around gsutil bug
2015-08-03 21:26:53 -07:00
Jeff Grafton 1289165aeb Add environment variable to delete existing release on GCS 2015-08-03 17:01:50 -07:00
Jeff Grafton c37c4ed73d Retry uploading/publishing CI builds to work around gsutil bug 2015-08-03 16:22:40 -07:00
Mike Danese 0269e2baad Merge pull request #11941 from GoogleCloudPlatform/enact_version_md
Enacting versioning.md
2015-07-31 10:17:22 -07:00
BenTheElder c86306f889 Update building docs to note memory requirements for boot2docker. 2015-07-30 19:19:33 -04:00
Zach Loafman 4363f14e77 Enacting versioning.md
This PR changes how we version going forward in the following ways:

* mark-new-version.sh is changed to a new policy of just splitting
branches, rather than the old backmerge policy, as discussed in
vX.Y.0, and a tag for vX.(Y+1).0-alpha.0 back to master.

* I eliminated PRs back to master by making the version/base.go
gitVersion and gitCommit just be `export-subst`. I testing that this
works with GitHub's source export tarballs. There's no reason to
bother with forcing the version into `base.go` (especially twice). The
tarball versions outside a git tree aren't perfect (master looks like
"v0.0.0+hash", and the release branches look more accurate), but our
build contract has never allowed that version is perfect in this
situation, so I think we can relax this.

* That master tag gets picked up by "git describe" on master, so e.g.
master would have immediately become v1.1.0-alpha.0

* In order to be more semVer compatible, the gitVersion field for the
master branch now looks something like 1.1.0-alpha.0.6+84c76d1142ea4d.
This is a tiny translation of the "git describe". I did this because
there are a ton of consumers out there of the "gitVersion" field
expecting it to be the full version, but it would be nice if this
field were actually semver compliant. (1.1.0-alpha.0-6-84c76d1142ea4d
is, but it's not *usefully* so.)

Fixes #11495
2015-07-28 11:58:44 -07:00
Marek Grabowski 74b78d537d Merge pull request #10824 from stefwalter/docker-images-with-repo
build: Fix docker image lookup for docker 1.6+
2015-07-27 17:26:26 +02:00
Stef Walter f06474d938 build: Fix docker image lookup for docker 1.6+
Some versions of docker display image listings like this:

docker.io/golang    1.4                 ebd45caf377c        2 weeks ago

The regular expression used to detect presence of images
needs to be updated. It's unfortunate that we're still
screen-scaping here, due to:

https://github.com/docker/docker/issues/8048
2015-07-27 09:58:15 +02:00
Tim Hockin fbc0c7558e Apply version subst multiple times per line 2015-07-25 13:46:09 -07:00
nikhiljindal b0dbb318fe Extract out the versionize docs part in a separate script 2015-07-23 17:56:40 -07:00
nikhiljindal 54e6f5d7ba Fixing mark-new-version 2015-07-20 14:27:45 -07:00
nikhiljindal 021138bd83 Linking to API object definitions from docs 2015-07-20 11:11:13 -07:00
Zach Loafman 5ac5b97308 Remove back-merge nonsense from mark-new-version.sh
This won't be compatible with
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/design/versioning.md,
and it hit a conflict with deleted files. Let's just kill it.
2015-07-17 15:02:21 -07:00
Mike Danese 337772a91f fix all tests 2015-07-14 21:51:30 -07:00
Tim Hockin 594bcf3c9d Add an 'is versioned' tag to docs when releasing 2015-07-13 11:23:07 -07:00
Tim Hockin 981f4550e8 When releasing, process all md files 2015-07-13 11:23:07 -07:00
Rohit Jnagal 80ce9f315d Merge pull request #11060 from zmerlynn/change_to_readme
Change the generated release template to docs/README.md
2015-07-10 17:01:22 -07:00
Tim Hockin cb8e27230e When releasing, update versions in title 2015-07-10 09:04:19 -07:00
Zach Loafman 0d79078093 Change the generated release template to docs/README.md 2015-07-10 08:45:53 -07:00
Tim Hockin 10ce2d2e38 Only subst things that exist 2015-07-09 17:17:49 -07:00
Tim Hockin d6756c1fbd On release, always subst new version 2015-07-09 16:33:23 -07:00
Brendan Burns 7ccc0a4ec5 Merge pull request #10910 from zmerlynn/redo_build_official_release
Add `build-official-release.sh` (take two)
2015-07-08 17:26:02 -07:00
Tim Hockin e099a7f0e0 Fix quoting issue on sed 2015-07-08 16:53:51 -07:00
Victor Marmol dd378f148b Merge pull request #10896 from thockin/docs-versioning-2
Make READMEs even more obviously versioned.
2015-07-08 16:24:40 -07:00
Zach Loafman d63860411a Add `build-official-release.sh`
This commit does 4 things:
* Adds a script which will: (a) clone from a git tag, make release,
and give you very detailed instructions as to what to do from that
point.
* Changes `push-official-release.sh` so we can't push "dirty"
releases anymore (which `build-official-release.sh` also double
checks at the end.)
* Fixes #9576 by ensuring a correct umask.
* Changes common.sh to gtar all the way through, to ensure that
bloody OS X tar never touches the release process, because I don't
want to have to understand two tar programs and how release
artifacts are created from both (c.f. #10615.)
2015-07-08 15:20:22 -07:00
Tim Hockin 3d97d82655 Make READMEs clearer wrt versions 2015-07-08 11:36:14 -07:00
Alex Mohr 7737d18882 Update release notes tool and documentation 2015-07-07 17:40:10 -07:00
Zach Loafman 0185809a35 Change build/mark-new-version.sh to always create a backmerge branch
that reverts the doc diff.

This changes mark-new-version to create a backmerge branch that will
additionally handle the revert of the doc diff that's now created for
every release.

Sidebar: I really wish I knew a good git visualizer for GitHub - this
thing is going to start creating some awesome Gordian knots of merges.
(Or more like little Omegas, since they basically just change
version/base.go.)

Fixes #10825
2015-07-07 10:44:00 -07:00
Tim Hockin 6a69a8f64b Remove dependency on perl 2015-07-04 13:32:23 -07:00
Tim Hockin f3d3656fe6 Test for uncommited changes in and out of index 2015-07-04 13:32:23 -07:00
Tim Hockin e7189041ee Preprocess API files to version URLs upon release 2015-07-04 13:32:23 -07:00
Alex Robinson 70644b6889 Merge pull request #10437 from GoogleCloudPlatform/revert-9715-big_archive
Revert "Remove raw binaries from distro that are already included in …
2015-06-29 09:27:59 -07:00
Brendan Burns 3907ed5104 Merge remote-tracking branch 'upstream/release-0.19' into merge-release-0.19-to-master 2015-06-19 09:24:39 -07:00
Tim St. Clair f5830edbbc s/gcloud preview docker/gcloud docker/ 2015-06-18 12:27:08 -07:00
Brendan Burns 497d6019f2 Only clone docs on initial releases. 2015-06-15 20:23:09 -07:00
Abhi Shah 3277925ece Revert "Remove raw binaries from distro that are already included in docker image" 2015-06-12 14:25:52 -07:00
Filip Grzadkowski 31fc217527 Remove raw binaries from distro that are already included in docker image 2015-06-12 17:01:12 +02:00
James DeFelice 91238f8b44 Make building contrib code optional 2015-06-10 20:30:10 +00:00
Brendan Burns 9e198a6ed9 Purge cluster/kubectl.sh from nearly all docs.
Mark cluster/kubectl.sh as deprecated.
2015-06-09 13:35:52 -07:00
Brendan Burns e051497be9 Add some text about the docs being sync'd to HEAD
Add pointers to the release branch files.
Clone docs when creating a new release.
2015-06-04 21:53:15 -07:00
Zach Loafman 0bb78fe6c5 Merge pull request #9042 from zmerlynn/neuter-rmi-complaint
Don't die if the "docker rmi" fails
2015-05-30 09:25:56 -07:00
Zach Loafman 8f70779b1b Don't die if the "docker rmi" fails
Slightly neuters #8955, but we haven't had a build succeed in a while
for whatever reason. (I checked on Jenkins and the images in the build
log where deletion was attempted were actually deleted, so I think
this is primarily an exit code / API issue of some sort.)
2015-05-30 09:20:09 -07:00
Rohit Jnagal 8d1481ab4a Merge pull request #8835 from jlowdermilk/release-notes
Optionally use a github api token when compiling relase-notes
2015-05-29 13:24:10 -07:00
Dawn Chen 21ade7a531 Remove useless master component images after saving image as tar file. 2015-05-28 14:38:39 -07:00
Jeff Lowdermilk b6cd4bedaa Optionally use a github api token when compiling relase-notes 2015-05-27 17:18:44 -07:00
Jeff Lowdermilk 553f9f822b Add ga-beacon analytics to gendocs scripts
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Zach Loafman 4122b20c23 Revert "Revert "release build broken on Docker 1.6"" 2015-05-11 10:15:27 -07:00
Zach Loafman 81d8ab32ba Revert "release build broken on Docker 1.6" 2015-05-11 10:08:17 -07:00
Clayton Coleman 6a86c48207 release build broken on Docker 1.6
By default, tmpfs on Docker 1.6 is 64mb which is too
small for Go builds on the Kube project (binary size, etc).

This moves the release build to use a non tmpfs work dir.
2015-05-07 18:20:15 -04:00
Brendan Burns 1375a18175 Update boilerplate. 2015-05-07 09:52:08 -07:00
Brendan Burns 40dde19853 Adds a simple release-note builder that scrapes the Github API for recent PRs. 2015-05-07 09:37:38 -07:00
saadali 4569de7a46 Enable Google Cloud Monitoring and Google Cloud Logging instead of
Influxdb for Google Compute Engine deployments.
2015-05-06 15:23:40 -07:00
Eric Paris f416289a85 update all python with boilerplate 2015-05-04 18:37:47 -04:00
Daniel Smith fbe3ec7513 Merge pull request #7316 from ArtfulCoder/master_components_logs
logs for master components
2015-05-04 11:20:03 -07:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Zach Loafman d3dbaa0008 Build: Push .md5 and .sha1 files for every file we push to GCS
Also by pre-staging and pushing all at once, and by doing the ACL
modify in parallel, this shaves the push time down anyways, despite
the extra I/O.

Along the way: Updates to longer hashes ala #6615
2015-05-01 10:55:44 -07:00
Abhishek Shah 96439b5a52 logs for master components 2015-04-29 09:51:09 -07:00
Abhishek Shah 0f25014d5b use busybox as base image for kube-master docker images 2015-04-16 22:22:04 -07:00
Robert Bailey 080b5634bf Merge pull request #6929 from zmerlynn/fix_stable_release
Fix build/mark-stable-release mktemp
2015-04-16 13:21:32 -07:00
Zach Loafman 35f651382f Fix build/mark-stable-release mktemp 2015-04-16 12:37:18 -07:00
Rohit Jnagal 8b4914dd0f Merge pull request #6472 from zmerlynn/fix_build_status
Add kube::util::wait-for-jobs to report status, unlike builtin wait
2015-04-06 13:39:58 -07:00
Zach Loafman 3b8bbb32bb Fix cluster up failures by cleaning docker build dirs (sigh) 2015-04-06 13:08:15 -07:00
Zach Loafman 2bc5dd559a Add kube::util::wait-for-jobs to report status, unlike builtin wait
** Sigh **

Fixes an additional complaint in #6463
2015-04-06 11:11:49 -07:00
Zach Loafman af34ef4c16 Remove "-f Dockerfile.blah" from make release
Rework the parallel docker build path to create separate docker build
directories for each binary, rather than just separate files,
eliminating the use of "-f Dockerfile.foo". (I think this also shaves
a little more time off, because it was previously sending the whole
dir each time to the docker daemon.)

Also some minor cleanup.

Fixes #6463
2015-04-06 09:43:30 -07:00
Jeff Grafton 274c607f6d Merge pull request #6425 from zmerlynn/less_chatty_push
Be less chatty when we're uploading to GCS
2015-04-03 15:43:41 -07:00
Zach Loafman 18a11c1cb7 Be less chatty when we're uploading to GCS 2015-04-03 14:54:52 -07:00
Zach Loafman 5b6c75f986 And re-tabify that (to make previous easier to review) 2015-04-02 18:40:27 -07:00
Zach Loafman e57171d2cc Parallelize Docker build as well 2015-04-02 18:39:40 -07:00
Zach Loafman 9a6e04dc1f Cleanup output of Docker builds, fix #6389 2015-04-02 18:18:24 -07:00
Zach Loafman 03c7182cac Also build entire tarball phases in parallel 2015-04-02 17:56:45 -07:00
Zach Loafman 04813f0dcd Revert "Revert "Parallelize architectures in both the building and packaging phases of `make release`""
This reverts commit 9f60dde320.
2015-04-02 17:56:44 -07:00
Dawn Chen 9b2f835a01 Merge pull request #6326 from ArtfulCoder/docker_image_creation
Create Docker images for master components
2015-04-02 13:12:17 -07:00
Abhishek Shah b1b779a8d5 docker image creation 2015-04-02 12:39:12 -07:00
Zach Loafman e4b613b514 Infer the URL from the existing git setup. (I don't push via ssh)
Also document using the recursive/ours merge strategy, because
it's almost certainly what we want to do in this case.
2015-04-02 10:15:18 -07:00
Jeff Lowdermilk 45639d9e2d Remove unused variables from build scripts 2015-04-01 12:28:31 -07:00
Dawn Chen 48cd904a20 Makefile for build pause image and push to gcr.io 2015-03-31 15:07:03 -07:00
Eric Paris e9d2c49fd4 Instructions to back-merge release branches into master
This allows us to continue on branched like v0.14.1, v0.14.2, and tag on
that branch.  But it will merge those tags into master so git describe
picks up the changes.
2015-03-30 17:31:15 -04:00
Eric Paris a5732697fd update instructions to make it clear to get review 2015-03-30 15:10:34 -04:00
Eric Paris 329f9a0e99 Do not allow minor release which is not a decendant of the release branch
This does some git magic to make sure you do not tag a branch with
v0.13.3 unless that branch is a decendant of the release-0.13 branch
upstream.

Don't allow v0.13.4 if v0.13.3 doesn't exit

Don't allow v0.13.3 if v0.13.3 already exits
2015-03-27 21:24:10 -04:00
Eric Paris cbefaf5d65 output current_branch name instead of HEAD in help messages 2015-03-27 19:03:42 -04:00
Eric Paris 2b941f4954 anchor version regex
Also create a GIT_MINOR variable for a touch of readability....
2015-03-27 18:54:36 -04:00
Eric Paris 3919a38ad6 make mark-new-release.sh do branching and tell you exactly what to do next
We keep getting tags and branches wonky.  This will land

v0.14.0 as an ancestor of master
v0.14.1 will NOT be an ancestor of master

I can do the later, it only a touch of git gymnastics, not really hard, but
we only occasionably do that today. (0.13.1 is an ancestor of master,
but 0.13.2 is not)
2015-03-27 17:01:56 -05:00
Brendan Burns f089a054c2 Use stable.txt instead of latest.txt and add a script to set that file. 2015-03-26 15:16:59 -07:00
Jeff Grafton 46e8c08fe8 Update kube::log::{error,status} to include timestamp.
Additionally, make the build scripts call these rather than calling
'echo' directly.
2015-03-25 16:02:48 -07:00
Zach Loafman 3458246c10 Publish a gs://kubernetes-release/release/latest.txt when we publish a build
Adds a kube::release::gcs::publish_latest_official that checks the
current contents of this file in GCS, verifies that we're pushing a
newer build, and updates it if so. (i.e. it handles the case of
pushing a 0.13.1 and then later pushing a 0.12.3.) This follows the
pattern of the ci/ build, which Jenkins just updates unconditionally.

I already updated the file for 0.13.1. After this we can update the
get-k8s script, so we don't have to keep updating it.
2015-03-17 13:53:05 -07:00
Victor HU e083fd3d44 Doc on proxy settings
Add doc on how to set proxy while building kubernetes in container.
2015-01-11 00:31:50 +00:00
Zach Loafman a660ecd962 Try to fix 'Release file is expired' complaints
Based on info from:
  http://unix.stackexchange.com/questions/2544/how-to-work-around-apts-release-file-expired-problem-on-a-local-mirror
2015-03-11 10:57:26 -07:00
Zach Loafman 120dba474e Change GCE to use standalone Saltstack config:
Change provisioning to pass all variables to both master and node. Run
Salt in a masterless setup on all nodes ala
http://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html,
which involves ensuring Salt daemon is NOT running after install. Kill
Salt master install. And fix push to actually work in this new flow.

As part of this, the GCE Salt config no longer has access to the Salt
mine, which is primarily obnoxious for two reasons: - The minions
can't use Salt to see the master: this is easily fixed by static
config. - The master can't see the list of all the minions: this is
fixed temporarily by static config in util.sh, but later, by other
means (see
https://github.com/GoogleCloudPlatform/kubernetes/issues/156, which
should eventually remove this direction).

As part of it, flatten all of cluster/gce/templates/* into
configure-vm.sh, using a single, separate piece of YAML to drive the
environment variables, rather than constantly rewriting the startup
script.
2015-03-10 09:04:29 -07:00
Alex Mohr 5ce020817d Update common.sh 2015-03-09 17:46:29 -07:00
Brandon Davis a63338b73b Support other names for GNU tar
The build is only looking for GNU tar as gtar on OSX, which is the name used when installed using brew. Macports installs it as gnutar, so check for that name if gtar is not found.
2015-02-23 17:00:32 -06:00
Sidharta Seethana aea11720fd setting boot2docker env variables for release and clean targets when boot2docker is running 2015-02-20 15:55:39 -08:00
Jeff Lowdermilk 197059b65d Remove kubecfg, cleanup a few stray references. 2015-02-10 16:43:12 -08:00
Brendan Burns 93776b1363 Remove kubecfg from all getting started docs. 2015-02-04 23:20:11 -08:00
Brendan Burns 0ff3aa6db7 Fix the build. 2015-02-03 14:49:30 -08:00
rsokolowski 164c3e5e62 Fix removal of release-staging files while running hack/e2e-test.sh 2015-02-03 23:11:26 +01:00
Brendan Burns ffd3d21dc5 Update the release script to delete cruft before packaging. 2015-02-03 12:57:34 -08:00
Salvatore Dario Minonne 9a0e16a009 Fix dockerfile for etcd.2.0.0 2015-01-30 15:32:13 +01:00
Joe Beda 621e7037ae Merge pull request #3601 from zmerlynn/deferred_addons_phase_1
Deferred creation of SkyDNS, monitoring and logging objects
2015-01-21 13:25:38 -08:00
Zach Loafman a305269e18 Deferred creation of SkyDNS, monitoring and logging objects
This implements phase 1 of the proposal in #3579, moving the creation
of the pods, RCs, and services to the master after the apiserver is
available.

This is such a wide commit because our existing initial config story
is special:

* Add kube-addons service and associated salt configuration:
** We configure /etc/kubernetes/addons to be a directory of objects
that are appropriately configured for the current cluster.
** "/etc/init.d/kube-addons start" slurps up everything in that dir.
(Most of the difficult is the business logic in salt around getting
that directory built at all.)
** We cheat and overlay cluster/addons into saltbase/salt/kube-addons
as config files for the kube-addons meta-service.
* Change .yaml.in files to salt templates
* Rename {setup,teardown}-{monitoring,logging} to
{setup,teardown}-{monitoring,logging}-firewall to properly reflect
their real purpose now (the purpose of these functions is now ONLY to
bring up the firewall rules, and possibly to relay the IP to the user).
* Rework GCE {setup,teardown}-{monitoring,logging}-firewall: Both
functions were improperly configuring global rules, yet used
lifecycles tied to the cluster. Use $NODE_INSTANCE_PREFIX with the
rule. The logging rule needed a $NETWORK specifier. The monitoring
rule tried gcloud describe first, but given the instancing, this feels
like a waste of time now.
* Plumb ENABLE_CLUSTER_MONITORING, ENABLE_CLUSTER_LOGGING,
ELASTICSEARCH_LOGGING_REPLICAS and DNS_REPLICAS down to the master,
since these are needed there now.

(Desperately want just a yaml or json file we can share between
providers that has all this crap. Maybe #3525 is an answer?)

Huge caveats: I've gone pretty firm testing on GCE, including
twiddling the env variables and making sure the objects I expect to
come up, come up. I've tested that it doesn't break GKE bringup
somehow. But I haven't had a chance to test the other providers.
2015-01-21 12:25:50 -08:00
Joe Beda a735e2d160 Switch official builds to go 1.4.
This fixes #2894
2015-01-21 12:13:22 -08:00
Joe Beda d20b9d4567 Merge pull request #3666 from thockin/golang-static
Fix static builds in go1.4
2015-01-21 10:07:41 -08:00
Tim Hockin 0a538132cf Fix static builds in go1.4
https://github.com/golang/go/issues/9344
2015-01-20 21:04:04 -08:00
Alex Robinson 4fdf240415 Merge pull request #3620 from zmerlynn/push_custom_release
Add push-devel-build.sh to upload release artifacts to current GCS project
2015-01-20 14:05:46 -08:00
Zach Loafman 9f02caa668 Add push-devel-build.sh to upload release artifacts to current GCS project
This is essentially a variant of push-ci-build.sh, but pushes it to
the current project. The defaults for gcs::release actually pick a
shorthash of the GCS project, so you end up uploading to something
like: gs://kubernetes-releases-3fda2/devel/v0.8.0-437-g7f147ed/ (where
the last part is the "git describe" of your current commit)
2015-01-20 13:53:38 -08:00
Andrew Seidl 6dee1d7fa4 Fix typos in user-facing strings 2015-01-18 01:32:34 -06:00
Jeff Lowdermlk cb517b3a4a Build win32 client binaries 2015-01-16 16:45:14 -08:00
Zach Loafman c3858ab322 Commit f1fed3b broke gcs::release in this function, breaking
the build.
2015-01-07 11:10:08 -08:00