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
Prashanth Balasubramanian
544d0a5c05
Cleanup hairpin flag in the kubelet.
2016-03-07 11:55:09 -08: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
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -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
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
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
Yu-Ju Hong
0eb04cb433
Log kubelet startup error messages
2016-02-12 16:43:54 -08: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
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
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08: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
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
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
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
Paul Morie
3cd12f5e05
FSGroup implementation
2015-10-22 16:40:59 -04:00
Aaron Crickenberger
69351e3e88
Expose kube-api burst/qps settings for kube components
...
Default to hardcodes for components that had them, and 5.0 qps, 10 burst
for those that relied on client defaults
Unclear if maybe it'd be better to just assume these are set as part of
the incoming kubeconfig. For now just exposing them as flags since it's
easier for me to manually tweak.
2015-10-12 11:56:15 -04:00
Mike Danese
392f33e417
Merge pull request #14054 from mikedanese/register-master
...
register master kubelet with the apiserver
2015-10-09 17:12:37 -07:00
Yu-Ju Hong
a3e60cc32e
Rename imported package local name kubeletTypes to kubetypes
...
According to the naming guidelines, package name should not include mixedCaps.
2015-10-09 10:24:31 -07:00
k8s-merge-robot
b793c3edf1
Merge pull request #14700 from liggitt/kubelet_authz
...
Auto commit by PR queue bot
2015-10-09 03:01:43 -07:00
k8s-merge-robot
538cf72208
Merge pull request #15051 from feiskyer/kubelet/garbage-collection
...
Auto commit by PR queue bot
2015-10-09 02:11:47 -07:00
Jordan Liggitt
9d6b52881d
Add authentication/authorization interfaces to kubelet, always include /metrics with /stats
2015-10-09 03:10:00 -04:00
Mike Danese
fa60bbe8e6
add flag to kubelet to ignore the cidr passed down by the apiserver on the master
2015-10-08 21:21:19 -07:00
feisky
d624c7de51
Pass the ContainerGCPolicy in Runtime.GarbageCollect
2015-10-09 06:57:10 +08:00
Yu-Ju Hong
098ab05997
kubelet: move common types to kubelet/types
...
This would faciliate tasks such as moving code in pkg/kubelet to sub packages.
2015-10-08 14:38:01 -07:00
Alex Robinson
fe185f5ea7
Merge pull request #14415 from mesosphere/sttts-code-dedup-kubelet-init
...
Preparation for Mesos kubelet code-deduplication
2015-10-05 14:43:06 -07:00
Abhishek Shah
37692d498c
allow hostNetwork, hostPID and hostIPC by default
2015-10-02 15:26:17 -07:00
Dr. Stefan Schimanski
df5e9f8a4d
Allow to override the pod config in CreateAndInitKubelet
2015-10-02 19:38:03 +02:00
Dr. Stefan Schimanski
2c03c04879
Make createAndInitKubelet public to be reusable
2015-10-02 19:38:02 +02:00
Dr. Stefan Schimanski
cd760cc4ea
Make kubelet builder customizable
...
This is the preparation to remove a lot of duplicated code for kubelet
initialization in https://github.com/kubernetes/kubernetes/pull/13036 .
2015-10-02 19:38:02 +02:00
gmarek
fc79ce347e
Allow usining FakeOOMAdjuster in Kubelet
2015-10-01 10:55:08 +02:00
k8s-merge-robot
b661cfd21e
Merge pull request #14643 from liguangbo/change_Oom_to_OOM
...
Auto commit by PR queue bot
2015-09-29 18:54:22 -07:00
gmarek
7cfb3479e0
Small fixes to Kubemark scripts
2015-09-29 10:24:46 +02:00
liguangbo
12299087da
Change Oom to OOM
2015-09-28 18:18:04 +08:00
gmarek
dd3bd73948
Initial Kubemark commit
2015-09-28 11:39:05 +02:00
Dawn Chen
38583307ca
flag controlled RLIMIT_NOFILE for kubelet.
2015-09-22 15:18:34 -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
Filip Grzadkowski
7fe34f2050
Introduce nsenter writer for volume plugins
2015-09-17 16:40:29 +02:00