Jan Chaloupka
663fbce3a0
Kubelet: node allocatable resources: negative quantities should not be allowed
...
When setting kube/system-resources for a node, negative quantities can result in
node's allocatable being higher then node's capacity.
Let's check the quantity and return error if it is negative.
2016-03-23 18:02:07 +01:00
k8s-merge-robot
76369c42be
Merge pull request #22939 from resouer/util-sub-dir
...
Auto commit by PR queue bot
2016-03-23 03:34:33 -07:00
k8s-merge-robot
4af38b52b9
Merge pull request #22736 from resouer/fix-util-dev
...
Auto commit by PR queue bot
2016-03-22 19:54:58 -07:00
Harry Zhang
a4d04095d0
Refactor crlf & crypto
2016-03-21 20:20:05 +08:00
harry
343b1927d1
Refactor config map into sub pkg
2016-03-21 14:50:57 +08:00
harry
f19d59cf35
Move flag into sub pkg
2016-03-14 21:30:38 +08:00
Prashanth Balasubramanian
544d0a5c05
Cleanup hairpin flag in the kubelet.
2016-03-07 11:55:09 -08:00
k8s-merge-robot
d81d823ca5
Merge pull request #22393 from eparis/blunderbuss
...
Auto commit by PR queue bot
2016-03-02 18:51:56 -08:00
Eric Paris
5e5a823294
Move blunderbuss assignees into tree
2016-03-02 20:46:32 -05:00
Dawn Chen
a90ac42dd8
Kill docker daemon after configing cbr0 if flag --babysit-daemon is true so that babysitter process can restart it again with proper configurations and checkpoint file.
2016-03-01 16:46:31 -08:00
k8s-merge-robot
bef2b8f1ed
Merge pull request #21927 from caesarxuchao/fix-404-links
...
Auto commit by PR queue bot
2016-03-01 15:41:32 -08:00
Chao Xu
7a85d54d4e
fix links
2016-02-29 13:27:29 -08:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
k8s-merge-robot
5703945a29
Merge pull request #21361 from yujuhong/maxpods
...
Auto commit by PR queue bot
2016-02-27 09:18:48 -08:00
k8s-merge-robot
f0c0af2561
Merge pull request #20528 from mikedanese/varz
...
Auto commit by PR queue bot
2016-02-27 00:27:18 -08:00
k8s-merge-robot
dcbeacded0
Merge pull request #21521 from mesosphere/jdef_kubelet_options1
...
Auto commit by PR queue bot
2016-02-24 18:35:10 -08:00
Mike Danese
5ec02bd021
add http handler to export configuration state
2016-02-24 14:12:28 -08:00
Yu-Ju Hong
a07d1411a8
Change default --max-pods in kubelet to 110
...
Also increase maximum dead containers to 240
2016-02-23 15:37:36 -08:00
Jeff Lowdermilk
c406665b2b
Plumb node labels through salt
...
Expose node-labels flag on kubelet for gce via a startup script
env var.
2016-02-22 15:31:34 -08:00
Dawn Chen
699c80b752
Merge pull request #21641 from bprashanth/promisc
...
Teach the kubelet about promiscuous mode, take 2
2016-02-22 15:08:18 -08:00
k8s-merge-robot
6d0e57b711
Merge pull request #20953 from yujuhong/log_error
...
Auto commit by PR queue bot
2016-02-21 02:45:23 -08:00
Prashanth Balasubramanian
2e8ff81de1
Teach the kubelet about --hairpin-mode=promiscuous-bridge.
2016-02-20 22:40:54 -08:00
Daniel Smith
a8b943dddd
Revert "Put the container bridge in promiscuous mode."
2016-02-19 23:14:53 -08:00
James DeFelice
6c09689c60
add functional Option type to Kubelet, add SetNodeStatus Option, migrate node statue update funcs to slice of callbacks
2016-02-20 02:09:54 +00:00
Prashanth Balasubramanian
a694a7ae4b
Teach the kubelet about --hairpin-mode=promiscuous-bridge.
2016-02-19 14:59:16 -08:00
laushinka
7ef585be22
Spelling fixes inspired by github.com/client9/misspell
2016-02-18 06:58:05 +07:00
k8s-merge-robot
1a2f811a3b
Merge pull request #20063 from mqliang/imageGC-config
...
Auto commit by PR queue bot
2016-02-17 06:16:45 -08:00
Chao Xu
97aecd002a
remove underscore in imported pkg names
2016-02-16 10:54:51 -08:00
mqliang
641ba92aa3
move minGCAge to ImageGCPolicy and make it configurable
2016-02-15 22:54:54 +08:00
Paul Morie
d1dc259ef2
ConfigMap volume source
2016-02-14 16:19:17 -05:00
Yu-Ju Hong
0eb04cb433
Log kubelet startup error messages
2016-02-12 16:43:54 -08:00
derekwaynecarr
e5e691ed5f
Default lockfile to empty string while alpha
2016-02-12 10:50:17 -05: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
51e4ccf106
Updating the default values for the cgroups hierarchies that kubelet
...
creates for managing the nodes.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-10 16:02:36 -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
Mike Danese
b3172a4ccf
kubelet: add a pidfile
2016-02-10 11:38:50 -08:00
Prashanth Balasubramanian
c3a3a2bacd
Pipe hairpin-mode flag through kubelet, enable on soak.
2016-02-09 12:12:19 -08:00
Huamin Chen
d7e4b826b9
support Azure File Service volume
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-02-09 01:07:12 +00:00
James DeFelice
1aec798aa0
support optional envvars for pod-infra-container
2016-02-08 13:48:25 +00:00
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
k8s-merge-robot
fcf9c4a1e4
Merge pull request #19741 from pwittrock/syncfsmetrics
...
Auto commit by PR queue bot
2016-02-05 17:54:22 -08:00
Phillip Wittrock
3de94cd23c
Supply volume fs metrics to server/stats/handler.go
...
* Metrics will not be expose until they are hooked up to a handler
* Metrics are not cached and expose a dos vector, this must be fixed before release or the stats should not be exposed through an api endpoint
2016-02-05 16:00:24 -08:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
Marcin Wielgus
bf0c881263
Set Docker custom metric label for cAdvisor if custom metric volume is mounted
2016-02-05 12:00:02 +01:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
k8s-merge-robot
65ebe19164
Merge pull request #20584 from caesarxuchao/release_1_2
...
Auto commit by PR queue bot
2016-02-03 19:46:27 -08:00
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08:00
Dan Williams
fabb65c13f
Add a network plugin that duplicates "configureCBR0" functionality
2016-02-03 10:08:08 -06:00
k8s-merge-robot
843c11e06a
Merge pull request #20452 from caesarxuchao/replace-client-kubelet
...
Auto commit by PR queue bot
2016-02-02 23:46:58 -08:00
Chao Xu
cddd7b56a4
replace client with clientset in kubelet and other places
2016-02-02 20:28:45 -08:00
CJ Cullen
04eb90a5d4
Make tunneler hold tunnels open and healthcheck vs. reopening every 5 minutes.
...
Also add a test for the Update() logic.
Reordered tunnels vs. storage initialization (prevent a nil ptr panic)
2016-02-02 12:00:29 -08:00
k8s-merge-robot
32ab64ce5b
Merge pull request #19778 from resouer/runtime
...
Auto commit by PR queue bot
2016-02-01 21:05:05 -08:00
k8s-merge-robot
4eaffd2477
Merge pull request #19900 from vishh/kubelet-cpu-cfs
...
Auto commit by PR queue bot
2016-02-01 15:18:30 -08:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +08:00
Chao Xu
c72d234bbf
replacing handwritten client in several controllers
2016-01-31 15:42:02 -08:00
k8s-merge-robot
3f5e417999
Merge pull request #19502 from swagiaal/internalize-ownership
...
Auto commit by PR queue bot
2016-01-26 23:06:39 -08:00
k8s-merge-robot
8c821700f3
Merge pull request #19389 from justinsb/internal_cidr
...
Auto commit by PR queue bot
2016-01-26 03:58:48 -08:00
k8s-merge-robot
88a72c2c9d
Merge pull request #19938 from mikedanese/ipvalidate
...
Auto commit by PR queue bot
2016-01-25 21:09:51 -08:00
Rudi Chiarito
bc0dd97a70
ECR credential provider
2016-01-22 15:03:25 -05:00
Mike Danese
1fc630caa0
add ip validation to componentconfig command line
2016-01-21 13:33:30 -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
Vishnu kannan
214b85e708
Enable CPU CFS quota by default.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-21 10:33:28 -08: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
Mike Danese
35a3785cf6
kubelet: use ConfigurationMap instead of json
2016-01-14 09:32:42 -08:00
Sami Wagiaalla
125295ba40
Remove manageVolumeOwnership from kubelet
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
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
Nagarjun
c98364e79b
insert space after comment character in cmd folder
2016-01-08 16:25:57 +05:30
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
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
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
Chakravarthy Nelluri
fa76de79e5
Add support for flex volume. Flex volume adds support for thirdparty(vendor)
...
volumes and custom mounts.
2015-12-23 14:11:38 -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
d71e838d91
Merge pull request #17760 from gmarek/kubelet-port-salt
...
Auto commit by PR queue bot
2015-12-08 21:14:10 -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
gmarek
4060eba626
Use KubeletPort from API object, salt changes, take 2
...
This reverts commit a7425bf070
, reversing
changes made to 4a9b0fc715
.
2015-12-07 10:31:11 +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
Abhishek Shah
6c3a88cb3a
SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst
2015-12-02 10:26:49 -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
zhengguoyong
bff8334db9
Consistent import kubelet app package name
2015-11-28 08:51:39 +08:00
k8s-merge-robot
c7cddbefc9
Merge pull request #17697 from dchen1107/event
...
Auto commit by PR queue bot
2015-11-26 13:42:05 -08:00
Abhishek Shah
015df14a4a
SkyDNS is the only NS for Pods with DNSPolicy=ClusterFirst
2015-11-25 15:02:40 -08:00
Prashanth Balasubramanian
9aa0efa393
Turn flannel off by default
2015-11-25 09:43:48 +01:00
Prashanth Balasubramanian
ad2d3d4c20
Docs etc
2015-11-25 09:42:59 +01:00
Prashanth Balasubramanian
7aa8ebe30f
Flannel handshakes with kubelet.
2015-11-25 09:42:59 +01:00
jiangyaoguo
e3ea9d7c40
add separate client for events in kubelet
2015-11-25 01:28:34 +08:00
Dawn Chen
0b734cec93
Have a sane default for RegistryPullQPS
2015-11-23 17:14:15 -08:00
Rohith
c2526c93fa
- adding the -node-label flag to the kubelet which allows for a initial tagging / labelling of the node on cluster registration
...
- the labels can come from a series of key=pair value or file:///path_to_file which contains key pairs
2015-11-18 23:20:58 +00:00
cephaslr
aef7af1ba4
Rename kubelet variable pods to maxPods in kubelet pkg to match pods variable in kubelet cmd.
...
Remove comment requesting modification of mesos contrib file, dependencies should be maintained in unit tests
2015-11-16 20:15:40 -05:00
Yu-Ju Hong
ac778e8203
Adjust the sync/backoff period
...
Set resyncInterval to one minute now that we rely on the generic pleg to trigger
pod syncs on container events. When there is an error during syncing, pod
workers need to wake up sooner to retry. Set the sync error backoff period to
10 second in this case.
2015-11-13 09:57:25 -08: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
Avesh Agarwal
f111033641
Fix defaults for MaxPods and MaxOpenFiles.
...
Fix go formatting and docs.
2015-11-10 12:20:54 -05:00
Avesh Agarwal
a71a9a9164
Fix default value for StreamingConnectionIdleTimeout.
2015-11-10 11:29:28 -05:00
derekwaynecarr
b403e30d1a
Kubelet serialize image pulls had incorrect default
2015-11-03 15:24:01 -05:00
Andy Goldstein
325e0ce68b
Fix kubelet help typo
...
Fix double percent (%%) typo for image-gc-high-threshold and
image-gc-low-threshold help text.
2015-10-26 10:37:46 -04:00
feisky
13dce74adb
Gendocs for docs/admin/kube-*
2015-10-25 19:24:23 +08: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
Steve Sloka
4302208aa9
globally search/replace 'KubeApiQps' to 'KubeAPIQPS' and 'KubeApiBurst' to 'KubeAPIBurst' to match GO rules
2015-10-23 08:24:19 -04:00
Vishnu kannan
0df4b46d4c
Adding a kubelet flag to optionally enable parallel image pulls.
2015-10-22 17:19:51 -07:00