Commit Graph

106 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
Michael Taufen
e52718bbc6 Clean up API
Move SystemReserved and KubeReserved into KubeletConfiguration struct
Convert int64 to int32 for some external type fields so they match internal ones
tLS* to tls* for JSON field names
Fix dependency on removed options.AutoDetectCloudProvider
Change floats in KubeletConfiguration API to ints
2016-07-14 18:40:11 -07:00
Mike Danese
e070cb617a componentconfig: add external kubelet configuration type 2016-07-14 18:38:58 -07:00
k8s-merge-robot
72f6493376 Merge pull request #27349 from resouer/delete
Automatic merge from submit-queue

Generates DELETE pod update operations

fixes #27105

Generates DELETE pod update operations  to make the code and log more intuitive.

1. main refactoring is in `kubelet/config`
2. kubelet will log if it received DELETE, just like other OPs

cc @Random-Liu :)
2016-07-12 01:04:35 -07:00
Harry Zhang
0d5dddcb71 Add DELETE event type
Signed-off-by: Harry Zhang <harryz@hyper.sh>

Combine delete with update
2016-07-12 14:08:01 +08:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Random-Liu
52ebd4ecf1 Add runtime-request-timeout kubelet flag. 2016-06-17 18:18:41 -07:00
Shaya Potter
ae08ef38d7 kubelet/cadvisor: Refactor cadvisor disk stat/usage interfaces 2016-05-19 11:13:47 -07:00
Clayton Coleman
fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
Kris
e664ef922f Move restclient to its own package 2016-02-29 12:05:13 -08:00
k8s-merge-robot
f6ae6b47ae Merge pull request #20687 from vishh/systemd-support
Auto commit by PR queue bot
2016-02-11 13:06:29 -08:00
James DeFelice
62ba692bd9 k8sm patches for recent commits to upstream/master:
- run namespace controller async, see see #20076
- do not use a kubelet lock file for k8sm kubelet-executor
2016-02-11 06:42:50 +00:00
Vishnu kannan
575812787d Replace --resource-container and --system-container with
`--kubelet-cgroups` and `--system-cgroups` respectively.
Updated `--runtime-container` to `--runtime-cgroups`.
Cleaned up most of the kubelet code that consumes these flags to match
the flag name changes.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-10 17:33:28 -08:00
Vishnu kannan
38efc837b9 Make container runtime's cgroup configurable.
Use the real cgroups for metrics generation.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-10 16:02:34 -08: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
Jan Chaloupka
4389b3f0d6 Rewritte util.* -> wait.* wherever reasonable 2016-02-07 12:02:20 +01:00
Chao Xu
184440f8ef rename release_1_2 to internalclientset 2016-02-05 14:02:28 -08:00
Chao Xu
1b047f8e67 rename legacy to core 2016-02-04 14:26:56 -08:00
Chao Xu
f9f5736b01 grep sed 2016-02-03 13:06:07 -08:00
Chao Xu
cddd7b56a4 replace client with clientset in kubelet and other places 2016-02-02 20:28:45 -08:00
harry
1032067ff9 Replace runtime reference by pkg 2016-02-01 21:06:44 +08:00
Jimmi Dyson
1c289943f5 Ensure kubelet pid is not moved to system container 2016-01-29 09:30:20 +00:00
k8s-merge-robot
b02285cd0c Merge pull request #19632 from mesosphere/jdef_unified_pod_watch
Auto commit by PR queue bot
2016-01-20 16:26:49 -08:00
James DeFelice
b2013cb1ba replace pod-observer and check-for-lost-pod polling with a single pod watcher and task registry 2016-01-20 18:53:34 +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
Sergiusz Urbaniak
9176e93ba8 service: initialize EventClient
Kubelet events are not being tracked. This commit fixes it by
initializing the event client.

fixes https://github.com/mesosphere/kubernetes-mesos/issues/680
2015-12-09 20:43:11 +01:00
Random-Liu
3cbdf79f8c Change original PodStatus to APIPodStatus, and start using kubelet internal PodStatus in dockertools 2015-12-04 17:37:39 -08:00
James DeFelice
02a11f7a2e Merge pull request #53 from mesosphere/jdef_fix_executor_state_locks
MESOS: avoid mutex locking around blocking calls in kubelet-executor
Conflicts:
	contrib/mesos/pkg/executor/service/service.go
2015-12-02 22:45:52 +00:00
zhengguoyong
bff8334db9 Consistent import kubelet app package name 2015-11-28 08:51:39 +08:00
James DeFelice
3d3577b9f3 rewrite of static pod json zipper
- add busybox static pod to mesos-docker cluster
- customize static pods with binding annotations
- code cleanup
- removed hacky podtask.And func; support minimal resources for static pods when resource accounting is disabled
- removed zip archive of static pods, changed to gzip of PodList json
- pod utilities moved to package podutil
- added e2e test
- merge watched mirror pods into the mesos pod config stream
2015-11-13 23:30:26 +00:00
Vishnu kannan
4ad3d6f5fe Move container manager into a separate package.
Inject container manager into Kubelet. This lets us stub out container
manager during integration testing.
2015-11-11 15:00:37 -08:00
eulerzgy
31c09bdcb8 Del capatical local packagename for cadvisorApi 2015-10-16 11:03:50 +08:00
Dr. Stefan Schimanski
ae7830b4be Pass Mesos cpu and mem values to cadvisor 2015-10-10 21:19:08 +02:00
Dr. Stefan Schimanski
b629278d7d Set static pods dir to 0750 instead of world readible 0755 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
d74950cfb9 Re-use CreateAndInitKubelet 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
4ec703174b Simplify executorKubelet decorator and move to kubelet.go
- simplify
- rename kubeletExecutor -> executorKubelet
- move executorKubelet code into kubelet.go
- remove duplicated executorKubelet.ListenAndServe
- fix executorKubelet.Run comment
2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
0feb1bceb5 Re-use KubeletServer.KubeletConfig and KubeletServer.Run 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
dd5bafdba5 Decouple startup of executor and kubelet 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
a60df400fd Decouple executor initialization from kubelet
This patch reduces the dependencies of the executor from the kubelet. This
makes it possible launch the kubelet after the executor.

This considerably reduces the complexity of the startup code.

Moreover, this work is a requirement to use a standalone kubelet some day.
2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
93ae257af4 Consolidate executor driver initialization code 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
efdd726027 Un-knot static pods creation in executor 2015-10-10 11:54:27 +02:00
Dr. Stefan Schimanski
686b767f28 Remove redundant kubelet dependency of executor 2015-10-10 11:54:27 +02:00
Mike Danese
392f33e417 Merge pull request #14054 from mikedanese/register-master
register master kubelet with the apiserver
2015-10-09 17:12:37 -07:00
Yu-Ju Hong
a3e60cc32e Rename imported package local name kubeletTypes to kubetypes
According to the naming guidelines, package name should not include mixedCaps.
2015-10-09 10:24:31 -07:00
k8s-merge-robot
b793c3edf1 Merge pull request #14700 from liggitt/kubelet_authz
Auto commit by PR queue bot
2015-10-09 03:01:43 -07:00
k8s-merge-robot
538cf72208 Merge pull request #15051 from feiskyer/kubelet/garbage-collection
Auto commit by PR queue bot
2015-10-09 02:11:47 -07:00
Jordan Liggitt
9d6b52881d Add authentication/authorization interfaces to kubelet, always include /metrics with /stats 2015-10-09 03:10:00 -04:00
Mike Danese
fa60bbe8e6 add flag to kubelet to ignore the cidr passed down by the apiserver on the master 2015-10-08 21:21:19 -07:00
feisky
43a654ed7b Refacotor gcPolicy in contrib/mesos 2015-10-09 06:57:10 +08:00