Yu-Ju Hong
d7b9f8905f
Revert "Move node information retreival to nodeManager"
...
This reverts commit 2369cd6401
.
2015-09-21 11:00:04 -07:00
Yu-Ju Hong
7bdf9bfdfa
Revert "Move and fix nodeManager related unit tests"
...
This reverts commit 865dc19957
.
2015-09-21 10:58:54 -07:00
Scott Dodson
5de183cce7
Bump Container Inspect to loglevel 4
2015-09-21 13:28:43 -04:00
Paul Weil
20361e33f2
use infra container ns for ipc
2015-09-21 12:47:19 -04:00
k8s-merge-robot
843134885e
Merge pull request #12470 from simon3z/add-host-ipc
...
Auto commit by PR queue bot
2015-09-21 09:15:01 -07:00
Quinton Hoole
851e3c1c24
Merge pull request #14218 from kubernetes/revert-13417-kubelet_tolerates_dead_cloud_api
...
Revert "Update node status even if cloudprovider API dies"
2015-09-18 19:01:41 -07:00
k8s-merge-robot
5d67c2ce1f
Merge pull request #12894 from nikhiljindal/PodCondition
...
Auto commit by PR queue bot
2015-09-18 18:59:51 -07:00
Tim Hockin
6df2139d5a
Revert "Update node status even if cloudprovider API dies"
2015-09-18 17:44:24 -07:00
k8s-merge-robot
8d7038eef0
Merge pull request #13825 from rootfs/path_len
...
Auto commit by PR queue bot
2015-09-18 14:44:33 -07:00
Tim Hockin
9698e957a6
Merge pull request #12717 from tamnd/fixdockercfg
...
Fix new docker config format for private registries
2015-09-18 14:43:38 -07:00
Federico Simoncelli
f21d9ac9e4
Support pods with containers using host ipc
...
Add a HostIPC field to the Pod Spec to create containers sharing
the same ipc of the host.
This feature must be explicitly enabled in apiserver using the
option host-ipc-sources.
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-09-18 21:13:39 +02:00
Huamin Chen
29bd6e738d
review feedback
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-18 10:50:30 -04:00
Jonathan Wills
ad085f78fe
If an isolator's request is nil, populate it with the limit and vice versa.
...
The appc spec isn't currently clear about if both fields are required, and before rkt v0.8.1 if either field
was nil it would result in a crash. Currently rkt will ignore isolators that don't have both fields set, so
I think this is a reasonable approach to making sure isolators are actually used.
2015-09-18 09:51:32 -04:00
nikhiljindal
6523ec142b
Adding more fields to PodCondition
2015-09-18 05:26:13 -07:00
k8s-merge-robot
1a88be1aef
Merge pull request #13417 from jfoy/kubelet_tolerates_dead_cloud_api
...
Auto commit by PR queue bot
2015-09-18 00:56:38 -07:00
k8s-merge-robot
73d71d6a67
Merge pull request #14096 from mvdan/util-duration
...
Auto commit by PR queue bot
2015-09-18 00:20:43 -07:00
Nikhil Jindal
9e5ed1dc69
Merge pull request #13880 from yujuhong/fix_annotations
...
Fix source annotation in kubelet
2015-09-17 23:28:41 -07:00
Daniel Martí
586cb9126a
Move pkg/util.Time to pkg/api/unversioned.Time
...
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Tim St. Clair
1d0577286f
Move the prober test from the docker manager_test.go to prober_test.go
2015-09-17 17:04:20 -07:00
Alex Mohr
bdfd469a85
Merge pull request #14137 from caesarxuchao/13823
...
rebase 13823
2015-09-17 15:25:52 -07:00
Jack Foy
ab9b53bdab
Update node status even if cloudprovider API dies
...
kubelet will log errors when the cloudprovider API is unavailable, but
will continue to persist node updates using last-known addresses.
Without this change, all nodes are marked as NotReady, and eventually
controller-manager evicts all pods.
2015-09-17 15:16:18 -07:00
k8s-merge-robot
c1eb1a1b2f
Merge pull request #13791 from fgrzadkowski/fix_secrets_in_docker
...
Auto commit by PR queue bot
2015-09-17 15:13:29 -07:00
k8s-merge-robot
0749339357
Merge pull request #14045 from jiangyaoguo/add-message-for-reason-cache
...
Auto commit by PR queue bot
2015-09-17 14:54:47 -07:00
Kris
f4ad00d9ae
Moving Status object to a common package
2015-09-17 14:09:53 -07:00
k8s-merge-robot
7cee028497
Merge pull request #13778 from smarterclayton/unready_endpoints
...
Auto commit by PR queue bot
2015-09-17 11:36:17 -07:00
k8s-merge-robot
7f68b9bc80
Merge pull request #14090 from yujuhong/node_status
...
Auto commit by PR queue bot
2015-09-17 11:14:11 -07:00
jiangyaoguo
0d1ca62530
Add message to reason cache in kubelet
2015-09-18 01:19:04 +08:00
feisky
f1124eb0b1
Refactor image manager to operate on Runtime
2015-09-17 23:02:00 +08:00
Filip Grzadkowski
7fe34f2050
Introduce nsenter writer for volume plugins
2015-09-17 16:40:29 +02:00
Huamin Chen
ad308cdf45
review feedback: remove RemoveAllSkipMountPoints since ReadDirNoExit already filters bad mountpoints
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-17 10:04:06 -04:00
Clayton Coleman
bf2decce81
Add NotReadyAddresses to Endpoints
...
In many cases clients may wish to view not ready addresses for endpoints
in order to do set membership prior to a pod being ready. For instance,
a pod that uses the service endpoints to connect to other pods under
the same service, but does not want to signal ready before it has
contacted at least a minimal number of other pods.
This is backwards compatible with old servers and clients. There is
an additional cost in size of endpoints before services ramp up, which
will add minor CPU and memory use for services that have a significant
number of pods which have not become ready.
2015-09-17 09:41:56 -04:00
feihujiang
51f59f3c78
Fix the wrong path of document
2015-09-17 20:38:08 +08:00
k8s-merge-robot
445fde3dc5
Merge pull request #13447 from pweil-/pid-mode
...
Auto commit by PR queue bot
2015-09-16 23:34:35 -07:00
k8s-merge-robot
d680ea2444
Merge pull request #13542 from yujuhong/backoff_restarts
...
Auto commit by PR queue bot
2015-09-16 23:11:42 -07:00
k8s-merge-robot
d5a6466349
Merge pull request #14056 from yifan-gu/rkt_image
...
Auto commit by PR queue bot
2015-09-16 20:52:20 -07:00
k8s-merge-robot
2da93a48b1
Merge pull request #13864 from feiskyer/logs-follow
...
Auto commit by PR queue bot
2015-09-16 19:27:44 -07:00
Yu-Ju Hong
865dc19957
Move and fix nodeManager related unit tests
2015-09-16 17:41:40 -07:00
Yu-Ju Hong
2369cd6401
Move node information retreival to nodeManager
...
nodeManager should handle most node object interaction with apiserver. This
moves exsiting node-watching and GetNodes() methods to nodeManager.
2015-09-16 17:17:42 -07:00
Yu-Ju Hong
e7d1e47f31
kubelet: move all node status related methods to a separate file
...
The methods for registering a node and syncing node status to the apiserver
have grown large enough that it makes sense for them to live in a separate
place. This change adds a nodeManager to handle such interaction with the
apiserver.
2015-09-16 17:17:42 -07:00
k8s-merge-robot
4c46bc3243
Merge pull request #13989 from yujuhong/sync_first
...
Auto commit by PR queue bot
2015-09-16 17:16:23 -07:00
Yifan Gu
ad33db1a84
kubelet/rkt: bump rkt version for rkt image list fix.
2015-09-16 11:31:59 -07:00
k8s-merge-robot
22f698f5b0
Merge pull request #13953 from liguangbo/change_iff_to_if_and_only_if
...
Auto commit by PR queue bot
2015-09-16 08:35:20 -07:00
feisky
800e8fb54c
Fix kubelet logs --follow bug
2015-09-16 22:06:50 +08:00
liguangbo
4df68f03a3
change iff to if and only if to improve annotation readability
2015-09-16 08:29:36 +00:00
k8s-merge-robot
f6fb0a58b6
Merge pull request #13874 from timstclair/status-manager
...
Auto commit by PR queue bot
2015-09-16 00:46:01 -07:00
Jeff Lowdermilk
a92c8b6886
Merge pull request #13384 from ZJU-SEL/portsbindings
...
Allow multiple host ports map to the same container port
2015-09-15 17:57:57 -07:00
Yu-Ju Hong
8f8541b4cd
kubelet: make sure sync loop is run before performing housekeeping
...
Otherwise, kubelet may kill the existing pods before having a chance to update
the desired pods.
2015-09-15 13:11:55 -07:00
gmarek
4b8ddf3d7e
Add information about ports opened by Kubelet to API
2015-09-15 14:24:55 -04:00
Paul Weil
ed80c2b940
pid mode
2015-09-15 13:51:44 -04:00
k8s-merge-robot
27e8a11378
Merge pull request #13916 from tmrts/refactor/iota
...
Auto commit by PR queue bot
2015-09-14 21:11:58 -07:00
k8s-merge-robot
8189460809
Merge pull request #13844 from tummychow/label-deps-2
...
Auto commit by PR queue bot
2015-09-14 12:56:24 -07:00
Huamin Chen
45d4f7d6c2
Opening Pod volume dir could fail if for instance the directory has stale handle or directory is busy.
...
In such case, don't exit if the directory cannot be opened.
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-14 14:43:44 -04:00
Yu-Ju Hong
fb270779b5
kubelet: fix the config unit tests
2015-09-14 11:07:27 -07:00
Huamin Chen
adf59896e0
when kubelet removes pod dir, it should skip those that still have unmounted volumes
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-09-14 13:50:08 -04:00
k8s-merge-robot
83fc0b783f
Merge pull request #13923 from wojtek-t/fix_rv_0_errors
...
Auto commit by PR queue bot
2015-09-14 10:21:41 -07:00
Jeff Lowdermilk
e25ae7fdb2
Merge pull request #13833 from caesarxuchao/central-latest
...
[WIP] Making a generic latest package
2015-09-14 09:26:58 -07:00
Wojciech Tyczynski
5da52558e6
Fix watch with RV=0 in Kubelet.
2015-09-14 16:45:58 +02:00
Tamer Tas
6908790410
Add a default value to PodConfigNotificationMode
2015-09-14 15:00:01 +03:00
tummychow
a21c52a766
Move util/validation files to their own package
2015-09-13 00:46:52 -07:00
k8s-merge-robot
960b9e9564
Merge pull request #13867 from JanetKuo/qos-policy-bug
...
Auto commit by PR queue bot
2015-09-11 19:13:18 -07:00
Chao Xu
0b6fd8c5c4
fixing tests
2015-09-11 17:33:22 -07:00
Chao Xu
dd6c121d7f
massive changes
2015-09-11 17:31:47 -07:00
Yu-Ju Hong
2816c9df78
config_test: clean up unused function arguements
2015-09-11 17:18:29 -07:00
Yu-Ju Hong
69c3aa0872
Fix source annotation in kubelet
...
kubelet relies on source annotation to distinguish pods from different sources.
It should always annotate the source when receiving the pod to avoid any
confusion. This commit fixes that and also make sure we don't overwrite the
first seen time.
2015-09-11 14:52:16 -07:00
Mikaël Cluseau
b76abf10cc
hairpin: fix tests
2015-09-12 08:43:45 +11:00
Mikaël Cluseau
1ab520a59b
pkg/util/exec: allow mocking of LookPath
2015-09-12 08:43:45 +11:00
Mikaël Cluseau
99a1cfa8ff
hairpin support
2015-09-12 08:43:45 +11:00
k8s-merge-robot
6f01200188
Merge pull request #13727 from jiangyaoguo/fix-reason-reporting-in-kubelet
...
Auto commit by PR queue bot
2015-09-11 12:32:20 -07:00
Tim St. Clair
1f91fffb57
Move kubelet.statusManager to status.Manager
...
This refactor is in preparation for moving more state handling to the
status manager. It will become the canonical cache for the latest
information on running containers and probe status, as part of the
prober refactoring.
2015-09-11 12:22:01 -07:00
Janet Kuo
452ebed92b
Fix the bug that qos class determination be incorrect with small numbers
2015-09-11 10:26:44 -07:00
k8s-merge-robot
bff6ee8e4a
Merge pull request #12695 from JanetKuo/kubectl-describe-pod-podstatus
...
Auto commit by PR queue bot
2015-09-11 08:08:32 -07:00
k8s-merge-robot
bfc60709b1
Merge pull request #13468 from yifan-gu/rkt_doc
...
Auto commit by PR queue bot
2015-09-10 20:32:08 -07:00
jiangyaoguo
62c0c35307
Fix reporting reason in kubelet
...
1. Make reason field of StatusReport objects in kubelet in CamelCase format.
2. Add Message field for ContainerStateWaiting to describe detail about Reason.
3. Make reason field of Events in kubelet in CamelCase format.
4. Update swagger,deep-copy and so on.
2015-09-11 10:01:08 +08:00
Janet Kuo
edc75cd565
Fix the bug that determining guaranteed qos won't work well with small numbers
2015-09-10 18:21:51 -07:00
Janet Kuo
22a794cc22
List resource QoS tier of each container when describing pods; Re-order resource table
2015-09-10 18:21:50 -07:00
Daniel Smith
b225c1d47a
Run gofmt (separate commit for easy rebases)
2015-09-10 17:17:59 -07:00
Daniel Smith
15b30b8b09
Move version agnostic parts of client
...
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
k8s-merge-robot
ee7168d868
Merge pull request #13815 from robertabbott/abbott/kubelet_get_instead_of_list
...
Auto commit by PR queue bot
2015-09-10 15:59:01 -07:00
Yifan Gu
e7b9c50ba1
kubelet/rkt: add support for different stage1 image.
...
Also enable grace stop for service files.
2015-09-10 14:58:03 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Bobby Abbott
9a5f43e16d
Kubelet#GetNode now uses GetNodeInfo instead of List
...
Both GetNode and the cache.ListWatch listfunc in the
kubelet package call List unnecessary.
GetNodeInfo is sufficient for GetNode and makes looping
through a list of nodes to check for a matching name
unnecessary.
resolves #13476
2015-09-10 10:50:41 -07:00
Chao Xu
002dcc6343
Merge pull request #13737 from wojtek-t/switch_to_node_in_registry
...
Rename "minion" to "node" in few places.
2015-09-09 17:49:22 -07:00
Wojciech Tyczynski
cd1ac360de
Rename "minion" to "node" in few places.
2015-09-09 16:18:23 +02:00
jiangyaoguo
1460a1fb9e
Rate limit events in kubelet
...
1. Add EvnetRecordQps and EventBurst parameter in kubelet.
2. If EvnetRecordQps and EventBurst was set, rate limit events in kubelet
with a independent ratelimiter as setted.
2015-09-09 16:57:21 +08:00
Wojciech Tyczynski
b85d0557b4
Revert #13052
2015-09-08 09:40:12 +02:00
feihujiang
d713826aa9
Add pod name to error message when getting logs of a container
2015-09-07 17:03:54 +08:00
Harry Zhang
7b2e2e5649
Fix tests and clear fmt mess in manager.go
2015-09-05 04:52:51 +00:00
k8s-merge-robot
2e2def36a9
Merge pull request #13581 from caesarxuchao/APIGroup-testapi-2
...
Auto commit by PR queue bot
2015-09-04 20:38:45 -07:00
Chao Xu
9fc79e9d99
refactor testapi and test scripts to prepare for multiple API groups.
2015-09-04 18:01:32 -07:00
k8s-merge-robot
e6e69e31ec
Merge pull request #13363 from mesosphere/abort-kubelet-syncloop
...
Auto commit by PR queue bot
2015-09-04 17:45:32 -07:00
k8s-merge-robot
24430525ac
Merge pull request #13334 from pedro-r-marques/kubelet_annotation_update
...
Auto commit by PR queue bot
2015-09-04 17:07:31 -07:00
Quinton Hoole
e188ea6a61
Merge pull request #13202 from jimmidyson/prometheus-with-no-cadvisor-port
...
Ensure container metrics are registered with prometheus even without cadvisor http server
2015-09-04 13:58:31 -07:00
James DeFelice
de064f4254
fix kubelet syncLoop busy loop upon close of updates chan
2015-09-04 17:56:02 +00:00
Andy Goldstein
c83786979c
Various exec fixes
...
If stdin is noninteractive, the io.Copy from stdin to remoteStdin will
unblock when it finishes reading from stdin. In this case, make sure to
close remoteStdin so the server knows the client won't be sending any
more data. This ensures that the remote process terminates. For example:
echo foo | kubectl exec -i <pod> -- cat
Without this change, the `cat` process never terminates and `kubectl
exec` hangs.
Fix interactive exec sessions hanging after you type 'exit'.
Add e2e test to cover noninteractive stdin: `echo a | kubectl exec -i <pod>
cat`
Add e2e test to cover psuedo-interactive stdin: `kubectl exec -i <pod> bash`
Prep for sending multiple data frames over multiple streams in remote command
test, which is more likely to find flakes (requires bump of spdystream
once an issue with the frame worker queues not being fully drained when
a goaway frame is received).
2015-09-04 10:40:53 -04:00
Abhi Shah
c9f2d3151b
Merge pull request #13155 from derekwaynecarr/enforce_limits
...
Map cpu limits to cpu-quota in docker run
2015-09-03 16:28:04 -07:00
Abhi Shah
d923e61dda
Merge pull request #13397 from yujuhong/housekeeping
...
kubelet: define the housekeeping period
2015-09-03 15:46:29 -07:00
derekwaynecarr
5dc74e8dbf
Add support for CFS quota in kubelet
2015-09-03 13:44:28 -04:00
markturansky
0e7f73ad67
expand volume.Spec to include full Volume and PV
2015-09-03 08:57:32 -04:00
Yu-Ju Hong
9cdb004851
kubelet: fix erratic restart count caused per-container restart backoff
2015-09-02 18:50:42 -07:00
Abhi Shah
067e76b509
Merge pull request #13348 from thockin/kubelet-masq-rule
...
Don't name 'eth0' in MASQUERADE rule
2015-09-02 09:54:31 -07:00
Brendan Burns
ac958e5320
Merge pull request #12513 from brendandburns/tc2
...
integrate bandwidth shaping and the kubelet.
2015-09-02 09:44:10 -07:00
k8s-merge-robot
f5c2d90c3a
Merge pull request #12293 from deads2k/testclient-specific-reaction
...
Auto commit by PR queue bot
2015-09-02 09:18:24 -07:00
k8s-merge-robot
cc811b3519
Merge pull request #13473 from yujuhong/check_volumes
...
Auto commit by PR queue bot
2015-09-02 07:32:57 -07:00
Marcin Wielgus
3e9932557d
Merge pull request #13052 from pmorie/podip-fix
...
Fix race condition for consuming podIP via downward API
2015-09-02 16:04:01 +02:00
Yu-Ju Hong
08ec796995
kubelet: remove orphaned pod directories properly
...
PR #13293 added a safety check to not remove a pod directory if the child
volumes directory is not empty. This logic is faulty because kubelet may have
directory structures podUID/volumes/volumeKind/volumeName. E.g.,
`056db95d-50ee-11e5-a2e4-42010af0ba1d/volumes/kubernetes.io~empty-dir/default-token-al3r2`
This change fixes that by properly listing all volumes under a pod.
2015-09-01 15:39:17 -07:00
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
deads2k
7e180c258d
update testclient for delegating reaction chain
2015-09-01 12:58:35 -04: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
Yu-Ju Hong
13b268b378
kubelet: define the minimum housekeeping period
...
Before, kubelet performs global cleanup tasks every iteration. After the
PR #13003 , kubelet performs the tasks on every sync internval (10 seconds).
This PR decouples the housekeeping period with the sync internval to ensure
that kubelet cleans up promptly, while not too often (no more than once every
minimum housekeeping period).
2015-08-31 17:28:20 -07:00
Paul Morie
4ff66bd70a
Fix race exposing pod IP via downward API
2015-08-31 19:18:58 -04:00
Harry Zhang
18315db025
Allow multiple host ports map to the same port in container
2015-08-31 15:22:30 +08:00
Brendan Burns
9f3ef68ebc
integrate bandwidth shaping and the kubelet.
2015-08-30 22:24:09 -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
Tim Hockin
1aca401813
Don't name 'eth0' in MASQUERADE rule
...
This causes endless loops of adding duplicate rules on machines without "eth0".
2015-08-28 22:32:30 -07:00
Pedro Roque Marques
bf170a688c
Update annotations in the kubelet.
...
When the pod annotations are updated in the apiserver, update the pod.
Annotations may be used to convey attributes that are required to the
pod execution, such as networking parameters.
2015-08-28 15:50:13 -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
Jimmi Dyson
3a6701c85f
Ensure container metrics are registered with prometheus even without
...
cadvisor http server
Fixes #13200
2015-08-26 13:35:32 +01: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
tamnd
906b279080
Support new docker config format for private registries
2015-08-22 15:37:25 +07: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
Lv Lv
0b90dfba3a
use host uts namespace when pod.Spec.HostNetwork is true
2015-08-19 13:02:10 +08:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Yifan Gu
69f796f234
kubelet: refactor kubecontainer.Pod, remove PodStatus from it.
2015-08-18 16:27:22 -07:00
Dawn Chen
8b3937c9bf
Leaving process 1 at root cgroup.
2015-08-18 16:21:28 -07:00
Dawn Chen
2339a7796f
Remove stale comment.
2015-08-18 16:07:15 -07:00
Yu-Ju Hong
0c84b837cf
kubelet: switch to using pod UID as the key in status manager
...
We chose to use podFullName (name_namespace) as key in the status manager
because mirror pod and static pod share the same status. This is no longer
needed because we do not store statuses for static pods anymore (we only
store statuses for their mirror pods). Also, reviously, a few fixes were
merged to ensure statuses are cleaned up so that a new pod with the same
name would not resuse an old status.
This change cleans up the code by using UID as key so that the code would
become less brittle.
2015-08-18 14:39:02 -07:00
Robert Bailey
11d5712278
Merge pull request #12736 from deads2k/relax-pull-secret-constraints
...
tolerate missing image pull secrets:
2015-08-18 11:48:01 -07:00
Daniel Martí
7862ed3656
kubelet: Switch to restful for the REST api endpoints
2015-08-18 11:28:34 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Clayton Coleman
780accb3ba
Kubelet should garbage collect dead pods
...
The sync loop should check for terminated pods that are no longer
running and clear them. The status loop should never write status
if the pod UID changes. Mirror pods should be deleted immediately
rather than gracefully.
2015-08-18 09:08:44 -04:00
Clayton Coleman
89f1f3b1b8
Alter graceful deletion to not use TTL
...
Avoid TTL by deleting pods immediately when they aren't
scheduled, and letting the Kubelet delete them otherwise.
Ensure the Kubelet uses pod.Spec.TerminationGracePeriodSeconds
when no pod.DeletionGracePeriodSeconds is available.
2015-08-18 09:08:43 -04:00
Clayton Coleman
b842a7dd15
Revert "Revert "Gracefully delete pods from the Kubelet""
...
This reverts commit 98115facfd
.
2015-08-18 08:57:02 -04:00
Brendan Burns
a9580a0ad0
Merge pull request #12595 from smarterclayton/add_pod_status_ip
...
Add status.podIP as a valid downward API target
2015-08-14 20:29:50 -07:00
Brendan Burns
eb8b1aa87e
Merge pull request #12694 from yifan-gu/rkt_patch
...
kubelet/rkt: minor updates to match rkt v0.7.0.
2015-08-14 20:27:30 -07:00
Clayton Coleman
01f3785426
Add status.podIP as a valid downward API target
...
Getting the public IP a container is supposed to use is O(hard),
and usually involves ugly gyrations in python or with interfaces.
Using the downward API means that the IP Kube is announcing to
other endpoints is also visible inside the container for pods to
identify themselves.
2015-08-14 17:51:55 -04:00
deads2k
c24d176f65
tolerate missing image pull secrets:
2015-08-14 12:51:28 -04:00
xiejunan
f5446f2aa3
fix error in findPortByName
...
using ContainerPort instead of HostPort
2015-08-14 14:00:05 +08:00
Yifan Gu
558e692f93
kubelet/rkt: minor updates to match rkt v0.7.0.
2015-08-13 18:16:12 -07:00
Yifan Gu
d70a30c069
kubelet: refactor kubelet.Runtimehooks to container.ImagePuller.
2015-08-12 16:28:25 -07:00
jiangyaoguo
9ab4a46b9d
Keep event reason in kubelet consistent with others
2015-08-12 19:00:09 +08:00
Piotr Szczesniak
1df0267f4a
Merge pull request #12551 from eparis/underscore-to-dash
...
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
Yu-Ju Hong
56f4605f47
kubelet: refactor SyncPods for better readability
...
Eventually we would like to replace the all-encompassing SyncPods function with
more well-defined, smaller functions. This would not only help with the
readability and profiling of the code, it'd also set in motion for the plans to
trigger pod worker individually based on the content of the pod updates.
This commit serves as the first step of that, while avoiding breaking all unit
tests by preserving the SyncPods function for the time being.
2015-08-11 16:40:26 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Eric Paris
5aa495cdad
Update code to use - in flag names instead of _
2015-08-11 16:31:52 -04:00
Filip Grzadkowski
999eff1b7f
Merge pull request #12510 from markturansky/improve_failed_mount_msg
...
Removed spew from failed volume mount event
2015-08-11 12:35:02 +02:00
Filip Grzadkowski
3f7b54cbdb
Merge pull request #11669 from pweil-/sc-nonroot
...
add non-root directive to SC and kubelet checking
2015-08-11 10:30:53 +02:00
markturansky
0b72bb2458
removed spew from event error
2015-08-10 23:16:15 -04:00
Alex Robinson
e899a36de8
Merge pull request #12491 from yifan-gu/bump_appc
...
Godeps: bump appc/spec to v0.6.1+git.
2015-08-10 16:38:49 -07:00
Alex Robinson
20c189d752
Merge pull request #12471 from peter-edge/docker-new-client-from-env
...
Use docker.NewClientFromEnv for creation of docker.Client
2015-08-10 14:22:21 -07:00
Yifan Gu
7e5cfd137a
Godeps: bump appc/spec to v0.6.1+git.
2015-08-10 11:21:28 -07:00
Paul Weil
e490c20c22
add non-root directive to SC and kubelet checking
2015-08-10 13:30:34 -04:00
Tamer Tas
f5d5befe17
Add documentation for pkg/kubelet/rkt
2015-08-10 19:34:36 +03:00
Marek Grabowski
5f9cefc1d8
Merge pull request #12441 from vlajos/typofixes-vlajos-20150807
...
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 16:33:52 +02:00
Marek Grabowski
8580e17ff1
Merge pull request #12374 from wulonghui/wulonghui-patch-1
...
Add NodeInternalIP for Node's Addresses when cloud provider is nil
2015-08-10 15:01:00 +02:00
peter-edge
0458d707ac
use docker.NewClientFromEnv for creation of docker.Client
2015-08-10 13:29:56 +02:00
Marek Grabowski
e034712456
Merge pull request #11788 from HaiyangDING/ImproveClarityResource
...
Improve clarity around PodFitsResource(issue#11453)
2015-08-10 09:56:32 +02:00