Yang Guo
f9767d2f71
Change StatsProvider interface to provide container stats from either cadvisor or CRI and implement this interface using cadvisor
2017-08-25 13:11:26 -07:00
Ebbe Elsborg
a286f25ff4
Typed static/mirror pod UID translation
2017-08-14 14:51:26 +02:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Shyam Jeedigunta
4425864707
Migrate kubelet configmap management logic to an interface
2017-05-31 10:39:36 +02:00
zhangxiaoyu-zidif
65080ea1c1
ParsePodFullName():code robustness
2017-05-11 19:14:16 +08:00
Mike Danese
a05c3c0efd
autogenerated
2017-04-14 10:40:57 -07:00
Clayton Coleman
be6d2933df
refactor: Move *Options references to metav1
2017-01-24 13:41:51 -05:00
Clayton Coleman
7b1c715496
generated: Move references to metav1.*Options
2017-01-24 13:41:48 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
gmarek
3c0d2bb1f0
Add SecretManager to Kubelet
2017-01-19 20:12:04 +01:00
Wojciech Tyczynski
09e4de385c
Enable nontrivial secret manager
2017-01-19 19:47:33 +01:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
77b4d55982
mechanical
2017-01-16 09:35:12 -05:00
NickrenREN
a12dea14e0
fix redundant alias clientset
2017-01-12 10:21:05 +08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
NickrenREN
2fa0935c19
Add unit test function to test DeletePod
...
Add unit test function to test DeletePod() of podManager
2017-01-03 11:08:39 +08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Dawn Chen
b03fca9783
Fixed an import cycle issue:
...
import cycle not allowed in test
package k8s.io/kubernetes/pkg/client/restclient (test)
imports k8s.io/kubernetes/pkg/api/testapi
imports k8s.io/kubernetes/pkg/apis/componentconfig/install
imports k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1
imports k8s.io/kubernetes/pkg/kubelet/qos
imports k8s.io/kubernetes/pkg/kubelet/pod
imports k8s.io/kubernetes/pkg/client/clientset_generated/clientset
imports k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/apps/v1beta1
imports k8s.io/kubernetes/pkg/client/restclient
2016-12-21 16:34:24 -08:00
bprashanth
afd676d94c
Kubelet admits critical pods even under memory pressure
2016-12-15 18:58:09 -08:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Chao Xu
bcc783c594
run hack/update-all.sh
2016-11-23 15:53:09 -08:00
Chao Xu
5e1adf91df
cmd/kubelet
2016-11-23 15:53:09 -08:00
gmarek
795961f7e7
Add more logging around Pod deletion
2016-11-21 11:20:48 +01:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
Random-Liu
1b1f2766ed
Avoid StatusManager.syncPod when there is no corresponding mirror pod for static pod.
2016-09-07 17:03:15 -07:00
Andrey Kurilin
9f1c3a4c56
Fix various typos in kubelet
2016-08-03 01:14:44 +03:00
Euan Kemp
eeee8b54ea
kubelet: delete unused pod manager method
2016-07-08 15:15:54 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Tim St. Clair
f2f3caf744
Rename **/manager.go
2016-06-21 15:11:31 -07:00
Paul Morie
8dafc776de
Godoc for kubelet pod manager
2016-06-13 10:54:01 -04:00
Random-Liu
cb6fe9e7ef
Delete pod with uid as precondition.
2016-05-05 14:34:49 -07:00
Tim St. Clair
7b6d843309
Move test-only files to test-only packages
2016-03-01 09:11:32 -08: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
Yu-Ju Hong
25f2c6f330
Improve mirror pod creation/deletion
...
- Ignore the "not found" error on deletion.
- Recognize the "already exists" error on creation and check if the existing
pod meets requirement. If so, don't report an error.
- Immediately create a mirror pod after a successful deletion, if needed.
2016-01-21 16:01:14 -08:00
Tim St. Clair
d2532b50ce
Correct backwards pod mappings
...
The mapping of static pod <--> mirror pod UIDs was backwards in a couple
places. Fortunately, they canceled each other out. Fixed, and added a
test case.
2015-11-24 18:32:44 -08:00
k8s-merge-robot
7b281c946b
Merge pull request #17270 from timstclair/mirrorpods
...
Auto commit by PR queue bot
2015-11-21 22:55:26 -08:00
Tim St. Clair
fbc5a7d034
Sync status to new mirror pods
2015-11-13 18:09:17 -08:00
Yu-Ju Hong
bc6414a873
kubelet: add a generic pod lifecycle event generator
...
This change introduces pod lifecycle event generator (PLEG), and adds a generic
PLEG. The generic PLEG relies on relisting to discover container events, and is
container-runtime-agnostic. Both docker and rkt are changed to use generic
PLEG.
2015-11-13 09:55:36 -08:00
Yu-Ju Hong
2eb17df46b
kubelet: independent pod syncs and backoff on error
...
Currently kubelet syncs all pods every 10s. This is not preferred because
* Some pods may have been sync'd recently.
* This may cause all the pods to be sync'd at once, causing undesirable
CPU spikes.
This PR replaces the global syncs with independent, periodic pod syncs. At the
end of syncing, each pod worker will enqueue itslef with a future timestamp (
current time + sync interval), when it will be due for another sync.
* If the pod worker encoutners an sync error, it may requeue with a different
timestamp to retry sooner.
* If a sync is triggered by the update channel (events or spec changes), the
pod worker would enqueue a new sync time.
This change is necessary for moving to long or no periodic sync period once pod
lifecycle event generator is completed. We will still rely on the mechanism to
requeue the pod on sync error.
This change also makes sure that if a sync does not succeed (either due to
real error or the per-container backoff mechanism), an error would be propagated
back to the pod worker, which is responsible for requeuing.
2015-11-03 13:29:08 -08:00
Yu-Ju Hong
f8aa206ffa
Stores hash of pod manifest in mirror pod's annotation
...
Use the hash to track whether the mirror pod is a truthful representation of
the static pod.
2015-10-20 15:44:31 -07:00
Yu-Ju Hong
2c76c55bb9
kubelet: move PodManager and MirrorClient to a subpackage
...
This change moves pod_manager.go and mirror_client.go to a separate package.
Also made necessary, minor changes to facilitate testing.
2015-10-12 16:34:18 -07:00