Brendan Burns
64717962cf
Merge pull request #13211 from ashcrow/kubelet-disk-manager-tests
...
test: improved kubelet disk_manager coverage.
2015-09-01 10:10:07 -07:00
Brendan Burns
43e7c9b211
Merge pull request #13367 from spothanis/cinder
...
Cinder Volume Plugin
2015-09-01 10:05:15 -07:00
k8s-merge-robot
5331a26c5b
Merge pull request #13293 from yujuhong/pod_dir
...
Auto commit by PR queue bot
2015-09-01 04:59:55 -07:00
k8s-merge-robot
49475c3431
Merge pull request #13061 from yifan-gu/rkt_patch_events
...
Auto commit by PR queue bot
2015-09-01 04:10:18 -07:00
k8s-merge-robot
4a7115d272
Merge pull request #11955 from pedro-r-marques/flag_resolv_conf
...
Auto commit by PR queue bot
2015-08-30 21:03:54 -07:00
Sreekanth Pothanis
f5da6b34ce
Cinder Volume Plugin
2015-08-30 19:56:27 -07:00
k8s-merge-robot
093614ec32
Merge pull request #13320 from yujuhong/fix_restarts
...
Auto commit by PR queue bot
2015-08-28 23:00:11 -07:00
Sami Wagiaalla
ccd0fcd1f9
Rmove Hostname health check
...
The health check is no longer needed since health checks are no longer
run by master but updated by the kubelet; so a host with the incorrect
host name will not be updated and show 'NotReady' status
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-08-28 16:53:02 -04:00
Yu-Ju Hong
f707ca08d5
Fix incorrect restart count for docker containers
2015-08-28 11:54:30 -07:00
Prashanth B
05b205bab6
Revert "Volume Plugin for Cinder; Openstack Block Storage"
2015-08-28 10:56:24 -07:00
Prashanth B
8d0d54ffed
Merge pull request #6689 from spothanis/cinder-vol-plugin
...
Volume Plugin for Cinder; Openstack Block Storage
2015-08-28 10:47:31 -07:00
Yu-Ju Hong
8774f6efa2
kubelet: don't remove any pod directory with non-empty volumes
...
If the volumes directory is not empty, it implies that volumes may not have
been properly cleaned up yet. Do not attempt to remove the pod directory.
2015-08-27 22:18:51 -07:00
Yu-Ju Hong
697197d383
Kubelet: do not remove pod directory if any container is still running
...
If there are any running container in the pod, we cannot remove the volume.
Therefore, we should not attempt to remove the pod directory.
2015-08-27 18:19:13 -07:00
Steve Milner
3181e5b913
test: improved kubelet disk_manager coverage.
2015-08-27 15:54:45 -04:00
Pedro Roque Marques
99b1da848d
Add kubelet '--resolv-conf' flag.
...
Allow the user to specify the resolver configuration file that is used
to determine the default DNS parameters. This defaults to the system's
/etc/resolv.conf.
2015-08-26 15:41:36 -07:00
Yu-Ju Hong
c7afae75f5
Merge pull request #13103 from yujuhong/restart_count
...
Kubelet: fix container restart counts
2015-08-26 15:13:10 -07:00
Yu-Ju Hong
d839ab2024
Merge pull request #12940 from Miciah/Warning-to-Warningf
...
glog.Warning -> glog.Warningf
2015-08-26 13:36:05 -07:00
Yifan Gu
67e1589a08
kubelet/rkt: add created/started/failed/killing events.
...
Also improve the logging for rkt command line commands.
2015-08-26 10:39:10 -07:00
Yu-Ju Hong
c237ac4c84
Merge pull request #13003 from yujuhong/decouple_workers
...
kubelet: trigger pod workers independently
2015-08-26 09:53:25 -07:00
Yifan Gu
6ced66249d
kubelet/dockertools: clear container reference when killing a container.
2015-08-25 18:22:08 -07:00
Yu-Ju Hong
b906e34576
kubelet: trigger pod workers independently
...
Currently, whenever there is any update, kubelet would force all pod workers to
sync again, causing resource contention and hence performance degradation.
This commit flips kubelet to use incremental updates (as opposed to snapshots).
This allows us to know what pods have changed and send updates to those pod
workers only. The `SyncPods` function has been replaced with individual
handlers, each handling an operation (ADD, REMOVE, UPDATE). Pod workers are
still triggered periodically, and kubelet performs periodic cleanup as well.
This commit also spawns a new goroutine solely responsible for killing pods.
This is necessary because pod killing could hold up the sync loop for
indefinitely long amount of time now user can define the graceful termination
period in the container spec.
2015-08-25 17:52:01 -07:00
Yu-Ju Hong
655645eb9c
Merge pull request #13041 from yifan-gu/rkt_patch_fix
...
kubelet/rkt: merge environments instead of overriding.
2015-08-25 16:58:00 -07:00
Yu-Ju Hong
3bc2157889
Merge pull request #13100 from pweil-/cap-priv-sources
...
use privileged source object
2015-08-25 16:10:50 -07:00
Sreekanth Pothanis
c841a20361
Cinder Volume Plugin
2015-08-25 15:13:56 -07:00
Yifan Gu
7767dafb4d
kubelet/rkt: include the pod restart count in service file.
...
Also remove the service file when the pod is killed.
2015-08-25 13:59:18 -07:00
Yifan Gu
763ffdb1fe
kubelet/rkt: merge environments instead of overriding.
...
Merge the environments in container spec and in the image
manifest. Also allow empty app in image manifest.
2015-08-25 13:10:58 -07:00
Yu-Ju Hong
9f508e9422
Merge pull request #13076 from invenfantasy/master
...
Cleanup deprecated Forever function
2015-08-25 10:07:10 -07:00
Nikhil Jindal
8846c841a8
Merge pull request #12648 from samsabed/crashloop
...
back off restarts of crashlooping containers
2015-08-24 18:54:13 -07:00
Paul Weil
709e654686
use privileged source object
2015-08-24 16:53:43 -04:00
Yu-Ju Hong
1e26cdfb67
kubelet: fix container restart counts
...
This commit ensures that the container restart count increments monotonically
when there is no kubelet restarts.
2015-08-24 12:50:05 -07:00
Nikhil Jindal
a1c5f3f45d
Merge pull request #12876 from yujuhong/pod_status
...
kubelet: switch to using pod UID as the key in status manager
2015-08-24 10:39:02 -07:00
Sam Abed
995cb15bb6
back off restarts of crashlooping containers
...
Signed-off-by: Sam Abed <samabed@gmail.com>
2015-08-24 21:43:17 +10:00
caogaojin
60cb4406e9
Cleanup deprecated Forever function
...
Since util.Forever function has been deprecated, we should cleanup these
pieces of code.
2015-08-24 10:31:59 +08:00
Zach Loafman
73d105e22c
Merge pull request #12959 from smarterclayton/handle_pods_in_kubelet
...
Support graceful termination in the Kubelet (5/7)
2015-08-21 16:13:21 -07:00
Yifan Gu
a2b148b27b
kubelet/rkt: fix rkt version parsing.
...
Use SemVer to parse the version string.
2015-08-21 10:45:11 -07:00
Clayton Coleman
f5c4a3e7a6
Handle graceful termination in the Kubelet
...
Supports pods that are gracefully deleted on the server being
handled in the Kubelet
preStop is limited to the grace period of the pod in execution.
2015-08-21 10:18:21 -04:00
k8s-merge-robot
44c76d5319
Merge pull request #12957 from smarterclayton/handle_terminating_pods
...
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Saad Ali
9c29733435
Merge pull request #12938 from yifan-gu/rkt_patch_container_log
...
kubelet/rkt: Add support for fetching per container log.
2015-08-20 17:27:49 -07:00
Saad Ali
1db153cee3
Merge pull request #12895 from lvlv/uts
...
use host uts namespace when pod.Spec.HostNetwork is true
2015-08-20 17:26:03 -07:00
Saad Ali
a90b67f276
Merge pull request #12880 from yifan-gu/pod_status
...
kubelet: refactor kubecontainer.Pod, remove PodStatus from it.
2015-08-20 17:25:29 -07:00
Saad Ali
9b01580946
Merge pull request #12872 from runningwild/master
...
Fix several problems with using rkt on gce
2015-08-20 15:46:16 -07:00
Saad Ali
3f66648ada
Merge pull request #12832 from yifan-gu/rkt_patch_img
...
kubelet/rkt: update image related interfaces.
2015-08-20 14:32:55 -07:00
Yifan Gu
045a164362
kubelet/rkt: update image related interfaces.
...
Add RemoveImage(), ListImages().
Update PullImage(), IsImagePresent().
2015-08-20 11:16:18 -07:00
Clayton Coleman
02dbb95447
Add TerminationGracePeriodSeconds to API
...
Set defaulting for pod spec
2015-08-20 11:03:38 -04:00
Saad Ali
f396a7116d
Merge pull request #12811 from mvdan/kubelet-restful
...
kubelet: Switch to restful for the REST api endpoints
2015-08-19 16:48:50 -07:00
Saad Ali
fb18b09306
Merge pull request #12885 from dchen1107/docker
...
Leave process 1 at root cgroup
2015-08-19 14:56:52 -07:00
Miciah Masters
8aa299da90
glog.Warning -> glog.Warningf
...
Fix three places where glog.Warning is used with a formatted string.
2015-08-19 16:22:28 -04:00
Yifan Gu
710c34a362
kubelet/rkt: Add support for fetching per container log.
2015-08-19 12:13:04 -07:00
Jonathan Wills
80e799fc0c
Allow configuring the rkt binary in a kubelet with a flag.
...
This is necessary because coreos comes with rkt installed, and if we want to use a different version
we need some way to avoid the default one.
2015-08-19 09:42:13 -04:00
Lv Lv
7cf9ee19c7
add test for utsMode change
2015-08-19 16:56:19 +08:00