Ken Robertson
fff8a7c371
kubelet: Update engine version parsing to handle semantic versioning
...
This updates the dockertools.dockerVersion to use a semantic versioning
library to more gracefully support engine versions which include
additional version fields.
Previously, go-dockerclient's APIVersion struct was use which only
handles plain numeric x.y.z version strings. With #19675 , the library
was now used on the Docker engine string, however it is possible for the
engine string to include include additional information for beta, rc, or
distro specific builds.
This PR also enables the TestDockerRuntimeVersion test which was
previously just a FIXME and updates it to pass, and be used to test the
version string that cause #20005 .
This negates the need for fsouza/go-dockerclient#451 , since even with
that change, if a user was running Docker 1.10.0-rc1, this would cause
the kubelet to report it as simply 1.10.0.
2016-01-22 13:18:52 -08:00
Clayton Coleman
4a6935b31f
Remaining codec change refactors
2016-01-22 13:27:27 -05:00
Clayton Coleman
33085c0cf2
Update tests to handle codec changes
2016-01-22 13:27:26 -05: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
nikhiljindal
2ad642d370
Merge registered and latest and move to apimachinery
2016-01-21 14:42:21 -08:00
Alex Mohr
7d96694c3f
Merge pull request #19725 from timstclair/summary
...
Add blank /stats/summary kubelet endpoint
2016-01-21 14:27:53 -08:00
Yu-Ju Hong
0fada52788
Fix sending an empty update when the source is ready
2016-01-21 14:24:39 -08:00
Justin Santa Barbara
58191c446c
Allow non-masquerade-cidr to be passed to the kubelet
...
Removing the hard-coding of 10.0.0.0/8
Issue #11204
2016-01-21 15:18:31 -05:00
Alex Mohr
c52122cab5
Merge pull request #19675 from apcera/kubelet-report-runtime-version
...
Update container runtime to properly report the engine and version
2016-01-21 10:31:19 -08:00
Alex Mohr
d2d349bc84
Merge pull request #19334 from resouer/network
...
Networking should be used to hold network related pkgs
2016-01-21 10:26:13 -08:00
Alex Mohr
79e0c9f5e5
Merge pull request #19842 from yujuhong/status_update
...
Don't handle graceful deletion of mirror pods in status manager
2016-01-21 09:24:46 -08:00
Alex Mohr
9a264c4b41
Merge pull request #19838 from yujuhong/empty_add
...
Fix empty ADD update on kubelet restarts
2016-01-21 09:22:53 -08:00
k8s-merge-robot
e2c79915fd
Merge pull request #18820 from mqliang/image-gc-bug
...
Auto commit by PR queue bot
2016-01-21 01:22:29 -08:00
k8s-merge-robot
d0f59e2126
Merge pull request #18172 from Random-Liu/generate-sync-event
...
Auto commit by PR queue bot
2016-01-20 22:48:35 -08:00
Random-Liu
eb56d46b74
Minor clean up in kubelet syncPod()
2016-01-20 17:31:59 -08:00
Ken Robertson
a7b07c01df
Update container runtime to properly report the engine and version
...
This address a TODO when collecting the node version information so it
will properly report the configured runtime and its version. Previously,
this was hardcoded to "docker://" and the docker version, and would show
"docker://1.9.1" even when the kubelet was configured to use rkt.
With this change, it will use the runtime's Type() and Version() data.
This also changes the container.Runtime interface to add an APIVersion()
method. This can be used when the runtime has separate versions for the
engine and the API, such as with Docker. The Docker minimum version
validation has been updated to use APIVersion(), and
DockerManager.Version() now returns the engine version.
2016-01-20 16:42:25 -08:00
Vishnu kannan
21748701f1
Avoid nodes that have `0` cpu and memory capacity.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-20 15:34:58 -08:00
Yu-Ju Hong
dc5b35a570
Set default status to pending for pods from non-apiserver sources
2016-01-20 09:36:01 -08:00
Yu-Ju Hong
cfb5442b2d
Turn on kubecontainer.Cache in kubelet
2016-01-19 18:15:10 -08:00
Yu-Ju Hong
f1535a0d4c
Don't handle graceful deletion of mirror pods in status manager
2016-01-19 16:47:57 -08:00
Paul Morie
c548054560
Add ability to consume secrets in env vars
2016-01-18 12:20:51 -05:00
Piotr Szczesniak
9659057986
Revert "Enable kubecontainer.Cache in kubelet"
2016-01-18 13:35:41 +01:00
Lantao Liu
4c37dbe6e6
Merge pull request #19690 from Random-Liu/fix-bug-in-status-test
...
Fix bug in status/manager_test.go
2016-01-18 01:15:16 -08:00
k8s-merge-robot
fcf8263b1b
Merge pull request #19572 from pwittrock/exportfsmetrics
...
Auto commit by PR queue bot
2016-01-17 07:46:02 -08:00
k8s-merge-robot
0051dcc83e
Merge pull request #19560 from Random-Liu/format-reconcile-log
...
Auto commit by PR queue bot
2016-01-17 04:51:05 -08:00
Random-Liu
0e612afa98
Start using PodSyncResult in dockertools
2016-01-17 00:42:45 -08:00
Random-Liu
f2176643e7
Add unit test for PodSyncResult
2016-01-17 00:42:45 -08:00
Random-Liu
2d31d8ed4c
Add PodSyncResult
2016-01-17 00:42:44 -08:00
k8s-merge-robot
ac0d01f8ca
Merge pull request #19436 from yujuhong/status_cache_p2
...
Auto commit by PR queue bot
2016-01-16 09:24:19 -08:00
k8s-merge-robot
ffed4e1a3a
Merge pull request #19428 from yifan-gu/rkt_isolator
...
Auto commit by PR queue bot
2016-01-16 08:48:38 -08:00
Mike Danese
936c8cd597
Merge pull request #19685 from resouer/testing
...
Replace fake handler using testing pkg
2016-01-15 17:47:53 -08:00
Tim St. Clair
5a0dc30b51
Add blank /stats/summary kubelet endpoint
...
Add a `/stats/summary` endpoint to the kubelet which will return an
empty Summary{} struct (json formatted), as a summary API
placeholder. Once the next cAdvisor release is vendored, the summary
API will be filled in.
2016-01-15 14:55:54 -08:00
Random-Liu
8fb056d258
Add getTestPod() to avoid sharing object among test cases
2016-01-15 11:22:15 -08:00
k8s-merge-robot
21aa683fb5
Merge pull request #18974 from pmorie/config-env
...
Auto commit by PR queue bot
2016-01-15 06:42:56 -08:00
combk8s
5b383dad62
fix image gc bug
2016-01-15 16:43:22 +08:00
harry
98222b4d8b
Replace to tag
...
Use a testing pkg to replace testing util codes
2016-01-15 15:07:21 +08:00
Harry Zhang
936a11e775
Use networking to hold network related pkgs
...
Change names of unclear methods
Use net as pkg name for short
2016-01-15 13:46:16 +08:00
Mike Danese
33c72db59c
Merge pull request #19528 from resouer/strings-util
...
Create strings pkg to fix util issue
2016-01-14 21:19:17 -08:00
harry
7405c7899b
Add strings pkg to hold strings utils
...
Replace funtions with strings pkg
Fix all references and rename the pkg
2016-01-15 12:37:50 +08:00
Phillip Wittrock
bb216e53da
Define stats api fields for exporting filesystem metrics #17331
2016-01-14 15:52:35 -08:00
Yu-Ju Hong
c9faecba9d
Merge pull request #19668 from Random-Liu/fix-bug-in-reconcile
...
Fix bug in needsReconcile
2016-01-14 14:29:29 -08:00
Mike Danese
9745d1cbf0
Merge pull request #19626 from mikedanese/kubelet-labels
...
kubelet: use ConfigurationMap instead of json
2016-01-14 14:08:53 -08:00
Prashanth B
926b94fefc
Merge pull request #19493 from bprashanth/kubelet_fix
...
Errors in network setup should prevent pod creation
2016-01-14 13:49:19 -08:00
Yu-Ju Hong
15950daa7f
Restore the old behavior of setting pod status to pending
2016-01-14 13:46:26 -08:00
Random-Liu
fed61731f1
Fix bug in needsReconcile
2016-01-14 13:44:02 -08:00
Mike Danese
41df8749a8
Merge pull request #19470 from gmarek/kubemark-performance
...
Shorten the sleep amount in the fake docker client
2016-01-14 11:55:24 -08:00
Mike Danese
14378485f3
Merge pull request #19629 from yifan-gu/rkt_debug_logging
...
rkt: Add useful debugging message.
2016-01-14 11:49:18 -08:00
Mike Danese
35a3785cf6
kubelet: use ConfigurationMap instead of json
2016-01-14 09:32:42 -08:00
Yu-Ju Hong
07cf5cff48
Enable kubecontainer.Cache in kubelet
2016-01-14 09:31:24 -08:00
k8s-merge-robot
bf315d4563
Merge pull request #19374 from timstclair/housekeep
...
Auto commit by PR queue bot
2016-01-14 01:42:52 -08:00
k8s-merge-robot
a385de1e43
Merge pull request #19357 from timstclair/stats-refactor
...
Auto commit by PR queue bot
2016-01-13 23:54:48 -08:00
k8s-merge-robot
5462a37dfe
Merge pull request #17700 from yujuhong/status_cache
...
Auto commit by PR queue bot
2016-01-13 22:47:57 -08:00
Yifan Gu
74b8ffd156
rkt: Add useful debugging message.
2016-01-13 17:15:49 -08:00
Paul Morie
6cfd101251
Add support for ConfigMap keys in env vars
2016-01-13 17:00:15 -05:00
Yu-Ju Hong
b56ed1a8c2
Support populating the runtime cache in PLEG
...
This changes does not turn on this feature (cache) for kubelet.
2016-01-13 10:19:47 -08:00
Yu-Ju Hong
032c0a4074
Add container.Cache for storing container.PodStatus
...
This cache will be used to stores the PodStatus of all pods/containers
visible on the node. This will elimiate the need for pod workers to query the
container runtime directly.
2016-01-13 10:19:47 -08:00
Sami Wagiaalla
125295ba40
Remove manageVolumeOwnership from kubelet
2016-01-13 10:37:10 -05:00
Sami Wagiaalla
f650648aae
Add fsGroup to SetUp and SetUpAt
2016-01-13 10:37:10 -05:00
Tim St. Clair
e2ffd007f7
Implement node Allocatable
...
Add `kube-reserved` and `system-reserved` flags for configuration
reserved resources for usage outside of kubernetes pods. Allocatable is
provided by the Kubelet according to the formula:
```
Allocatable = Capacity - KubeReserved - SystemReserved
```
Also provides a method for estimating a reasonable default for
`KubeReserved`, but the current implementation probably is low and needs
more tuning.
2016-01-12 17:00:43 -08:00
Yu-Ju Hong
4ab505606b
Always overwrite items in kubelet's work queue
...
This allows kubelet to change the next sync time based on the last result.
2016-01-12 16:25:19 -08:00
Yu-Ju Hong
73a4f8225c
PLEG should report events if a container is removed
...
Currently, pleg would report a event if a container transitions from running to
exited between relisting. However, if would not report any event if a container
gets stopped and removed between relisting. This event will eventually be
handled when the pod syncs periodically, but this is undesirable. This change
ensures that we detect all such events.
2016-01-12 16:25:19 -08:00
Mike Danese
bf763bba95
Merge pull request #19498 from pwittrock/nodelabels
...
Node labels: Remove node-labels-file command line option. Change --n…
2016-01-12 15:12:57 -08:00
Derek Parker
55f09009c7
rkt: Include size in ListImages
2016-01-12 14:44:40 -08:00
k8s-merge-robot
0df7e695d4
Merge pull request #19458 from davidopp/notsclose
...
Auto commit by PR queue bot
2016-01-12 13:53:13 -08:00
Phillip Wittrock
f1c8384ff4
Node labels: Remove node-labels-file command line option. Change --node-label format from key=value to key:value to be consitent with how the header key:value is specified on command line.
2016-01-12 12:57:12 -08:00
Random-Liu
acb74454dc
Format reconcile log with format.Pod(pod)
2016-01-12 12:03:16 -08:00
k8s-merge-robot
67ac4e3838
Merge pull request #18410 from Random-Liu/reconcile-pod-status
...
Auto commit by PR queue bot
2016-01-12 02:17:09 -08:00
k8s-merge-robot
c255181509
Merge pull request #18248 from resouer/images-dev
...
Auto commit by PR queue bot
2016-01-11 23:53:43 -08:00
David Oppenheimer
8ac484793d
Comment out calls to httptest.Server.Close() to work around
...
https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
2016-01-11 23:02:11 -08:00
Saad Ali
651206fd90
Merge pull request #19393 from yujuhong/fix_dockerclient
...
Fix fake docker client to corretly report status of containers
2016-01-11 13:56:41 -08:00
Saad Ali
f5ea4f4671
Merge pull request #19392 from yujuhong/runtime_mock
...
Add a container runtime mock for testing
2016-01-11 13:03:37 -08:00
Prashanth Balasubramanian
4fe4f1f20e
Errors in network setup should prevent pod creation
2016-01-11 11:16:15 -08:00
gmarek
573c3ca320
Shorten the sleep amount in the fake docker client
2016-01-11 12:15:11 +01:00
Random-Liu
5b4a210d49
Add reconcile support in kubelet
2016-01-10 01:35:07 -08:00
k8s-merge-robot
609cdfd267
Merge pull request #19331 from resouer/hash-util
...
Auto commit by PR queue bot
2016-01-09 13:08:01 -08:00
Yu-Ju Hong
712612c2dc
Treat first-seen, non-pending pods as updates
...
Kubelet doesn't perform checkpointing and loses all its internal states after
restarts. It'd then mistaken pods from the api server as new pods and attempt
to go through the admission process. This may result in pods being rejected
even though they are running on the node (e.g., out of disk situation). This
change adds a condition to check whether the pod was seen before and categorize
such pods as updates. The change also removes freeze/unfreeze mechanism used to
work around such cases, since it is no longer needed and it stopped working
correctly ever since we switched to incremental updates.
2016-01-08 17:21:43 -08:00
Yifan Gu
dda62129d1
rkt: Add unit tests for setApp.
2016-01-08 13:41:18 -08:00
Yifan Gu
cc656ae6ac
rkt: Refactor setIsolators.
...
Replace manually creating isolators with isolator constructors.
Also add support for supplementary group IDs.
2016-01-08 13:31:21 -08:00
harry zhang
27ca7dc71e
Expose image list in node status
...
Change image manager to use repotag
2016-01-08 17:01:31 +08:00
Yu-Ju Hong
b969599daf
Fix fake docker client to corretly report status of containers
2016-01-07 18:20:41 -08:00
Yu-Ju Hong
c997fb3715
Add a container runtime mock for testing
2016-01-07 18:02:49 -08:00
Isaac Hollander McCreery
791cae90f0
Merge pull request #19350 from brendandburns/oncall
...
Improve error reporting a little in ingress e2e.
2016-01-07 15:51:31 -08:00
Tim St. Clair
3c72506f10
Fixed test & error code
2016-01-07 11:55:26 -08:00
Tim St. Clair
1fd72a7871
Change default cAdvisor housekeeping interval to 10s
...
Change the default interval cAdvisor uses to gather stats to 10
seconds.
2016-01-07 11:29:15 -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
Tim St. Clair
368447ff3f
Rector kubelet stats serving
...
Changes include:
- Moving stats serving & routes to pkg/kubelet/server/stats/handler.go
- Managing the routes with restful.WebService, rather than manual
parsing
- Misc cleanup
These changes will make adding the new routes for /stats/summary more
manageable.
2016-01-06 17:37:12 -08:00
Brendan Burns
07b3ab720d
Improve error reporting a little in ingress e2e.
...
Also add Output() to the util/exec Cmd interface.
2016-01-06 15:25:04 -08:00
harry
2a52976983
Use hashutil to hold hash tools
2016-01-06 22:28:58 +08:00
k8s-merge-robot
d1668c6656
Merge pull request #19269 from yifan-gu/rkt_refactor
...
Auto commit by PR queue bot
2016-01-05 22:28:02 -08:00
k8s-merge-robot
38f926dbb9
Merge pull request #19206 from Random-Liu/remove-wired-docker-label
...
Auto commit by PR queue bot
2016-01-05 19:32:01 -08:00
k8s-merge-robot
66d3cbf889
Merge pull request #16900 from madhusudancs/avoid-kubelet-oscillation
...
Auto commit by PR queue bot
2016-01-05 17:14:13 -08:00
Random-Liu
884dc5c9e5
Put TerminationGracePeriod, DeletionGracePeriod and PreStopHandler to docker labels
2016-01-05 15:45:29 -08:00
Yu-Ju Hong
343240d559
Fix container restarts caused by kubelet restarts
...
There has been a recent regression causing kubelet to assume no containers are
running for the pod if kubelet has not seen the pod before. This would cause
all containers to be restarted after kubelet gets restarted. This change fixes
the bug.
2016-01-05 14:24:22 -08:00
k8s-merge-robot
4a89481fbb
Merge pull request #19034 from Random-Liu/deprecate-running-pod-in-syncpod
...
Auto commit by PR queue bot
2016-01-04 18:51:18 -08:00
Yifan Gu
2767f10b61
rkt: refactoring on constructing the app section of rkt pods.
2016-01-04 16:27:52 -08:00
Madhusudan.C.S
059c2aa799
Mitigate node out of disk status oscillation by delaying it.
...
Implement a flag that defines the frequency at which a node's out of
disk condition can change its status. Use this flag to suspend out of
disk status changes in the time period specified by the flag, after
the status is changed once.
Set the flag to 0 in e2e tests so that we can predictably test out of
disk node condition.
Also, use util.Clock interface for all time related functionality in
the kubelet. Calling time functions in unversioned package or time
package such as unversioned.Now() or time.Now() makes it really hard
to test such code. It also makes the tests flaky and sometimes
unnecessarily slow due to time.Sleep() calls used to simulate the
time elapsed. So use util.Clock interface instead which can be faked
in the tests.
2016-01-04 12:23:38 -08:00
Yu-Ju Hong
7d180b337b
Record pleg pod relist interval and latency
...
Relisting latency/interval affects how quick kubelet discovers changes. Record
the metrics in Prometheus to surface such information.
2016-01-04 10:56:38 -08:00
Random-Liu
2ea11690b8
Remove running pod from SyncPod() of container runtime
2016-01-04 10:18:46 -08:00
Ravi Sankar Penta
d0dd6c844b
Allow node IP to be passed as optional config for kubelet
...
In case of multiple IPs on the node, this will allow admin to
specify desired IP to be used for the node.
2016-01-03 09:29:07 -08:00
Random-Liu
b2a72ca384
Change my TODO to be the same with others
2015-12-31 00:41:05 -08:00
Yifan Gu
9b81b67879
rkt: Move image related functions to image.go
2015-12-29 17:17:27 -08:00
Random-Liu
6e92ddf9e1
Cleanup pod print in dockertools/manager.go, prober/prober.go and
...
runonce.go
2015-12-28 14:07:37 -08:00
Chao Xu
2b5b708b70
Refactor the API registration and installation
2015-12-23 22:44:25 -08:00
Yifan Gu
644aa9536a
rkt: Remove pod_info.go, clean up codes that not needed anymore.
2015-12-22 12:02:25 -08:00
Yifan Gu
ee7251ed10
rkt: Update for newest api version.
2015-12-22 12:02:25 -08:00
Yifan Gu
278f0dc8ad
rkt: Replace image cat-manifest/list with api calls.
2015-12-22 12:02:25 -08:00
Jimmi Dyson
041ab17a67
Bump cadvisor to fix interface stats bugs & improve performance
...
Includes necessary godep upgrades for docker & systemd packages as well as
migrating from docker/libcontainer to opencontainers/runc/libcontainer.
2015-12-21 17:07:21 +00:00
k8s-merge-robot
a29f4babf5
Merge pull request #18544 from timstclair/stats
...
Auto commit by PR queue bot
2015-12-19 19:54:11 -08:00
k8s-merge-robot
cb42bd47bb
Merge pull request #18027 from roboll/runonce-datadirs
...
Auto commit by PR queue bot
2015-12-19 19:14:29 -08:00
k8s-merge-robot
b7dd32ad70
Merge pull request #18643 from yifan-gu/rkt_get_pod_status
...
Auto commit by PR queue bot
2015-12-19 02:38:31 -08:00
k8s-merge-robot
0b647564fc
Merge pull request #18625 from bprashanth/kube_up_flannel
...
Auto commit by PR queue bot
2015-12-19 01:29:11 -08:00
Wojciech Tyczynski
bf73d1741e
Merge pull request #18729 from timstclair/worker-race
...
Concurrency fixes for prober tests
2015-12-18 16:15:13 +01:00
Tim St. Clair
c357b91d2c
Update from offline discussions
...
- Sample is now the toplevel struct, so all child structs have the same
timestamp
- Removed FilesystemStats. There are more discussions needed
wrt. volumes and disk accounting, so this will be added in a follow
up PR
- Removed Options. The most recent sample will be returned.
2015-12-17 15:45:14 -08:00
Tim St. Clair
e1fc2c1152
@vishh PR feedback
2015-12-17 10:54:17 -08:00
Tim St. Clair
ce20c3b100
Add new Stats API for serving pod level stats
...
This API has been discussed ad nauseam across several forums, and this
API represents the latest conclusion. In summary, we will provide this
API as temporary solution for providing the new stats required for 1.2.
In the longterm this API will be split into "essential" stats, which
will be provided by a first-party API served through the kubelet, and
"non-essential" (monitoring) stats, which will be provided by a 3rd
party API served from a pod.
2015-12-17 10:54:17 -08:00
Vishnu Kannan
3c0745211f
Fix docker root dir detection.
2015-12-17 10:24:30 -08:00
k8s-merge-robot
674e24a16e
Merge pull request #18617 from mqliang/OSImage
...
Auto commit by PR queue bot
2015-12-17 08:50:48 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
k8s-merge-robot
0f144fd351
Merge pull request #18529 from timstclair/server
...
Auto commit by PR queue bot
2015-12-17 04:27:11 -08:00
Yifan Gu
2c79c670f1
rkt: Fix GetPods(), refactor tests for GetPods().
...
Fix GetPods() so that the container hash is fetched from the
annotations in pod manifest's app list instead of image manifest.
2015-12-16 16:53:45 -08:00
Yifan Gu
5f4e6d0908
rkt: Add GetPodStatus(), GetPodStatusAndAPIPodStatus().
...
Also add ConvertPodStatusToAPIPodStatus().
Add tests for GetPodStatus().
2015-12-16 14:35:19 -08:00
k8s-merge-robot
c2189fd60d
Merge pull request #18518 from Random-Liu/fix-potential-data-race
...
Auto commit by PR queue bot
2015-12-16 09:45:52 -08:00
Tim St. Clair
facb0a5c42
Concurrency fixes for prober tests
...
Fix leaking go routines and race conditions in prober unit tests.
2015-12-15 14:37:48 -08:00
Tim St. Clair
89bc7992f9
Refactor kubelet server into its own package
...
Refactor Kubelet's server functionality into a server package. Most
notably, move pkg/kubelet/server.go into
pkg/kubelet/server/server.go. This will lead to better separation of
concerns and a more readable code hierarchy.
2015-12-15 10:20:38 -08:00
k8s-merge-robot
5429d15fcf
Merge pull request #18449 from timstclair/race
...
Auto commit by PR queue bot
2015-12-15 05:32:17 -08:00
k8s-merge-robot
3680268c52
Merge pull request #18353 from deads2k/gv-use-constants
...
Auto commit by PR queue bot
2015-12-15 03:25:09 -08:00
k8s-merge-robot
25acc9bafa
Merge pull request #18301 from yujuhong/remove_wait
...
Auto commit by PR queue bot
2015-12-15 02:51:55 -08:00
k8s-merge-robot
1f0e46abb8
Merge pull request #16237 from ZJU-SEL/fix-util
...
Auto commit by PR queue bot
2015-12-14 18:41:14 -08:00
Prashanth Balasubramanian
b5303b9978
Tell kubernetes-master not to wait on flannel.
2015-12-14 09:47:09 -08:00
deads2k
d0aaf13920
use constants for group names
2015-12-14 10:04:10 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
harry zhang
5405a5d98d
Move atomic_value into folder
...
Change pkg to atomic
2015-12-14 05:50:29 +00:00
mqliang
a21dd8a32b
replace OsImage to OSImage
2015-12-12 15:53:34 +08:00
k8s-merge-robot
3d24d25fd8
Merge pull request #17764 from jiangyaoguo/make-containerspecchange-private
...
Auto commit by PR queue bot
2015-12-11 17:40:34 -08:00
Jeff Lowdermilk
9f3d28c788
Merge pull request #18305 from yujuhong/podfullname
...
Replace podFullName with format.Pod() in logging messages
2015-12-11 14:31:47 -08:00
Jeff Lowdermilk
9c49cdaa6e
Merge pull request #18276 from thockin/airplane_validation_pt6
...
Validation cleanup parts 5 & 6 together
2015-12-11 13:34:37 -08:00
k8s-merge-robot
23baca87b5
Merge pull request #18232 from pwittrock/fsacct
...
Auto commit by PR queue bot
2015-12-11 00:48:09 -08:00
k8s-merge-robot
6b8eb902ce
Merge pull request #17969 from dgonyeo/rkt_api_get_pods
...
Auto commit by PR queue bot
2015-12-10 23:13:37 -08:00
k8s-merge-robot
caf4b1e47f
Merge pull request #18191 from thockin/ingress-egress-annotations
...
Auto commit by PR queue bot
2015-12-10 23:01:26 -08:00
Tim Hockin
7fb8f60735
Shorten names for better reading
2015-12-10 11:48:19 -08:00
Tim Hockin
87a35047dd
Move FieldPath and errors to a sub-package
...
This makes the naming and reading a lot simpler.
2015-12-10 11:48:16 -08:00
Random-Liu
eb551f388c
Fix potential data race
2015-12-10 10:35:02 -08:00
k8s-merge-robot
34c32a5615
Merge pull request #18498 from feihujiang/fixDocOfNetworkPluginVersion
...
Auto commit by PR queue bot
2015-12-10 09:44:32 -08:00
k8s-merge-robot
2ef2544faa
Merge pull request #18237 from yifan-gu/refactor_getphase
...
Auto commit by PR queue bot
2015-12-10 06:55:02 -08:00
k8s-merge-robot
073661514e
Merge pull request #18129 from yujuhong/fix_status
...
Auto commit by PR queue bot
2015-12-10 03:35:33 -08:00
feihujiang
5cfdcfd8f6
Fix the doc of network plugin version
2015-12-10 16:57:27 +08:00
Phillip Wittrock
c67ce887f2
Volume Metrics Interface and base implementation.
...
- Add volume.MetricsProvider function to Volume interface.
- Add volume.MetricsDu for providing metrics via executing "du".
- Add volulme.MetricsNil for unsupported Volumes.
2015-12-09 16:06:24 -08:00
Derek Gonyeo
5a16b4751b
rkt: rewrote GetPods to use rkt's api service
...
This involved adding annotations to the rkt pod's manifest that contain
information about the kubernetes pod, which is later read by the
kubelet.
2015-12-09 14:43:50 -08:00
Tim St. Clair
246442514c
Expose Start method, don't call in constructor
2015-12-09 10:58:15 -08:00
Tim St. Clair
32794b18f0
Fix data race in prober test
2015-12-09 10:20:57 -08:00
Wojciech Tyczynski
a915b8b29a
Merge pull request #18080 from wojtek-t/list_options_in_listwatch
...
Pass ListOptions to List in ListWatch.
2015-12-09 14:27:51 +01:00
Yu-Ju Hong
c646255579
Replace podFullName with format.Pod() in logging messages
2015-12-07 13:41:52 -08:00
Yu-Ju Hong
fda73c04ec
Change to include UID by default in formatting
2015-12-07 13:32:02 -08:00
deads2k
2ee3dfe415
update testapi to eliminate redundant fields
2015-12-07 15:54:26 -05:00
Yu-Ju Hong
e0d9ccde65
Minor clean up on checking container runtime status
...
Remove redundant function and consolidate the code.
2015-12-07 11:13:59 -08:00
Fabio Yeon
5457f5ace2
Merge pull request #18240 from timstclair/readiness
...
Update PodReady condition when updating container readiness
2015-12-07 10:43:22 -08:00
Abhi Shah
bb3f49e526
Merge pull request #18089 from ArtfulCoder/oneNSAgain
...
SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst
2015-12-07 10:20:29 -08:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
k8s-merge-robot
316a8ac41c
Merge pull request #18073 from ingvagabund/garbage-collector-low-high-threshold-test
...
Auto commit by PR queue bot
2015-12-07 02:10:57 -08:00
jiangyaoguo
5f77f2b5a9
make PodContainerSpecChange private
2015-12-07 09:28:15 +08:00
k8s-merge-robot
810181fb7b
Merge pull request #17278 from ZJU-SEL/fix-nil-tag
...
Auto commit by PR queue bot
2015-12-06 12:52:39 -08:00
k8s-merge-robot
fc92833238
Merge pull request #17973 from liggitt/validate_node_name
...
Auto commit by PR queue bot
2015-12-05 13:23:26 -08:00
k8s-merge-robot
e1230eb57e
Merge pull request #17420 from Random-Liu/use-raw-pod-status-in-docker
...
Auto commit by PR queue bot
2015-12-05 12:16:04 -08:00
k8s-merge-robot
50af1d6550
Merge pull request #17756 from zhengguoyong/check_ref_before_use
...
Auto commit by PR queue bot
2015-12-05 10:52:56 -08:00
k8s-merge-robot
510949261a
Merge pull request #17752 from yujuhong/docker_health
...
Auto commit by PR queue bot
2015-12-05 10:24:48 -08:00
Jordan Liggitt
7d10fd3591
Validate pod spec.nodeName
2015-12-05 11:34:09 -05:00
k8s-merge-robot
2f4d4d9e94
Merge pull request #17968 from dgonyeo/rkt_api_list_images
...
Auto commit by PR queue bot
2015-12-05 05:50:06 -08:00
Yifan Gu
4ac6129578
kubelet: Small refactor on GetPhase().
2015-12-04 18:43:09 -08: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
k8s-merge-robot
c55b136ae2
Merge pull request #17149 from zhengguoyong/refactor_set_node_status
...
Auto commit by PR queue bot
2015-12-04 16:10:04 -08:00
Tim St. Clair
2430454eea
Update PodReady condition when updating container readiness
2015-12-04 15:40:33 -08:00
Derek Gonyeo
7ae6bf9d39
rkt: rewrote ListImages to use rkt's API service
2015-12-04 11:25:56 -08:00
k8s-merge-robot
37d22999b4
Merge pull request #17572 from yujuhong/kubeutil
...
Auto commit by PR queue bot
2015-12-04 03:15:54 -08:00
zhengguoyong
08c6bab575
Refactor fun setNodeStatus
2015-12-04 19:00:33 +08:00
Tim Hockin
29a2fded52
Revert "Change to alpha/beta for bandwidth annotations"
...
This reverts commit 2f4c3035be
.
2015-12-03 17:20:23 -08:00
Yu-Ju Hong
c8a075ad62
Do not delete pod status entry when apiserver returns NotFound error
...
The logic doesn't apply to static pods as their corresponding mirror pod may
not have been created yet, or may be in the process of recreation. Deleting the
pod status immediately resets the version of the status for the static pod,
while the apiStatusVersion remains unchanged. This could lead to incorrect
versioning and hence stale pod status in the apiserver.
2015-12-03 13:11:48 -08:00
Yu-Ju Hong
a4816b3bcb
Make kublet/util/format.go a separate package
...
The formatting function is used often in logging. This improves the readability
by shortening the length of the call. Also change the fomartted string to
include the pod UID.
2015-12-03 12:47:36 -08:00
Tim Hockin
e6df0b1a24
Convert validation to use FieldPath
...
Before this change we have a mish-mash of ways to pass field names around for
error generation. Sometimes string fieldnames, sometimes .Prefix(), sometimes
neither, often wrong names or not indexed when it should be.
Instead of that mess, this is part one of a couple of commits that will make it
more strongly typed and hopefully encourage correct behavior. At least you
will have to think about field names, which is better than nothing.
It turned out to be really hard to do this incrementally.
2015-12-03 08:19:44 -08:00
k8s-merge-robot
f9715c6455
Merge pull request #17479 from mqliang/hardcode
...
Auto commit by PR queue bot
2015-12-03 06:13:15 -08:00
Marek Grabowski
ffdfc68d11
Merge pull request #18075 from wojtek-t/only_list_options_in_list
...
Simplify List() signature in clients.
2015-12-03 10:38:33 +01:00
Marek Grabowski
348e7ecc5d
Merge pull request #17349 from PeterLamar/master
...
Small readability improvements in Kubelet
2015-12-03 10:08:58 +01:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
k8s-merge-robot
106cf2b6b5
Merge pull request #17755 from timstclair/status-manager
...
Auto commit by PR queue bot
2015-12-02 22:07:44 -08:00
Abhishek Shah
6c3a88cb3a
SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst
2015-12-02 10:26:49 -08:00
k8s-merge-robot
8a8639d7af
Merge pull request #17863 from wojtek-t/only_list_options_in_watch
...
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
k8s-merge-robot
689586c6ae
Merge pull request #16153 from gmarek/use_api_ports
...
Auto commit by PR queue bot
2015-12-02 05:57:49 -08:00
Jan Chaloupka
9590b23264
LowThresholdPercent can not be higher than HighThresholdPercent
...
if LowThresholdPercent > HighThresholdPercent, amountToFree at image_manager.go:208 is negative and image GC will not free memory properly.
Justification:
1) LowThresholdPercent > HighThresholdPercent implies (LowThresholdPercent * capacity / 100) > (HighThresholdPercent * capacity / 100)
2) usage is at least (HighThresholdPercent * capacity / 100)
3) amountToFree = usage - (LowThresholdPercent * capacity / 100)
Combining 1), 2) and 3) implies amountToFree can be negative.
What happens if amountToFree is negative? in freeSpace method, "for _, image := range images " loops at least once
and if everything goes fine, "delete(im.imageRecords, image.id)" is executed.
When checking for condition "if spaceFreed >= bytesToFree", it is always true as bytesToFree is negative
and spaceFreed is positive. The loop is finished, so is image GC.
At the end, only the oldest image is deleted. In situations where there is a lot of dead containers,
each container corresponing to distinct image, number of unused images can get higher.
If two new images get pulled in every 5 minutes, image GC will not work properly and will not free enough space.
Secondly, it will take a lot of time to free all unused images (hours depending on a number of unused images).
This is an incorrect configuration. Image GC should report it and refuse to work.
2015-12-02 14:28:51 +01:00
gmarek
459131fd92
Use KubeletPort reported in NodeStatus instead of cluster-wide master config, take 2.
2015-12-02 13:38:17 +01:00
k8s-merge-robot
ac68536d44
Merge pull request #17832 from wojtek-t/list_options_in_list
...
Auto commit by PR queue bot
2015-12-02 02:34:17 -08:00
k8s-merge-robot
5e53e281e5
Merge pull request #17545 from yujuhong/no_auto_updates
...
Auto commit by PR queue bot
2015-12-02 02:03:08 -08:00
Fabio Yeon
7100d278e3
Revert "SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst"
2015-12-01 20:58:27 -08:00
k8s-merge-robot
4602220ad0
Merge pull request #15645 from ArtfulCoder/oneNS
...
Auto commit by PR queue bot
2015-12-01 13:51:37 -08:00
rob boll
81b9097a80
kubelet runonce: create data dirs
2015-12-01 14:03:02 -05:00
k8s-merge-robot
355ac2c58d
Merge pull request #17581 from swagiaal/correct-management-predicates
...
Auto commit by PR queue bot
2015-12-01 06:42:15 -08:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6
Simplify Watch() signature in clients.
2015-12-01 14:19:26 +01:00
k8s-merge-robot
a836b1e261
Merge pull request #17326 from caesarxuchao/grooupVersion-lastest
...
Auto commit by PR queue bot
2015-12-01 05:05:40 -08:00
Chao Xu
6e192760e3
refactoring latest.go GroupVersion;
...
clean up latest.go GroupVersions;
remove latest.GroupMeta.Group;
remove latest.GroupMeta.Version.
2015-11-30 11:30:21 -08:00
Sami Wagiaalla
a7fc99933b
Fix predicates for SELinux and ownership management
2015-11-30 10:31:28 -05:00
Harry Zhang
5552d7007c
Add default when latest not claimed
2015-11-30 17:10:50 +08:00