k8s-merge-robot
a5e4462003
Merge pull request #16825 from Random-Liu/cleanup-pod-worker-test
...
Auto commit by PR queue bot
2015-11-05 21:51:32 -08:00
Yu-Ju Hong
5863f2a0a5
kubelet: reduce logging frequency for sync loop
...
Only logs when there are pods to sync.
2015-11-05 10:06:10 -08:00
k8s-merge-robot
fb571e3e2e
Merge pull request #16545 from timstclair/mirrorpods
...
Auto commit by PR queue bot
2015-11-05 02:56:23 -08:00
Lantao Liu
a35220c321
cleanup pod_workers_test.go to use general runtime interface
2015-11-04 16:55:25 -08:00
Tim St. Clair
858126b42a
Clean up static/mirror pod status logic
...
- status.Manager always deals with the local (static) pod, but gets the
mirror pod when syncing
- This lets components like the probe workers ignore mirror pods
2015-11-04 11:42:25 -08:00
Yu-Ju Hong
b734155954
Clean up housekeeping routine in kubelet
...
Now that kubelet checks sources seen correctly, there is no need to enforce the
initial order of pod updates and housekeeping. Use a ticker for housekeeping to
simplify the code.
2015-11-04 08:12:18 -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
k8s-merge-robot
fe2d44e842
Merge pull request #16653 from Random-Liu/remove-unused-type
...
Auto commit by PR queue bot
2015-11-03 02:45:22 -08:00
k8s-merge-robot
c1d380db94
Merge pull request #16693 from Random-Liu/put-termination-message-path-into-docker-label
...
Auto commit by PR queue bot
2015-11-02 23:29:35 -08:00
Lantao Liu
894dc5a5a2
Move TerminationMessagePath into docker label.
2015-11-02 14:32:58 -08:00
Lantao Liu
eff4533efc
Move findPodContainer to docker_test.go
2015-11-02 09:49:07 -08:00
mqliang
3afcbae1a8
remove unnecessary fmt
2015-11-02 21:07:07 +08:00
Lantao Liu
b127901871
Remove unused type DockerContainers.
...
Type DockerContainers and function FindPodContainer() are never used.
Remove them to simplify the docker runtime api.
2015-11-01 18:49:05 -08:00
k8s-merge-robot
7b8bf758f3
Merge pull request #16631 from dchen1107/docker
...
Auto commit by PR queue bot
2015-10-31 10:55:37 -07:00
Dawn Chen
d2805c65d6
Fix Kubelet /logs endpoint
2015-10-30 16:19:34 -07:00
Alex Robinson
0eb7243b95
Merge pull request #15994 from dchen1107/docker
...
Failed docker health check and mark the node NotReady when docker version is below 1.6.2 (API ve…
2015-10-30 15:39:04 -07:00
Dawn Chen
a39e1e96dc
Mark NodeNotReady for docker version below 1.6.2
2015-10-30 13:48:51 -07:00
Dawn Chen
b691fd299c
Failed docker health check when docker version is below 1.6.2 (API version: 1.18)
2015-10-30 13:48:50 -07:00
k8s-merge-robot
eb140495ab
Merge pull request #16414 from Random-Liu/put-podname-into-label
...
Auto commit by PR queue bot
2015-10-30 12:45:25 -07:00
Alex Robinson
21a75abfbd
Merge pull request #16489 from mqliang/deleteFmt
...
replace `fmt.Sptintf()` with naive string appending
2015-10-30 09:25:39 -07:00
Lantao Liu
b3585a5209
Move docker label related functions into labels.go and add pod name, pod namespace and pod uid into docker label
2015-10-29 22:42:25 -07:00
Clayton Coleman
2335bfa351
Allow Docker container logs to be tail'd and follow'd
...
Relaxes the very very ancient restriction we put in place to keep the
original API surface area PR small. Better to be consistent with actual
expected use of tail.
2015-10-29 17:12:38 -04:00
k8s-merge-robot
c4b32cc8d8
Merge pull request #16223 from timstclair/status-deadlock
...
Auto commit by PR queue bot
2015-10-29 13:01:31 -07:00
mqliang
5b03cfc92b
replace fmt.Sptintf() with + operator
2015-10-29 16:27:42 +08:00
Tim St. Clair
9a2089adc8
Concurrency fixes in status.Manager
...
- Fix deadlock when syncing deleted pods with full update channel
- Prevent sending stale updates to API server
- Don't delete cached status when sync fails (causes problems for prober)
2015-10-28 17:40:55 -07:00
Sami Wagiaalla
1d352a16b8
Support volume relabling for pods which specify an SELinux label
2015-10-28 09:26:58 -04:00
Jerzy Szczepkowski
1524d7490a
Merge pull request #16294 from aveshagarwal/master-fix-code-duplication
...
Fixes code duplication.
2015-10-28 13:23:06 +01:00
Daniel Smith
8524d392bf
Merge pull request #16178 from madhusudancs/kubelet-out-of-disk-no-master
...
Report node out of disk condition in the kubelet.
2015-10-27 14:28:03 -07:00
k8s-merge-robot
0a7a9f3535
Merge pull request #16340 from timstclair/flaky-prober
...
Auto commit by PR queue bot
2015-10-27 12:10:22 -07:00
Jerzy Szczepkowski
5ef087adab
Merge pull request #16266 from wojtek-t/fix_handshake_reflector
...
Reuse TCP connections in Reflector between resync periods.
2015-10-27 10:36:18 +01:00
k8s-merge-robot
df265b2d6e
Merge pull request #15510 from aveshagarwal/master-selflink-objref
...
Auto commit by PR queue bot
2015-10-27 00:37:21 -07:00
Tim St. Clair
17b0a964f4
Always resync after resyncInterval
2015-10-26 18:50:57 -07:00
Daniel Smith
3cc2ae4da6
Merge pull request #15831 from zhengguoyong/modify_pod_networkplugin_setup_errmsg
...
Modify duplicate err msg
2015-10-26 17:07:18 -07:00
Madhusudan.C.S
9c4424f0bd
Report out of disk as a node condition when node goes out of disk.
...
Define a new out of disk node condition and use it to report when node
goes out of disk.
Make a copy of loop range clause variable in node listers so that it
is available outside the for loop.
Also update/implement unit tests.
2015-10-26 15:01:20 -07:00
Daniel Smith
e42f5af6a1
Merge pull request #16219 from thockin/resolvconf-filter
...
Add a cloud-provider hook to scrub DNS for pods
2015-10-26 12:32:02 -07:00
Avesh Agarwal
e845dba9d2
Fixes code duplication.
2015-10-26 15:24:50 -04:00
Wojciech Tyczynski
d47e21f19f
Reuse TCP connections in Reflector between resync periods.
2015-10-26 19:35:25 +01:00
k8s-merge-robot
bffdd242d8
Merge pull request #16191 from yujuhong/fix_logs
...
Auto commit by PR queue bot
2015-10-26 09:31:35 -07:00
k8s-merge-robot
4f17b4b39c
Merge pull request #15961 from ncdc/stream-protocol-negotiation
...
Auto commit by PR queue bot
2015-10-25 07:26:41 -07:00
k8s-merge-robot
0e1ee14cc8
Merge pull request #15705 from wojtek-t/watch_options_in_client
...
Auto commit by PR queue bot
2015-10-24 17:39:20 -07:00
Abhi Shah
976cc12c8e
Merge pull request #16174 from ArtfulCoder/nilCheck
...
Added Nil Check
2015-10-24 14:16:28 -07:00
k8s-merge-robot
5280540384
Merge pull request #15965 from Random-Liu/use-docker-label
...
Auto commit by PR queue bot
2015-10-24 13:19:40 -07:00
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02:00
k8s-merge-robot
f3cb757bb6
Merge pull request #16074 from timstclair/prober-cleanup
...
Auto commit by PR queue bot
2015-10-24 03:14:42 -07:00
k8s-merge-robot
e1559e9fb5
Merge pull request #15352 from pmorie/fsgroup
...
Auto commit by PR queue bot
2015-10-24 01:55:45 -07:00
Tim Hockin
42c7fec490
Add a cloud-provider hook to scrub DNS for pods
...
GCE needs this hook and it seems general enough to include.
2015-10-23 17:01:49 -07:00
Yu-Ju Hong
e4f739115f
kubelet: fix getting logs from static pods
...
This change adds the necessary UID translation logic to fix the issue.
2015-10-23 14:31:40 -07:00
Lantao Liu
67a7633202
Put restart count into docker label
2015-10-23 13:02:32 -07:00
Abhishek Shah
4a7b4f2ed2
Nil Check
2015-10-23 11:52:59 -07:00
Filip Grzadkowski
165169ab1c
Merge pull request #16052 from ArtfulCoder/mount_etc_hosts
...
kubelet manages /etc/hosts file
2015-10-23 14:07:34 +02:00