Commit Graph

53 Commits (714fcd910fb7abf8647a6f67bfb15eeed10854a1)

Author SHA1 Message Date
Jeff Grafton 8495f7c9ed bazel: add docker_push rules 2019-03-06 12:35:33 -08:00
Jeff Grafton 5b7602a525 bazel: refactor core docker images to use multi_arch_container 2019-03-06 11:54:49 -08:00
Jeff Grafton 84a5a176a5 bazel: add target for multi-arch docker tags on server images
These aren't used in the images saved in the release tars, but could be
used for images that are pushed to gcr.io.
2019-03-03 21:09:23 -08:00
Jeff Grafton 4b50d9352f Make release-tars multiplatform 2019-02-22 18:50:21 -08:00
Jeff Grafton dfdfc2e5b8 Make debs, rpms, and docker images multiarch 2019-02-22 18:50:18 -08:00
Jeff Grafton 7a938eb541 Create work-around wrappers for pure attribute on go_binary and go_test
This enables cgo when cross-compiling certain tests and binaries to
Linux, while disabling cgo for Windows and Darwin.
2019-02-22 18:08:34 -08:00
Jeff Grafton e216995ef1 Update repo-infra, bazel-skylib, rules_docker, and rules_go dependencies
Also require bazel 0.18.0+
2019-02-12 17:55:10 -08:00
Jeff Grafton 3fd6f97f55 bazel: update openapi-gen to use new kazel-generated dictionaries 2019-01-08 14:47:32 -08:00
Benjamin Elder 4cd93dada4 add CNI_VERSION to build/workspace.bzl, use it to dedupe version 2018-12-03 20:19:47 -08:00
Duffie Cooley 8e08cbc3c4
Bump the version of kubernetes-cni to 0.6.0
This will resolve the kubernetes-anywhere e2e test.
In commit: https://github.com/kubernetes/kubernetes/pull/71540
I bumped the required version of kubernetes-cni to 0.6.0 but didn't
start packaging it. This resolve that.

Signed-off-by: Duffie Cooley <dcooley@heptio.com>
2018-11-30 23:20:19 -08:00
Jeff Grafton f26048ecb1 Use debian-base instead of busybox as base image for server images 2018-10-25 10:19:40 -07:00
Davanum Srinivas 3cb0b5fc04
remove last traces of old registry name
Change-Id: Ie1a5feaba20736d491242b4c971423c0a624f383
2018-10-14 20:43:18 -04:00
Jeff Grafton c34cbb2f70 Bazel: stop using deprecated docker_ rules and turn on stamping 2018-10-12 13:16:38 -07:00
Benjamin Elder 4274c426ce add nsswitch to busybox control plane images 2018-09-28 17:04:48 -07:00
Davanum Srinivas a66e1f089e
Drop kube-aggregator container image from release
First version of this was only standalone, now the code is being
vendored by anyone who wants to use it. So the standalone binary and
container are no longer useful.

Change-Id: Ib9369de66b4ecb3451f73ba2a252526d6615b96f
2018-08-08 15:57:52 -04:00
Tim Hockin 89ceb7ef46 Pass 2: k8s GCR vanity URL 2018-04-06 08:14:58 -07:00
Tim Hockin 3586986416 Switch to k8s.gcr.io vanity domain
This is the 2nd attempt.  The previous was reverted while we figured out
the regional mirrors (oops).

New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest.  To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today).  For now the staging is an alias to
gcr.io/google_containers (the legacy URL).

When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.

We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it.  Nice and
visible, easy to keep track of.
2018-02-07 21:14:19 -08:00
Jonathan Basseri 85c5862552 Fix scheduler refs in BUILD files.
Update references to moved scheduler code.
2018-01-05 15:05:01 -08:00
Tim Hockin e9dd8a68f6 Revert k8s.gcr.io vanity domain
This reverts commit eba5b6092a.

Fixes https://github.com/kubernetes/kubernetes/issues/57526
2017-12-22 14:36:16 -08:00
Tim Hockin eba5b6092a Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
Kubernetes Submit Queue f7dc3966a4
Merge pull request #47497 from mikedanese/binary
Automatic merge from submit-queue (batch tested with PRs 54773, 52523, 47497, 55356, 49429). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

don't check in mounter binary

```release-note
GCI mounter is moved from the manifests tarball to the server tarball.
```
2017-11-08 22:11:53 -08:00
Bob Steciuk 44fbec29c4 Kubeadm - Added initial support for Windows worker nodes to join cluster using kubeadm
Added kubeadm to node build targets

Created unix/windows specific conditionally compiled for checks.go and defaults.go
2017-11-01 10:36:37 -04:00
Mike Danese bef68f7dbc cluster: build gci mounter like other go binaries 2017-10-30 13:56:09 -07:00
Maru Newby adc338d330 Remove all traces of federation 2017-10-26 13:37:37 -07:00
Alexander Kanevskiy b0e1641f97 Improve deb and rpm packaging
- kubernetes-cni package now has proper version (0.5.1)
- Synchronize post-1.8 version of 10-kubeadm.conf file from release
  repository.
- Fix dependencies
- Improve descriptions in produced packages
2017-09-28 21:59:01 +03:00
Alexander Kanevskiy 19cb090381 Generate deb and rpms package with correct versions. 2017-09-01 00:20:29 +03:00
Jeff Grafton e11933f2d0 bazel: use fast docker_pull 2017-08-24 15:59:10 -07:00
Tim Hockin 831fd242e8 Remove seemingly obsolete binaries 2017-08-18 21:01:19 -07:00
Jeff Grafton 211554a37f bazel: update rules_docker and use official busybox base image 2017-06-26 14:29:58 -07:00
Jeff Grafton 052e4848f9 bazel: base kube-proxy image on debian-iptables instead of busybox 2017-06-01 19:27:15 -07:00
Mike Danese c67e4d1df0 plumb through version 2017-05-16 09:17:30 -07:00
Jeffrey Regan 7abff879d7 Introduce visibility rules to kubernetes code.
**What this PR does / why we need it**:

Visibility rules allow dependency control.  The rules currently in
place make all targets public, to override the default state of
private.  This PR removes public visibility from kubectl code.  It
uses specially named pacakge groups to identify "bad" dependencies on
kubectl code for later refactoring or removal.

**Which issue this PR fixes**

First in a series of PRs to address kubernetes/community#598

**Release note**:
```release-note
NONE
```
2017-05-15 12:50:56 -07:00
Jeff Grafton 45a6455ac7 Use new docker_bundle rule instead of ixdy's custom docker_build rule 2017-05-02 16:30:24 -07:00
Jeff Grafton 37eb292bc0 Update bazel build to dockerize cloud-controller-manager 2017-05-02 12:07:13 -07:00
Kubernetes Submit Queue 3791abd628 Merge pull request #44981 from ixdy/version-docker-tag
Automatic merge from submit-queue

Use munged semantic version for side-loaded docker tag

**What this PR does / why we need it**: rather than using the md5sum of the dockerized binary for each side-loaded docker image, use the semantic version (with `+`s replaced with `_`s) for the side-loaded docker images.

The use of the md5sum for the docker tag dates to #6326 2 years ago. I'm not sure why that was chosen, short of it being fairly unique.

My main motivation for changing this is that it makes building the docker images using Bazel's docker rules easier, since the semantic version doesn't depend on the build output.

An added benefit is that the list of images on a running kubernetes cluster is also more straightfoward; rather than a list of opaque, meaningless hexadecimal strings, you get something that indicates the provenance of the image. It'd also be clearer that all of the images came from the same build.

I was able to start a cluster with this change on GCE using both `make quick-release` and `make bazel-release`.

Note that this change has no effect on the tag that's pushed to gcr.io during releases; that's still controlled via `KUBE_IMAGE_DOCKER_TAG`, though we may want to merge this functionality at some point.

@kubernetes/sig-node-pr-reviews is there any reason to stick with using the md5sum strategy? @dchen1107 do you remember why we went with md5sums originally?
cc @spxtr @mikedanese 

**Release note**:

```release-note
```
2017-05-01 19:48:18 -07:00
Timothy St. Clair 01366851ea Prune k8petstore from examples and e2es per discussion on sig-testing 2017-04-28 11:49:23 -05:00
Jeff Grafton f73e3cbb30 Use munged semantic version for side-loaded docker tag 2017-04-27 15:05:40 -07:00
Kubernetes Submit Queue 14a557b1a2 Merge pull request #44346 from mikedanese/build-static
Automatic merge from submit-queue (batch tested with PRs 41106, 44346, 44929, 44979, 45027)

bazel: statically link dockerized components
2017-04-27 12:11:00 -07:00
Jeff Grafton a9bfae8ec3 Update repo-infra bazel dependency and use new gcs_upload rule 2017-04-25 13:45:28 -07:00
Mike Danese 3757e8bb5c bazel: statically link dockerized components
and remove libc from docker images when it's not needed.
2017-04-14 15:51:54 -07:00
deads2k ab0a57760e remove kube-aggregator from bazel until we can build it 2017-02-14 14:57:52 -05:00
deads2k 1d40c3ff76 update scripts for new kube-aggregator location 2017-02-14 14:16:59 -05:00
Jeff Grafton 9beb13aba6 Refactor docker bazel rules and tag docker images 2017-01-13 14:23:31 -08:00
deads2k 453651cbfc rename kubernetes-discovery to kube-aggregator 2017-01-10 12:27:42 -05:00
Mike Danese f00b59f657 fix kube-proxy images default command for new bin path 2017-01-06 13:33:30 -08:00
Kubernetes Submit Queue af1a5ce426 Merge pull request #39492 from mikedanese/xtables
Automatic merge from submit-queue

add netlink and libxtables to kube-proxy image

kube-proxy won't start
2017-01-06 00:23:38 -08:00
Jeff Grafton 20d221f75c Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
Mike Danese eb62ac4363 add netlink and libxtables to kube-proxy image 2017-01-05 13:42:26 -08:00
Mike Danese 35ca259464 uses debs to build k8s docker images 2017-01-04 15:35:49 -08:00
deads2k 47073be356 create kuberentes-discovery image 2016-12-20 07:42:49 -05:00