Commit Graph

7628 Commits

Author SHA1 Message Date
Victor Marmol
d1ed571e28 Use containerGC in the Kubelet.
New policy default is 100 containers max.

Fixes #5457.
2015-03-17 10:50:32 -07:00
Victor Marmol
4c17c09a8f Separate GC policy into containerGC struct.
The policy today takes a min GC age, max dead containers per pod, and
max containers overall. When GC is called, only dead containers created
more than min GC age ago are considered. The policy tries to keep one
dead instance of every pod's containers.
2015-03-17 10:50:06 -07:00
Dawn Chen
5a04bf6316 Merge pull request #5512 from vmarmol/igc
Introduce and implement image GC policy
2015-03-17 10:36:22 -07:00
Victor Marmol
6b9b2a5ef1 Merge pull request #5401 from yujuhong/syncstatic
Sync static pods from Kubelet to the API server
2015-03-17 10:36:05 -07:00
Victor Marmol
6bcbf12a3d Add image garbage collection policy to imageManager. 2015-03-17 09:19:04 -07:00
Victor Marmol
303a1f7ea1 Adding cAdvisor API to get image usage information. 2015-03-17 09:17:38 -07:00
Tim Hockin
879a39bcc4 Merge pull request #5192 from quinton-hoole/2015-03-06-service-namespace-clash
Fix service namespace clash
2015-03-17 09:10:50 -07:00
Yu-Ju Hong
929fb63b33 Sync static pods from Kubelet to the API server
Currently, API server is not aware of the static pods (manifests from
sources other than the API server, e.g. file and http) at all. This is
inconvenient since users cannot check the static pods through kubectl.
It is also sub-optimal because scheduler is unaware of the resource
consumption by these static pods on the node.

This change syncs the information back to the API server by creating a
mirror pod via API server for each static pod.

 - Kubelet creates containers for the static pod, as it would do
   normally.

 - If a mirror pod gets deleted, Kubelet will re-create one. The
   containers are sync'd to the static pods, so they will not be
   affected.

 - If a static pod gets removed from the source (e.g. manifest file
   removed from the directory), the orphaned mirror pod will be deleted.

Note that because events are associated with UID, and the mirror pod has
a different UID than the original static pod, the events will not be
shown for the mirror pod when running `kubectl describe pod
<mirror_pod>`.
2015-03-17 08:45:56 -07:00
Brendan Burns
2c97522692 Merge pull request #5549 from timothysc/ISSUE-5461-proxy-fdlimits
Fix to address issue #5461 kube-proxy too many files open
2015-03-17 08:16:39 -07:00
Timothy St. Clair
140330fca8 Fix to address issue #5461 kube-proxy too many files open
https://github.com/GoogleCloudPlatform/kubernetes/issues/5461
2015-03-17 10:13:25 -05:00
Victor Marmol
668e2dbcd8 Merge pull request #5502 from wojtek-t/completely_remove_bound_pods
Remove BoundPod type from source code
2015-03-17 08:09:50 -07:00
Brendan Burns
1c5f6a3cfa Merge pull request #5353 from bgrant0607/docfix
Clarified expectations for pods.
2015-03-17 07:44:09 -07:00
Brendan Burns
2a9c3080ed Merge pull request #5544 from piosz/fix
Fill NodeInfo in CreateFromKey method in scheduler
2015-03-17 07:32:55 -07:00
Brendan Burns
3462f68d49 Merge pull request #5455 from AntonioMeireles/use_native_coreos_flannel
use natively packaged flannel in CoreOS' cloud-configs
2015-03-17 07:31:09 -07:00
Brendan Burns
5fb18c6f33 Merge pull request #5101 from justinsb/aws_getnoderesources
Add support for GetNodeResources to AWS
2015-03-17 07:30:34 -07:00
Brendan Burns
b2ed6b3255 Merge pull request #3171 from anguslees/openstack-provider
OpenStack updates
2015-03-17 07:30:08 -07:00
Brendan Burns
c54dc5b4af Merge pull request #4833 from ghodss/versioning
Kube release and API versioning policy
2015-03-17 07:29:44 -07:00
Brendan Burns
60b2b5d5b4 Merge pull request #5447 from jayunit100/k8petstore
K8petstore
2015-03-17 07:28:30 -07:00
Piotr Szczesniak
7aa6356625 Fill NodeInfo in CreateFromKey method in scheduler
NodeInfo was nil and it caused segfault

Fixes #5503
2015-03-17 14:57:49 +01:00
Wojciech Tyczynski
5c99bc9e96 Merge pull request #5542 from GoogleCloudPlatform/revert-5205-sync_pod_status
Revert "Periodically update pod status from kubelet."
2015-03-17 14:14:57 +01:00
Filip Grzadkowski
18b728ff44 Revert "Periodically update pod status from kubelet." 2015-03-17 13:51:45 +01:00
Jeff Lowdermilk
404b20e6b8 Add dependencies for k8petstore to Godeps
Cleanup k8petstore to use Godeps dependencies, add to hack/build-go.sh
Remove trailing spaces, README
2015-03-17 07:06:01 -04:00
Wojciech Tyczynski
e6d188fca8 Remove BoundPod structure 2015-03-17 10:27:41 +01:00
António Meireles
1891ba029c in CoreOS configs enforce that docker starts only after flanneld is running.
Signed-off-by: António Meireles <antonio.meireles@reformi.st>
2015-03-17 08:38:48 +00:00
António Meireles
07461f9a46 use natively packaged flannel in CoreOS' cloud-configs
in the footsteps of #5254 merge earlier today and per @brendandburns comments
in the PR review thread...

Signed-off-by: António Meireles <antonio.meireles@reformi.st>
2015-03-17 08:38:48 +00:00
Sam Ghods
373fc9656a Kube release and API versioning policy 2015-03-16 20:37:14 -07:00
Quinton Hoole
cc72eaec3a Fix services namespace clash.
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00
Victor Marmol
c04ceec27f Merge pull request #5531 from GoogleCloudPlatform/rel-0.13
Release 0.13.0
2015-03-16 17:06:57 -07:00
Victor Marmol
009737e69e Merge pull request #5205 from fgrzadkowski/sync_pod_status
Periodically update pod status from kubelet.
2015-03-16 17:04:31 -07:00
Victor Marmol
fa23519387 Merge pull request #5167 from thockin/volume_wrapper_plugins
Implement volume wrapper plugins
2015-03-16 16:37:50 -07:00
Brendan Burns
7fbf52a599 Kubernetes version v0.13.0-dev 2015-03-16 16:31:03 -07:00
Brendan Burns
8d8b9b9a78 Kubernetes version v0.13.0 2015-03-16 16:31:03 -07:00
Zach Loafman
278b741203 Merge pull request #5527 from vmarmol/e2e
Revert #5479, don't force no cgo.
2015-03-16 16:28:16 -07:00
Alex Robinson
2fee5ba059 Merge pull request #5529 from satnam6502/fluentd-gcp-image
Make Fluentd to Cloud Logging collector read from head
2015-03-16 16:24:47 -07:00
Satnam Singh
d395efa463 Make Fluentd to Cloud Logging collector read from head 2015-03-16 16:19:07 -07:00
Tim Hockin
b42652cd3d Retool mount detection for tests 2015-03-16 16:17:47 -07:00
Brian Grant
407589147e Merge pull request #5005 from jdef/persistent_bindings
Persist Bindings annotations alongside pod Host assignment
2015-03-16 16:16:44 -07:00
jayunit100
abf3bb226e Cleanup after initial PR and shading of src. 2015-03-16 19:12:36 -04:00
Brian Grant
bcae5715a1 Merge pull request #5459 from thockin/apidoc
Add a doc explaining how to make API changes
2015-03-16 16:05:58 -07:00
Victor Marmol
d7a7d4da08 Revert #5479, don't force no cgo.
We allow cgo when available since some of our server components (mainly
Kubelet) rely on it. The current driving factor for the static binaries
was building Docker images from scratch. We will instead use images
built from small busybox bases.

Fixes #5517
2015-03-16 16:03:46 -07:00
Brian Grant
2f9a41b898 Merge pull request #5233 from brendandburns/labels
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Alex Robinson
361c208a7d Merge pull request #5519 from jlowdermilk/sharing-clusters
Add a doc on sharing cluster access credentials via kubeconfig
2015-03-16 15:54:13 -07:00
Nikhil Jindal
7fa7cf5321 Merge pull request #5291 from you-n-g/master
sipmle typo
2015-03-16 15:43:52 -07:00
Jeff Lowdermilk
d7d6418474 Add a doc on sharing cluster access credentials via kubeconfig 2015-03-16 15:43:34 -07:00
Filip Grzadkowski
336525a27d Periodically update pod status from kubelet. 2015-03-16 23:03:03 +01:00
Alex Robinson
0b67c9e94c Merge pull request #5379 from justinsb/aws_iam_roles
Configure separate IAM roles for master & minion, create roles in docs
2015-03-16 14:37:18 -07:00
Tim Hockin
9eebaa8168 Merge pull request #4115 from sub-mod/master_changes
Use discovery heuristics in ChooseHostInterface method to fetch PublicAddress
2015-03-16 14:31:15 -07:00
Justin Santa Barbara
8b535ff17a Fix copy-and-paste error in log message 2015-03-16 14:30:24 -07:00
Tim Hockin
dab2d1a14b Merge pull request #5420 from vmarmol/cross
Make "kubernetes" a server binary.
2015-03-16 14:29:51 -07:00
Derek Carr
1291401c2e Merge pull request #5516 from smarterclayton/add_ttl_to_helper
Add TTL support to etcd_helper in preparation for graceful delete
2015-03-16 17:14:35 -04:00