Commit Graph

213 Commits (c2a16713b1ce601fe9af2a216c837f93b54e86aa)

Author SHA1 Message Date
Daniel Smith 279219ca89 Use etcd 2.3.7 (container already pushed) 2016-09-09 09:45:53 +02:00
Scott Dodson 36d3dfcf9b Fix 127.0.01 typo 2016-09-08 16:45:50 -04:00
Hongchao Deng 61e238cac3 etcd: data rollback tool of v3 -> v2 2016-09-08 12:29:19 -07:00
Minhan Xia 1e88c99e3e bump cni 2016-09-06 10:48:36 -07:00
Kubernetes Submit Queue 033e473e12 Merge pull request #31242 from wojtek-t/attach_ttls
Automatic merge from submit-queue

Support for TTLs in etcd migration.

Ref #20504
2016-08-29 12:57:57 -07:00
Kubernetes Submit Queue e6df2db5c3 Merge pull request #31477 from freehan/cnibump
Automatic merge from submit-queue

bump cni to 9d5e6e6

fixes: #31348
2016-08-28 14:46:20 -07:00
Minhan Xia 69e540e634 bump cni to 9d5e6e6 2016-08-26 13:13:24 -07:00
Wojciech Tyczynski 793d3acd8b Support for TTLs in etcd migration. 2016-08-26 10:28:00 +02:00
Kubernetes Submit Queue d3ecad111e Merge pull request #28717 from freehan/ebtable
Automatic merge from submit-queue

Filter duplicate network packets in promiscuous bridge mode (with ebtables)

also fixes: #30783
2016-08-25 19:12:09 -07:00
Lucas Käldström d711fd8764 Refactor hyperkube, remove unnecessary packages, optimize layers, bump cni version, add new features, run kube-proxy in a daemonset 2016-08-25 01:24:05 +03:00
Minhan Xia 3ed5c7a8d7 add ebtables into images 2016-08-24 10:57:33 -07:00
Kubernetes Submit Queue ef2718620c Merge pull request #30900 from jsafrane/pvc-admission
Automatic merge from submit-queue

Add admission controller for default storage class.

The admission controller adds a default class to PVCs that do not require any
specific class. This way, users (=PVC authors) do not need to care about
storage classes, administrator can configure a default one and all these PVCs
that do not care about class will get the default one.

The marker of default class is annotation "volume.beta.kubernetes.io/storage-class", which must be set to "true" to work. All other values (or missing annotation) makes the class non-default.

Based on @thockin's code, added tests and made it not to reject a PVC when no class is marked as default.
. 
@kubernetes/sig-storage
2016-08-24 03:32:46 -07:00
Kubernetes Submit Queue 45e557e237 Merge pull request #31099 from luxas/remove_kubelet_container
Automatic merge from submit-queue

Remove the kubelet container as it's unmaintained

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

It removes the outdated and unmainained kubelet image, since we're using the hyperkube image instead.
Should be pretty straightforward to remove this.

@fgrzadkowski @thockin @mikedanese @pmorie
2016-08-22 08:50:10 -07:00
Jan Safranek 5f6efefc40 [squash] Rename and move to storageclass/ 2016-08-22 14:11:01 +02:00
Lucas Käldström eb652814db Remove the kubelet container as it's unmaintained 2016-08-22 11:55:14 +03:00
Kubernetes Submit Queue c39b584ea2 Merge pull request #30583 from colemickens/fix-hack-path-handling
Automatic merge from submit-queue

fix path handling in hack/lib/init.sh

Jenkinsfile pipeline jobs get cloned into "\<project\> (\<branch\>)". As a result, I can't use certain things in `hack/lib/init.sh`.

This is a small fix for that problem.

**Release note**:
<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->
```release-note
NONE
```
2016-08-21 10:34:32 -07:00
Jan Safranek 82d35fb461 Add admission controller for default storage class.
The admission controller adds a default class to PVCs that do not require any
specific class. This way, users (=PVC authors) do not need to care about
storage classes, administrator can configure a default one and all these PVCs
that do not care about class will get the default one.
2016-08-18 18:55:35 +02:00
Wojciech Tyczynski f3c32673ec Add migration test 2016-08-18 08:31:33 +02:00
Wojciech Tyczynski b42023eb03 Support for etcd migration 2016-08-18 08:31:33 +02:00
Timothy St. Clair 730fc70107 Update etcd default ports for v3, and validate tests 2016-08-17 07:49:19 -05:00
Cole Mickens 1cb361ea2b Handle spaces in some hack/ scripts. Cleanup after hyperkube build. 2016-08-15 21:13:13 +00:00
Timothy St. Clair a0d177ca71 Update core etcd references to use 3.0.4 2016-08-12 13:39:07 -05:00
Kubernetes Submit Queue 2b69a57e6e Merge pull request #30320 from mrdunski/master
Automatic merge from submit-queue

Add nfs-common to hyperkube



<!-- Reviewable:start -->
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30320)
<!-- Reviewable:end -->
2016-08-10 02:36:25 -07:00
Kubernetes Submit Queue bb8d2b213d Merge pull request #30309 from timothysc/etcd304
Automatic merge from submit-queue

Update etcd makefile to build 3.0.4

Bumps the dependency, but we will also need someone to push to the google repos too.  

/cc @kubernetes/sig-scalability  

xref: #29235 #29399

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30309)
<!-- Reviewable:end -->
2016-08-10 01:23:19 -07:00
Patryk Duński 68dc5e7afd Add nfs-common to hyperkube
Fix for issue #30310
2016-08-10 09:03:28 +02:00
Kubernetes Submit Queue 5aaaaff07c Merge pull request #30319 from mbohlool/cleanup_sidepod
Automatic merge from submit-queue

Add cleanup addon pod to remove empty keys from etcd

namespace deletion will leave a trace of empty keys on etcd. This PR adds an addon pod to periodically check for those empty keys on etcd and remove them.

fixes #27307
2016-08-09 17:12:19 -07:00
mbohlool 81cc0c5790 Add cleanup addon pod to remove empty keys in etcd 2016-08-09 15:59:45 -07:00
Timothy St. Clair d22e7a1b4a Update etcd makefile to build 3.0.4 2016-08-09 15:35:03 -05:00
Timothy St. Clair 456c43c22d Update to shift etcd 2.2 references to use 3.0.3 2016-08-09 08:51:15 -05:00
Vishnu Kannan d2915f1267 make etcd makefile work on OSX
Signed-off-by: Vishnu Kannan <vishnuk@google.com>
2016-08-03 17:25:11 -07:00
Patrick Baxter 895ac2c1d4 cluster/images/hyperkube: re-add hyperkube busybox style symlinks 2016-07-26 17:55:10 +00:00
k8s-merge-robot 64d185f534 Merge pull request #29474 from luxas/cni_cross
Automatic merge from submit-queue

Include CNI for all architectures in the hyperkube image

Can some of you (@jfrazelle @mikedanese) quickly lgtm this?
I'd like it if we got it merged before v1.4.0-alpha.2

It's not a huge change, I'm just cross-compiling this CNI stuff while waiting for the v0.4.0 which likely will release binaries for all arches.
2016-07-22 17:13:22 -07:00
Lucas Käldström 8786dab70a Include CNI for all architectures in the hyperkube image 2016-07-23 01:03:46 +03:00
k8s-merge-robot a93fbb108a Merge pull request #29235 from luxas/bump_etcd
Automatic merge from submit-queue

Bump the default etcd version in the Makefile to 3.0.3

Fixes: #29132

I haven't had time to manually validate the arm and arm64 version yet, but I think it should be fine.

cc @xiang90 @hongchaodeng @timothysc @lavalamp @wojtek-t @thockin @kubernetes/sig-scalability @Pensu @laboger
2016-07-20 07:52:14 -07:00
Lucas Käldström 62357bd767 Bump etcd version to 3.0.3 2016-07-20 01:10:49 +03:00
k8s-merge-robot d90e3761ef Merge pull request #28489 from liyimeng/patch-1
Automatic merge from submit-queue

hyperkube: fix build for 3rd party registry (again)


Fixes issue #28487 

This is a minor fix for the issue reported in #28487
2016-07-18 17:11:35 -07:00
Mike Danese 95e2e299a9 move kube-dns to the cluster/addons/ directory 2016-07-14 11:44:00 -07:00
k8s-merge-robot f9a45e6983 Merge pull request #28673 from cheld/add-cni-config
Automatic merge from submit-queue

add default flannel configuration for cni

I added a default flannel configuration for cni.

So hyperkube can be started with:
```
--network-plugin=kubenet
```
or with flannel:

```
--network-plugin=cni
--network-plugin-dir=/etc/cni/net.d
```

Requires update of cni binaries to 0.3.0 or later to work. See also https://github.com/kubernetes/kubernetes/issues/27603

This PR is intended to support multi-node Hyperkube 
https://github.com/kubernetes/kube-deploy/pull/115



CC @zreigz  

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-07-13 14:42:07 -07:00
Tim Hockin 9613e15801 Make releases work 2016-07-12 21:52:54 -07:00
Minhan Xia 0bd411878a bump cni version 2016-07-11 14:33:01 -07:00
Christoph Held d659c16eb4 add default flannel configuration for cni 2016-07-08 11:36:17 +02:00
gmarek 0c60cfc98d Fix the way addon-manager handles non-namespaced objects 2016-07-05 10:37:30 +02:00
Liyi Meng 0262c0dc72 Fix issue #28487
This is a minor fix for the issues report in #28487
2016-07-05 10:05:19 +02:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Manuel de Brito Fontes ec5cc59696 Remove duplicated nginx image. Use nginx-slim 2016-06-28 17:35:38 -04:00
Lucas Käldström 622696ca85 Hotfix: Fixup the dns configuration from a breaking feredation PR 2016-06-27 00:03:20 +03:00
Lucas Käldström ca3ee9e5a1 Revert kube-proxy as a DaemonSet in hyperkube for the v1.3 release 2016-06-22 00:48:46 +03:00
Lucas Käldström 6c53c6a997 Make hyperkube work on all platforms, bump dnsmasq to 1.3 and addon-manager to v3, and always use the latest manifests 2016-06-19 17:15:17 +03:00
bryk 7ca8a99581 Set Dashboard UI version to v1.1.0-beta2
Release info: https://github.com/kubernetes/dashboard/releases/tag/v1.1.0-beta3
2016-06-10 15:33:48 +02:00
k8s-merge-robot 6c549ae91f Merge pull request #26839 from luxas/add_conntrack
Automatic merge from submit-queue

Add conntrack to hyperkube

Trivial fix for #26515
Please just pass through...

@mikedanese @roberthbailey
2016-06-06 14:50:09 -07:00
k8s-merge-robot 60fe00999b Merge pull request #26779 from bryk/release-beta2
Automatic merge from submit-queue

Set Dashboard UI version to v1.1.0-beta2

This is our second beta. Next will come weekly till we reach final v1.1 version.

https://github.com/kubernetes/dashboard/releases/tag/v1.1.0-beta2

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-04 06:46:17 -07:00
k8s-merge-robot 57125d81e1 Merge pull request #26621 from liyimeng/kolla-k8s
Automatic merge from submit-queue

Fix the problem in building hyperkube for 3rd party registry

Minor bugfix.  fixes #26620



[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-06-04 04:23:31 -07:00
Lucas Käldström e52476661d Add conntrack to hyperkube 2016-06-04 08:23:29 +03:00
bryk f734d8b786 Set Dashboard UI version to v1.1.0-beta1
This is our second beta. Next will come weekly till we reach final v1.1 version.

https://github.com/kubernetes/dashboard/releases/tag/v1.1.0-beta2
2016-06-03 15:34:42 +02:00
Liyi Meng 6c195a4923 Fix the problem in building hyperkube for 3rd party registry 2016-06-01 04:38:48 -04:00
Girish Kalele 60d2293f4c Address review comments 2016-05-31 10:14:33 -07:00
Girish Kalele 4c1047d359 Switch DNS addons from skydns to kubedns
Unified skydns templates using a simple underscore based template and
added transform sed scripts to transform into salt and sed yaml
templates

Moved all content out of cluster/addons/dns into build/kube-dns and
saltbase/salt/kube-dns
2016-05-31 10:14:14 -07:00
bryk dfe46f3aa0 Set Dashboard UI version to v1.1.0-beta1
This is first of our betas. From now on, we'll be doing weekly releases
of new betas till we reach final v1.1 version.

https://github.com/kubernetes/dashboard/releases/tag/v1.1.0-beta1
2016-05-23 09:27:02 +02:00
Lucas Käldström 73947cc5aa Large changes to the docker deployment. Added kube-addon-manager as a static pod. The addon-manager deploys kube-proxy as a DaemonSet as well as Dashboard and DNS automatically. SecurityContextDeny is removed from the manifests. Also, the turnup.sh and turndown.sh scripts are removed because we don't need them anymore, they're covered by the online documentation 2016-05-20 19:28:13 +03:00
Johannes Scheuermann cb11324cc3 Add support for OSX and Linux 2016-05-17 21:31:32 +02:00
k8s-merge-robot 1738bbfe5f Merge pull request #25693 from luxas/fix_hyperkube
Automatic merge from submit-queue

Fix hyperkube's layer caching, and remove --make-symlinks at build time

@david-mcmahon This is required before you release. Explanation in the code.
2016-05-17 04:01:43 -07:00
Lucas Käldström e7eff87455 Critical patch. Fix hyperkube's layer caching, and remove --make-symlinks at build time 2016-05-17 00:28:24 +03:00
David McMahon 57247a672b Revert "OS X: Fix hyperkube build by adding empty string to sed invocation" 2016-05-16 12:25:54 -07:00
Jeff Lowdermilk 4abb50ee70 Merge pull request #25397 from thockin/build-non-root-prep
Make it possible to use kube-cross as non-root
2016-05-13 10:33:02 -07:00
Jeff Lowdermilk f4c9624c1a Merge pull request #25197 from oszi/expose-etcd-ports
Expose commonly used ports in the etcd image
2016-05-13 10:08:33 -07:00
Fabio Yeon 05cfd9c584 Merge pull request #24852 from johscheuer/fix-hyperkube-makefile
OS X: Fix hyperkube build by adding empty string to sed invocation
2016-05-10 19:40:52 -07:00
Tim Hockin 92da8e6f1c Make it possible to use kube-cross as non-root
The extra TMPDIR was not writable except as root.  This is not the only fix
needed for this goal, but is necessary.
2016-05-10 10:06:56 -07:00
k8s-merge-robot 5dd087040b Merge pull request #24511 from pbx0/kubelet-symlink
Automatic merge from submit-queue

cluster/images/hyperkube: create symlink for each server

Add a kubelet symlink so that the hyperkube image can appear as a kubelet image. https://github.com/kubernetes/kubernetes/issues/24510
2016-05-08 21:31:23 -07:00
Robert Bailey c9442ee47c Merge pull request #25114 from aaronlevy/hyperkube-pkg-upgrade
Upgrade installed packages when building hyperkube to improve the security profile
2016-05-06 15:03:52 -07:00
Robert Bailey 8a4295778f Merge pull request #24896 from mikedanese/hyperkube-cni
add cni plugins to hyperkube image
2016-05-06 13:58:07 -07:00
Patrick Baxter e96e57c8f7 cluster/images/hyperkube: create symlink for each server 2016-05-05 21:36:18 +00:00
Mike Danese 4aba77c1f8 add cni plugins to hyperkube image 2016-05-05 14:24:14 -07:00
David Osztertag 9e4bc8cee6 Merge COPY lines in etcd Dockerfile 2016-05-05 15:18:55 +02:00
David Osztertag 68af7dc141 Expose old and new etcd client and server ports 2016-05-05 14:31:06 +02:00
Aaron Levy dd8c3588ef cluster/images/hyperkube: Upgrade installed packages 2016-05-03 17:17:03 -07:00
Joe Finney f128b30318 Use v1.6.2-1 tag for build. 2016-05-02 14:43:06 -07:00
Johannes Scheuermann f23380fe84 Add empty string to sed 2016-04-27 08:54:13 +02:00
k8s-merge-robot 1cd93cb1d6 Merge pull request #23250 from huggsboson/patch-1
Automatic merge from submit-queue

Use kube-system namespace

Fixes #23153.

Sadly, kube-system isn't automatically created, so people need to make
sure to create it in their turnup scripts.  Also after creating
kube-system it can take 10+ seconds for master and proxy to show up.

I tested the equivalent of these changes locally, but not these changes
themselves as I don't have a dev/build env up, so please read carefully
and maybe try them out!
2016-04-25 20:23:36 -07:00
Jimmy Jones 0521ebad41 Include easy-rsa in container to avoid it being downloaded at runtime 2016-04-15 21:36:54 +01:00
Lucas Käldström 4559a84d3b Build Kubernetes, etcd and flannel for arm64 and ppc64le 2016-04-14 07:29:10 +03: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
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
k8s-merge-robot 1521aa8a86 Merge pull request #23550 from luxas/fix_hyperkube_certs
Automatic merge from submit-queue

Fix so setup-files don't recreate/invalidate certificates that already exist

Fixes: #23197 and a lot of other DNS and dashboard issues

This is quite critical for `docker`-based users and should be considered as a **cherrypick-candidate** as it makes a lot of people wonder why Dashboard and/or DNS doesn't work. Example: https://github.com/kubernetes/dashboard/issues/374

Earlier when you shut your `docker.md` cluster down and started it again, all ServiceAccounts became invalidated by `setup-files` that happily ran once again and replaced all files. That made `apiserver` and `controller-manager` pick up the new certs (or there was a race condition, they _could_ have picked up the old certs too, but that's unlikely) and the old certs were put into `/var/run/secrets` because the ServiceAccount's Secrets were stored in etcd, which `setup-files` didn't touch.

@fgrzadkowski @huggsboson @thockin @mikedanese @vishh @pwittrock @eparis @bgrant0607
2016-04-01 14:47:17 -07:00
Lucas Käldström 858b9539d5 Fix so setup-files don't recreate/invalidate certificates that already exist 2016-04-01 21:23:58 +03:00
huggsboson 99c79d1ccf Fixes #23153.
Sadly, kube-system isn't automatically created, so people need to make
sure to create it in their turnup scripts.  Also after creating
kube-system it can take 10+ seconds for master and proxy to show up.

I tested the equivalent of these changes locally, but not these changes
themselves as I don't have a dev/build env up, so please read carefully
and maybe try them out!

Use kubectl create ns
2016-03-31 14:07:31 -07:00
Lucas Käldström 2928d0a8ec Up to golang 1.6 2016-03-27 17:17:04 +03:00
Jimmy Jones b26f5016b2 Add git to hypekube image
Fixes #15855 - when using a docker multinode setup, this makes gitRepo volumes work
2016-03-23 23:00:01 +00:00
Manuel de Brito Fontes a2b4bc0ae3 Allow running make in mac and change sed separator to allow custom paths in registry 2016-03-12 22:59:08 -03:00
Lucas Käldström e9af6c34af Update the DNS template from cluster/addons/dns and combine into one file. Make DNS working on docker and docker-multinode 2016-02-25 21:59:07 +02:00
Andrei Kopats e5c321f6af Add internal API-server IP to the list of certificate SANs
Without this kube2sky fails to comunicate to the API server because
server TLS verification fails. DNS addon doesn't work on
docker setups
2016-02-19 11:37:24 +03:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
Lucas Käldström d5b7fd7f95 Remove -v /dev:/dev from docker and docker-multinode 2016-02-07 22:15:20 +02: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
Jeff Grafton 0d84b49f65 Update tests from Go 1.5.2 to Go 1.5.3 2016-01-21 09:43:52 -08:00
k8s-merge-robot 36b6d80912 Merge pull request #17213 from luxas/16987-default-serviceaccount-secret-hyperkube
Auto commit by PR queue bot
2016-01-21 04:31:45 -08: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 d246ed00fa Merge pull request #18894 from luxas/update_master_multi
Auto commit by PR queue bot
2016-01-11 20:38:41 -08:00
Lucas Käldström 7d497441b3 Update docker-multinode instructions and version. Also run kube-proxy in a pod in the docker-multnode manifest 2016-01-11 16:45:56 +02:00