Commit Graph

30 Commits

Author SHA1 Message Date
Davanum Srinivas
2b0ed014b7 Use Go canonical import paths
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports

Fixes #29014
2016-07-16 13:48:21 -04:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
James DeFelice
622a28c021 forward globally declared cadvisor housekeeping flags 2016-03-15 04:55:37 +00:00
HAI HUANG
b08e2b7201 added proxy-kubeconfig flag 2016-03-10 20:35:49 -05:00
James DeFelice
954e25465d fix several bugs:
- properly remove the leading non-flag args from the command line before passing the rest to the executor
  - fix missed "add" after "delete" in merge() when objects are identical
  - properly test for tombstone instead of *api.Node in delete handler
  - basic tests for node registrator
2016-03-04 07:35:13 +00:00
Kris
e664ef922f Move restclient to its own package 2016-02-29 12:05:13 -08:00
James DeFelice
f9643165f2 stop creating /kubelet and /kube-proxy sub-containers because mesos slaves cannot handle it upon failover 2016-02-22 03:08:44 +00:00
James DeFelice
fc1c43507e inject MESOS_EXECUTOR_CONTAINER_UUID envvar into all docker containers
spawned by kubelet: static and non-static pod user containers, as well
as pod infrastructure containers.
2016-02-10 18:20:52 +00:00
Mike Danese
1162cfd3b1 kubelet: move most of kubelet server configuration to a config object.
This is part of migrating kubelet configuration to the componentconfig api
group and is preliminary to retrofitting client configuration and
implementing full fledged API group mechinary.

Signed-off-by: Mike Danese <mikedanese@google.com>
2016-01-15 15:31:59 -08:00
Clayton Coleman
791d160b42 Split the Kubelet flag options and struct
Reduces the size of the app/server.go file and ensures that the flags
and their defaults are clearly separated.
2016-01-06 21:23:06 -05:00
James DeFelice
58407ca8a2 avoid updating nf_conntrack-related settings, by default, when running k8s on mesos 2016-01-06 21:57:25 +00:00
James DeFelice
5ae56ce554 disable conntrack behavior mods that are possibly causing smoke tests to bomb 2016-01-05 02:06:18 +00:00
James DeFelice
f855ac39d3 added proxy-mode flag to scheduler and minion 2015-11-18 20:32:44 +00:00
Dr. Stefan Schimanski
adfc63e749 Clean up error handling for the sandbox overlay 2015-11-12 01:33:50 +01:00
Dr. Stefan Schimanski
4062e2be2f Add executor sandbox overlay mechanism to distribute nsenter and socat 2015-11-03 11:27:40 +01:00
James DeFelice
df246991e0 avoid blocking on full-pipe conditions for procs that write to stdout, which we continue to ignore 2015-10-15 21:20:23 +00:00
James DeFelice
6229c336e5 fix test flake due to dependency on time.Timer 2015-10-05 18:41:27 +00:00
James DeFelice
ec2605a758 wait for some grace period for kill proc to die, upgrading from SIGTERM to SIGKILL if needed
- refactor kill signal escalation into separate func for easier unit testing
- added unit test for signal escalation
2015-09-24 18:53:23 +00:00
Dr. Stefan Schimanski
ada14a524d Fix compilation of Mesos minion on Mac 2015-09-04 16:59:44 +00:00
James DeFelice
a1cea8dd87 Flexible resource accounting and pod resource containment:
- new: introduce AllocationStrategy, Predicate, and Procurement to scheduler pkg
- new: --contain-pod-resources flag (workaround for docker+systemd+mesos problems)
- new: --account-for-pod-resources flag (for testing overcommitment)
- bugfix: forward -v flag from minion controller to executor
2015-09-04 00:49:13 +00:00
James DeFelice
124929e373 refactoring of child process handling code
- tasks subpackage responsible for managing system process lifecycle
- minion propagates SIGTERM to child procs
- child procs will be SIGKILL'd upon parent process death
2015-09-03 21:52:08 +00:00
James DeFelice
7fbd290167 moved cgroup-root detection to minion service; kube proxy now configured to run in mesos container 2015-09-02 06:13:26 +00:00
Dr. Stefan Schimanski
cac58f6db7 Add --path-override to minion to change the PATH env var of subprocesses;
pass hostname-override through to kube-proxy (if defined)
2015-08-27 22:57:04 +00:00
Kris Rousey
ae6c64d9bb Moving everyone to unversioned client 2015-08-18 10:23:03 -07:00
Kris Rousey
565189f5b8 Correcting all go vet errors 2015-08-11 13:55:37 -07:00
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Dr. Stefan Schimanski
76dc61bcfb Revert "Revert "Add Mesos hyperkube minion server ""
This reverts commit 8372b0d927.
2015-07-31 20:33:04 +02:00
Mike Danese
8372b0d927 Revert "Add Mesos hyperkube minion server " 2015-07-31 10:47:42 -07:00
Dr. Stefan Schimanski
c4d6f75e35 Disable private mount ns for now in Mesos hyperkube minion server
Until Docker learns parent mount namespace customization the container will
always have the root ns as a parent, not the one of the km minion. Hence, the
kubelet (which lives in the km minion mount ns) will create mounts that cannot
be seen by the Docker containers.

This feature can be enabled again when Docker learns to explicitly set the
parent mount ns, in analogy to the parent cgroup.
2015-07-31 12:28:41 +02:00
Dr. Stefan Schimanski
2b1ecd28f0 Add Mesos hyperkube minion server
The minion server will
- launch the proxy and executor
- relaunch them when they terminate uncleanly
- logrotate their logs.

It is a replacement for a full-blown init process like s6 which is not necessary
in this case.
2015-07-31 12:28:40 +02:00