Kubernetes Prow Robot
ebf15029da
Merge pull request #80003 from wongma7/cloudprovider-authoritative-hostname
...
Fix cloud reported hostname being overridden if nodeIP set
2019-08-21 20:50:32 -07:00
Matthew Wong
fc28045220
Fix cloud reported hostname being overridden if nodeIP set
2019-08-21 19:07:12 -07:00
Lantao Liu
7767ff3bb2
Fix windows kubectl log -f.
2019-08-21 15:44:20 -07:00
Tim Allclair
a2c51674cf
Cleanup more static check issues (S1*,ST*)
2019-08-21 10:40:21 -07:00
Tim Allclair
8a495cb5e4
Clean up error messages (ST1005)
2019-08-21 10:40:21 -07:00
Tim Allclair
e06912ca3e
Clean up deprecated references
2019-08-21 10:40:21 -07:00
Tim Allclair
6510d26b6a
Fix misc static check issues
2019-08-21 10:40:21 -07:00
Tim Allclair
3f510c69f6
Remove dead code from pkg/kubelet/...
2019-08-21 10:40:21 -07:00
Kubernetes Prow Robot
59d29b67d9
Merge pull request #59484 from verb/debug-kubelet-1
...
Add support for Ephemeral Containers to the kubelet
2019-08-21 00:29:17 -07:00
Jianfei Bai
7773662b6a
Update existing node lease with retry.
2019-08-21 11:50:06 +08:00
Kubernetes Prow Robot
8cf05f514c
Merge pull request #79247 from egernst/kubelet-PodOverhead
...
Kubelet enabling to support pod-overhead
2019-08-20 13:27:15 -07:00
Lee Verberne
cb3976c02b
Fix returning logs from ephemeral containers
2019-08-20 17:45:38 +00:00
Kubernetes Prow Robot
ddd45b7986
Merge pull request #80569 from klueska/upstream-get-topology-hints-map
...
Update GetTopologyHints() for TopologyManager Hint Providers to return a map
2019-08-20 00:15:34 -07:00
Tim Allclair
49f50484b8
Delete duplicate resource.Quantity.Copy()
2019-08-19 17:23:14 -07:00
Kubernetes Prow Robot
29c87cbfff
Merge pull request #80482 from mars1024/bugfix/cni_validation
...
add CNI config validation to getDefaultCNINetwork
2019-08-19 10:11:31 -07:00
Kubernetes Prow Robot
e319abf274
Merge pull request #81163 from jsafrane/skip-unused-volumes
...
Skip unused volumes in VolumeManager
2019-08-16 17:02:36 -07:00
Ted Yu
e85e0bafbd
Drop GetPods from ActualStateOfWorld
2019-08-16 12:59:23 -07:00
Kubernetes Prow Robot
9b54021c65
Merge pull request #81456 from fredkan/bugfix/error-config-attachable-plugin
...
Bugfix/error config attachable plugin
2019-08-16 06:44:44 -07:00
Kevin Klues
4fdd52b058
Update GetTopologyHints() API to return a map
...
At present, there is no way for a hint provider to return distinct hints
for different resource types via a call to GetTopologyHints(). This
means that hint providers that govern multiple resource types (e.g. the
devicemanager) must do some sort of "pre-merge" on the hints it
generates for each resource type before passing them back to the
TopologyManager.
This patch changes the GetTopologyHints() interface to allow a hint
provider to pass back raw hints for each resource type, and allow the
TopologyManager to merge them using a single unified strategy.
This change also allows the TopologyManager to recognize which
resource type a set of hints originated from, should this information
become useful in the future.
2019-08-16 08:06:12 +02:00
Kubernetes Prow Robot
78a73e71a3
Merge pull request #81332 from cwdsuzhou/Aug/rwmutex_watchbaseManager
...
Use RWMutex in watchBasedManager
2019-08-15 16:18:35 -07:00
fredkan
67aeb09c6a
error config attachable plugin
2019-08-15 22:29:18 +08:00
Kubernetes Prow Robot
273e9262bb
Merge pull request #80342 from draveness/feature/remove-critical-pod-annotation
...
feat: cleanup pod critical pod annotations feature
2019-08-15 07:20:34 -07:00
Kubernetes Prow Robot
f2dd24820a
Merge pull request #73920 from nolancon/topology-manager-cpu-manager
...
Changes to make CPU Manager a Hint Provider for Topology Manager
2019-08-15 05:44:33 -07:00
fredkan
6524b83d53
error config attachable plugin
2019-08-15 20:41:32 +08:00
Kubernetes Prow Robot
3645041af5
Merge pull request #81377 from sjenning/add-eviction-metrics
...
kubelet: add eviction counter to kubelet metrics
2019-08-15 02:32:46 -07:00
fredkan
87243f49a4
fix error set csiplugin attachable
2019-08-15 17:08:21 +08:00
Jan Safranek
5b69362ff0
Skip unused volumes in VolumeManager
...
DesiredStateOfWorldPopulator should skip a volume that is not used in any
pod. "Used" means either mounted (via volumeMounts) or used as raw block
device (via volumeDevices).
Especially when block feature is disabled, a block volume must not get into
DesiredStateOfWorld, because it would be formatted and mounted there.
2019-08-15 10:48:38 +02:00
Jan Safranek
8d580262f9
Refactor makeMountsMap into GetPodVolumeNames
...
The function will be handy in subsequent patches. Also change custom maps
into sets.String.
2019-08-15 10:48:38 +02:00
Kubernetes Prow Robot
f6a70ef271
Merge pull request #80376 from ehashman/issue-66790-2
...
Drop deprecated cadvisor metric labels
2019-08-14 09:10:38 -07:00
Kevin Klues
b3f4bed97f
Add CPUManager tests for TopologyHint consumption
2019-08-14 06:22:56 +02:00
Kevin Klues
8278d1134c
Consume TopologyHints in the CPUManager
...
Co-Authored-By: Conor Nolan <conor.nolan@intel.com>
2019-08-14 06:22:56 +02:00
Sreemanti Ghosh
7c626a2a00
Add CPUManager tests for TopologyHint generation
...
Co-Authored-By: Conor Nolan <conor.nolan@intel.com>
Co-Authored-By: Kevin Klues <kklues@nvidia.com>
2019-08-14 06:22:56 +02:00
Kevin Klues
156b3f6af8
Generate TopologyHints from the CPUManager
2019-08-14 06:22:56 +02:00
Kevin Klues
9a6788cb13
Add IterateSocketMasks() function to socketmask abstraction
2019-08-14 06:22:56 +02:00
Eric Ernst
476c1c7a2b
kube-eviction: use common resource summation functions
...
Utilize resource helpers' GetResourceRequestQuantity instead of
duplicating the logic here.
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-08-13 16:23:28 -07:00
Seth Jennings
23b69cf02d
kubelet: add eviction counter to metrics
2019-08-13 15:21:38 -05:00
Kubernetes Prow Robot
c505bb9533
Merge pull request #80985 from ethan-daocloud/patch-6
...
fixup: correct file name in log message
2019-08-13 12:29:42 -07:00
Kubernetes Prow Robot
ac2295a24d
Merge pull request #78587 from kad/socketmask-string
...
Use go standard library for common bit operations
2019-08-13 00:03:39 -07:00
caiweidong
92851d213a
Use RWMutex in watchBasedManager
2019-08-13 13:09:21 +08:00
Kubernetes Prow Robot
76e19a1619
Merge pull request #81204 from codenrhoden/rename-hu-pathexists
...
Rename HostUtils.ExistsPath to PathExists
2019-08-12 20:12:12 -07:00
Kubernetes Prow Robot
56b5f8b47c
Merge pull request #80519 from ethan-daocloud/patch-1
...
fix typos in kubelet.go
2019-08-12 20:11:51 -07:00
Yuqi Wang
f82be3d3d0
Fix Container exit message lost due to FallbackToLogsOnError is not compatible with ContainerCannotRun
2019-08-12 16:15:59 +08:00
Kubernetes Prow Robot
46e58df837
Merge pull request #79578 from cezarsa/stable-node-images
...
kubelet: ensure stable order for images in node status
2019-08-10 08:59:12 -07:00
Kubernetes Prow Robot
c0997e8dc1
Merge pull request #81174 from answer1991/reduce-node-lease-get
...
reduce kubelet getting node lease
2019-08-10 02:59:26 -07:00
Ted Yu
3865e2b956
Set runtimeState when RuntimeReady is not set or false
2019-08-09 18:52:27 -07:00
Travis Rhoden
14e25b7c04
Rename HostUtils.ExistsPath to PathExists
2019-08-09 12:40:19 -06:00
Travis Rhoden
4574473753
Rename mount.NewOsExec to mount.NewOSExec
2019-08-09 12:30:56 -06:00
Bruce Ma
9903cb3ad3
add validation for CNI config before loading and fix some typo
...
1. add validation for CNI config before loading
2. make some CNI capabilities constants
3. add Capabilities field to cniNetwork struct
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-08-09 21:22:23 +08:00
chenjun.cj
acdac6e999
reduce kubelet getting node lease
2019-08-09 19:00:50 +08:00
Kubernetes Prow Robot
d47f9ff132
Merge pull request #81086 from dims/fix-incorrect-readlink-check-for-checking-kernel-pids
...
[TOB-K8S-027] Fix Incorrect isKernelPid check
2019-08-08 17:58:04 -07:00
draveness
495faa22db
feat: cleanup pod critical pod annotations feature
2019-08-09 08:41:23 +08:00
Kubernetes Prow Robot
aecc1e829c
Merge pull request #81083 from dims/fix-docker-daemon-process-name
...
[TOB-K8S-025] Incorrect docker daemon process name in container manager
2019-08-08 16:12:18 -07:00
Kubernetes Prow Robot
806ced34a4
Merge pull request #80491 from hpandeycodeit/static_pod_priority
...
Changed IsCriticalPod to return true in case of static pods
2019-08-08 16:11:39 -07:00
Johannes M. Scheuermann
a9cf6cec72
Correct typos in docs and add better explanation for burstrate
2019-08-08 22:11:40 +02:00
Johannes M. Scheuermann
cfb24eeebc
Update internal traffic shaping docs
2019-08-08 16:26:21 +02:00
Kubernetes Prow Robot
ef8869466c
Merge pull request #80978 from wojtek-t/selflink_deprecation
...
Deprecate SelfLink and introduce feature gate to disable its propagation
2019-08-08 03:47:20 -07:00
Himanshu Pandey
c05d506019
changed IsCriticalPod to return true in case of static pods
2019-08-07 15:47:43 -07:00
Kubernetes Prow Robot
4c315aa8d9
Merge pull request #78543 from cheftako/kas-np3
...
Get network-proxy working with GCE.
2019-08-07 14:44:44 -07:00
Davanum Srinivas
bd925d6611
[TOB-K8S-027] Fix Incorrect isKernelPid check
...
isKernelPid should explicitly check the error returned from os.Readlink and return true
only if the error value is ENOENT. Without this fix, if Readlink
returned say ENAMETOOLONG or EACESS, we would still count the process as
a kernel process (which is not true).
2019-08-07 11:19:19 -04:00
Davanum Srinivas
bc71c23bee
[TOB-K8S-025] Incorrect docker daemon process name in container manager
...
The container manager used in kubelet checks for docker daemon process either via pidfile
or process name. While the pidfile points to the docker daemon process PID, the
dockerProcessName constant stores a docker cli name ( docker ) instead of docker daemon
name ( dockerd ).
2019-08-07 10:59:37 -04:00
wojtekt
399d09ce4a
Fix GetReference function
2019-08-07 16:49:29 +02:00
Conor Nolan
e33af11add
Add stub support for TopologyManager to CPUManager
...
Co-Authored-By: Louise Daly <louise.m.daly@intel.com>
2019-08-07 15:56:05 +02:00
Walter Fender
ebb65c5f4c
Get network-proxy working with GCE.
...
Got the proxy-server coming up in the master.
Added certs and have it comiung up with those certs.
Added a daemonset to run the network-agent.
Adding support for agent running as a sameon set on every node.
Added quick hack to test that proxy server/agent were correctly
tunneling traffic to the kubelet.
Added more WIP for reading network proxy configuration.
Get flags set correctly and fix connection services.
Adding missing ApplyTo
Added ConnectivityService.
Fixed build directives. Added connectivity service configuration.
Fixed log levels.
Fixed minor issues for feature turned off.
Fixed boilerplate and format.
Moved log dialer initialization earlier as per Liggits suggestion.
Fixed a few minor issues in the configuration for GCE.
Fixed scheme allocation
Adding unit test.
Added test for direct connectivity service.
Switching to injecting the Lookup method rather than using a Singleton.
First round of mikedaneses feedback.
Fixed deployment to use yaml and other changes suggested by MikeDanese.
Switched network proxy server/agent which are kebab-case not camelCase.
Picked up DIAL_RSP fix.
Factored in deads2k feedback.
Feedback from mikedanese
Factored in second round of feedback from David.
Fix path in verify.
Factored in anfernee's feedback.
First part of lavalamps feedback.
Factored in more changes from lavalamp and mikedanese.
Renamed network-proxy to konnectivity-server and konnectivity-agent.
Fixed tolerations and config file checking.
Added missing strptr
Finished lavalamps requested rename.
Disambiguating konnectivity service by renaming it egress selector.
Switched feature flag to KUBE_ENABLE_EGRESS_VIA_KONNECTIVITY_SERVICE
2019-08-06 23:09:49 -07:00
Kubernetes Prow Robot
7f1ae0e32d
Merge pull request #80105 from ASankaran/dockershim-linux
...
Add ImageFSInfo, ContainerStats, and ListContainerStats impl for linux to dockershim
2019-08-06 18:14:51 -07:00
Kubernetes Prow Robot
663796e624
Merge pull request #78345 from obitech/fix_golint_pkg_kubelet_stats_client
...
Fix golint pkg/kubelet/stats/client.go
2019-08-06 13:14:49 -07:00
Kubernetes Prow Robot
345e58b434
Merge pull request #75071 from mkimuram/issue/74552e2e
...
Fix volume reconstruction and add e2e tests
2019-08-06 06:05:55 -07:00
Kubernetes Prow Robot
1fcd3d6bac
Merge pull request #80369 from jsafrane/dswp-error
...
Propagate errors from DSW to pod events
2019-08-05 15:08:16 -07:00
Kubernetes Prow Robot
cea34cc1a5
Merge pull request #75303 from obitech/fix_golint_failures_pkg_kubelet
...
Fix golint failures in some pkg/kubelet packages
2019-08-05 15:07:50 -07:00
Mark Janssen
e58b4d4324
Fix golint failures of pkg/kubelet/qos
2019-08-05 15:54:15 +02:00
ethan
d21e9a8747
fixup: correct file name in log message
2019-08-05 21:31:38 +08:00
Jan Safranek
c744385804
Add limit of stored errors
...
There should be a limit so the set of errors does not grow too much in
case of some bug in the populator.
2019-08-05 10:06:44 +02:00
Jianfei Bai
5726b22fbc
Move docker specific const to dockershim.
2019-08-05 10:28:08 +08:00
obitech
17d2ba0b3d
Re-import api/core/install for init function
2019-08-03 21:07:12 +02:00
obitech
a5bc997aa9
Fixed pull-kubernetes-verify issues
2019-08-03 21:07:12 +02:00
obitech
457972f1a4
Fix suggestions, track removed library in bazel
2019-08-03 21:07:12 +02:00
obitech
898c40a484
Fix golint failures in some pkg/kubelet packages
...
Fixed:
- pkg/kubelet/pod
- pkg/kubelet/metrics
- pkg/kubelet/configmap
- pkg/kubelet/config
2019-08-03 21:07:12 +02:00
Lee Verberne
b5d592e735
Simplify VisitContainers pattern in volumemanager populator
2019-08-03 14:13:46 +00:00
Kubernetes Prow Robot
c63000ef81
Merge pull request #78793 from mattjmcnaughton/mattjmcnaughton/78629-fix-reserved-cgroup-systemd
...
Fix reserved cgroup systemd
2019-08-02 17:23:52 -07:00
Lee Verberne
906286c743
Change order kubelet starts containers
...
This starts ephemeral containers prior to init containers so that
ephemeral containers will still be started when init containers fail to
start.
Also improves tests and comments with review suggestions.
2019-08-02 19:56:38 +00:00
Masaki Kimura
c130b77a48
Move nil check for mapperPlugin earlier in reconstructVolume
2019-08-01 20:36:21 +00:00
Jan Safranek
bab81b809b
Don't create mounter when reconstructing block volume
...
CSI mounter will create a new directory + json for a filesystem volume,
leading to even more orphaned files/directories.
2019-08-01 20:04:10 +00:00
Kubernetes Prow Robot
b91d64bfc1
Merge pull request #74423 from lmdaly/topology-manager-device-plugin-api-change
...
Device Plugin API change to include Topology Info in Devices
2019-08-01 11:52:31 -07:00
Kubernetes Prow Robot
93e6fb30f0
Merge pull request #74357 from lmdaly/topology-manager-container-manager
...
Updates to container manager and internal container lifecycle to accommodate TopologyManager
2019-08-01 11:52:17 -07:00
Dan Winship
81cd27a51e
iptables: simplify version handling
2019-08-01 12:05:31 -04:00
Kubernetes Prow Robot
e8559f7565
Merge pull request #75229 from andrewsykim/kubelet-node-address-external
...
kubelet: lookup node address for external provider if none is set
2019-08-01 08:16:16 -07:00
Kubernetes Prow Robot
0775e6b2db
Merge pull request #80591 from danwinship/no-localhost-snat
...
hostport: Don't masquerade localhost-to-localhost traffic
2019-07-31 22:36:50 -07:00
Kubernetes Prow Robot
1a8844cd03
Merge pull request #80683 from moshe010/rename_files
...
TopologyManager: Fix rename best-effort policy files
2019-07-31 00:25:00 -07:00
Kubernetes Prow Robot
4f15c017ea
Merge pull request #80657 from rphillips/fixes/log_metrics_add_uid
...
kubelet: add UID to kubelet_container_log_filesystem_used_bytes metric
2019-07-30 08:53:43 -07:00
Kubernetes Prow Robot
b4f6b0bf50
Merge pull request #79963 from RainbowMango/pr_fix_typo_for_informer
...
Fix go lint error for cache directory
2019-07-30 05:33:03 -07:00
Kubernetes Prow Robot
4c191fde89
Merge pull request #73829 from alculquicondor/fix/comment
...
Fix/Add comments on cadvisor implementations
2019-07-30 05:32:51 -07:00
Kubernetes Prow Robot
40b31794ab
Merge pull request #79623 from aaronbbrown/abb-quote-container-in-use
...
quote container name in container already use error matching
2019-07-30 03:35:31 -07:00
Kubernetes Prow Robot
320bc21dbe
Merge pull request #78762 from klueska/upstream-inherit-cpus-from-init-containers
...
Proactively remove init Containers in CPUManager static policy
2019-07-30 03:35:18 -07:00
Aldo Culquicondor
a626a2972e
Fix/Add comments on cadvisor implementations
...
Fix lint issues.
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2019-07-29 09:31:35 -04:00
Kubernetes Prow Robot
f18833ee58
Merge pull request #80429 from gaorong/expose-node-lease-renewal-frequency
...
kubelet: change node-lease-renew-interval to 0.25 of lease-renew-duration
2019-07-29 02:29:56 -07:00
Rong Gao
cda783699b
change node-lease-renew-interval to 0.25 of renew-duration
...
0.25 is a dedicated value to align before default value
of renew-interval but get more heuristic interval
2019-07-29 15:02:11 +08:00
Moshe Levi
3b83c5c7c6
TopologyManager: Fix rename best-effort policy files
...
PR https://github.com/kubernetes/kubernetes/pull/80301 rename
the preferred policy to best-effort, but the files names are
still policy_preferred.go and policy_preferred_test.go. This
PR fix that.
2019-07-28 19:35:16 +03:00
Kubernetes Prow Robot
23649560c0
Merge pull request #80301 from klueska/upstream-rename-topologymanager-preferred-best-effort
...
Rename 'preferred' TopologyManager policy to 'best-effort'
2019-07-27 09:25:56 -07:00
RainbowMango
0e0e1f7dab
1. Fix lint errors for the whole directory staging/src/k8s.io/client-go/tools/cache;
...
2. Remove staging/src/k8s.io/client-go/tools/cache from .golint_failures;
3. Fix some typo from comments.
2019-07-27 15:49:03 +08:00
Ryan Phillips
2bdf975d5b
kubelet: add UID to kubelet_container_log_filesystem_used_bytes metric
...
buildPodRef creates a unique key with the {podName, namespace, UID}
tuple. By omitting the UID in the metric, duplicate metrics can be sent
to prometheus causing 500's on the /metrics endpoint.
2019-07-26 14:59:43 -05:00
Kevin Klues
9f36f1a173
Add tests for proactive init Container removal in the CPUManager static policy
2019-07-26 14:34:51 +02:00
Kevin Klues
6a7db380de
Add tests for new containertMap type in the CPUManager
2019-07-26 14:34:51 +02:00
Kevin Klues
c6d9bbcb74
Proactively remove init Containers in CPUManager static policy
...
This patch fixes a bug in the CPUManager, whereby it doesn't honor the
"effective requests/limits" of a Pod as defined by:
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#resources
The rule states that a Pod’s "effective request/limit" for a resource
should be the larger of:
* The highest of any particular resource request or limit
defined on all init Containers
* The sum of all app Containers request/limit for a
resource
Moreover, the rule states that:
* The effective QoS tier is the same for init Containers
and app containers alike
This means that the resource requests of init Containers and app
Containers should be able to overlap, such that the larger of the two
becomes the "effective resource request/limit" for the Pod. Likewise,
if a QoS tier of "Guaranteed" is determined for the Pod, then both init
Containers and app Containers should run in this tier.
In its current implementation, the CPU manager honors the effective QoS
tier for both init and app containers, but doesn't honor the "effective
request/limit" correctly.
Instead, it treats the "effective request/limit" as:
* The sum of all init Containers plus the sum of all app
Containers request/limit for a resource
It does this by not proactively removing the CPUs given to previous init
containers when new containers are being created. In the worst case,
this causes the CPUManager to give non-overlapping CPUs to all
containers (whether init or app) in the "Guaranteed" QoS tier before any
of the containers in the Pod actually start.
This effectively blocks these Pods from running if the total number of
CPUs being requested across init and app Containers goes beyond the
limits of the system.
This patch fixes this problem by updating the CPUManager static policy
so that it proactively removes any guaranteed CPUs it has granted to
init Containers before allocating CPUs to app containers. Since all init
container are run sequentially, it also makes sure this proactive
removal happens for previous init containers when allocating CPUs to
later ones.
2019-07-26 14:34:51 +02:00
Louise Daly
674ecba935
Change Socket to Node
...
Change Node from int in TopologyInfo to type NUMANode which is an int
2019-07-26 06:35:48 +01:00
lmdaly
c1fb5bd508
Device Plugin API change to include Topology Info in Devices
2019-07-26 05:14:14 +01:00
Antoine Pelisse
6568325ca2
Regenerate
2019-07-25 11:54:00 -07:00
Dan Winship
bf077b19d4
hostport: Don't masquerade localhost-to-localhost traffic
2019-07-25 13:34:14 -04:00
Kevin Klues
7eccc71c9e
Rename 'preferred' TopologyManager policy to 'best-effort'
2019-07-25 10:44:36 +02:00
Kubernetes Prow Robot
70521fbf32
Merge pull request #80486 from liyanhui1228/systemuuid
...
Set the systemUUID for windows nodes
2019-07-24 13:50:33 -07:00
Lee Verberne
7bce18b0ce
Generated code for Ephemeral Containers in kubelet
2019-07-24 16:25:52 +00:00
Lee Verberne
ea212d5d49
Add support for ephemeral containers to the kubelet
2019-07-24 16:24:26 +00:00
ethan
5d1a42bbbc
fix typos in kubelet.go
2019-07-24 21:16:23 +08:00
Louise Daly
9f0081cc36
Updates to container manager and internal container lifecycle to accommodate Topology Manager
...
Co-authored-by: Conor Nolan <conor.nolan@intel.com>
2019-07-24 08:09:38 +01:00
Angela Li
6acc08508c
fix lint
2019-07-23 16:01:39 -07:00
Angela Li
e242bbe12c
Changed to use cmd for getting system uuid
2019-07-23 15:59:32 -07:00
Angela Li
e56db7d407
Move to getMachineInfo()
2019-07-23 13:25:12 -07:00
Kubernetes Prow Robot
5b496fe8f5
Merge pull request #80315 from klueska/upstream-cleanup-socketmask
...
Cleanup the TopologyManager socketmask abstraction
2019-07-23 11:40:28 -07:00
Kubernetes Prow Robot
304e2c247a
Merge pull request #80294 from klueska/upstream-fail-fast-cpumanager-topologymanager
...
Update the cpumanager and topologymanager to error out if an invalid policy is given
2019-07-23 11:40:14 -07:00
Angela Li
da966f33f4
Add unit test
2019-07-23 11:22:51 -07:00
Angela Li
7adb0a2656
Set the systemUUID for windows nodes
2019-07-23 10:59:24 -07:00
Kubernetes Prow Robot
04c9bd9bfa
Merge pull request #80176 from liyanhui1228/cpuusage
...
Add CPU usage nano cores for windows nodes
2019-07-22 13:52:53 -07:00
Angela Li
8851a42655
gofmt
2019-07-22 10:56:28 -07:00
Angela Li
e6e8615db3
address comments
2019-07-22 10:53:15 -07:00
Jan Safranek
af0c2fe572
Fix some error messages
2019-07-22 10:54:33 +02:00
Elana Hashman
e0b66c792b
Drop "pod_name" and "container_name" metric labels
...
These labels were deprecated in 1.14 (#69099 ) and should no longer be
used in metric queries.
2019-07-19 10:08:21 -07:00
Jan Safranek
17be780651
Add events to dswp
2019-07-19 17:46:21 +02:00
Kubernetes Prow Robot
96f02fd0a4
Merge pull request #80104 from mattjmcnaughton/mattjmcnaughton/image-manager-test-readability-improvements
...
Improve readability for image manager tests
2019-07-18 21:33:11 -07:00
Kubernetes Prow Robot
a5fcaa87f6
Merge pull request #80324 from tallclair/server-metrics
...
Register Kubelet server metrics
2019-07-18 19:31:49 -07:00
Kubernetes Prow Robot
49f6510d9a
Merge pull request #80277 from draveness/feature/revert-cleanup-critical-pod
...
Revert "feat: cleanup pod critical pod annotations feature"
2019-07-18 19:31:37 -07:00
Kubernetes Prow Robot
cff86e7861
Merge pull request #80234 from tallclair/kubelet-authz
...
Cleanup kubelet authz tests & make explicit
2019-07-18 19:31:12 -07:00
Kevin Klues
65b07312b0
Cleanup comments in TopologyManager socketmask abstraction
2019-07-18 18:52:19 -07:00
Angela Li
99a7a0a53b
fix gofmt
2019-07-18 16:15:39 -07:00
Angela Li
3764360ccc
Make kubelet report usageNanoCores for node on Windows
2019-07-18 15:20:53 -07:00
Tim Allclair
1eb5aed0dd
Register Kubelet server metrics
2019-07-18 14:29:59 -07:00
Tim Allclair
72951efdaf
Cleanup kubelet authz tests & make explicit
2019-07-18 13:35:11 -07:00
Kevin Klues
0edfd4be35
Add package level And/Or calls to TopologyManager socketmask abstraction
2019-07-18 09:06:51 -07:00
Kevin Klues
434fd34e0b
Add NewEmtpySocketMask() call to TopologyManager socketmask abstraction
2019-07-18 09:05:55 -07:00
mattjmcnaughton
1d2c96ad5e
Improve readability for image manager tests
...
Use named variables so boolean arguments are more readable.
2019-07-18 10:14:43 -04:00
Kubernetes Prow Robot
ab266f725f
Merge pull request #80173 from gaorong/node-lease-renew-interval
...
make node lease renew interval more heuristic
2019-07-18 07:08:11 -07:00
Kevin Klues
4ee5d5409e
Update the topologymanager to error out if an invalid policy is given
...
Previously, the topologymanager would simply fall back to the None() policy
if an invalid policy was specified. This patch updates this to return an
error when an invalid policy is passed, forcing the kubelet to fail
fast when this occurs.
These semantics should be preferable because an invalid policy likely
indicates operator error in setting the policy flag on the kubelet
correctly (e.g. misspelling 'strict' as 'striict'). In this case it is
better to fail fast so the operator can detect this and correct the
mistake, than to mask the error and essentially disable the
topologymanager unexpectedly.
2019-07-18 13:24:09 +02:00
Kevin Klues
5dc5f1de06
Update the cpumanager to error out if an invalid policy is given
...
Previously, the cpumanager would simply fall back to the None() policy
if an invalid policy was specified. This patch updates this to return an
error when an invalid policy is passed, forcing the kubelet to fail
fast when this occurs.
These semantics should be preferable because an invalid policy likely
indicates operator error in setting the policy flag on the kubelet
correctly (e.g. misspelling 'static' as 'statiic'). In this case it is
better to fail fast so the operator can detect this and correct the
mistake, than to mask the error and essentially disable the cpumanager
unexpectedly.
2019-07-18 13:24:09 +02:00
draveness
d83526d253
Revert "feat: cleanup pod critical pod annotations feature"
...
This reverts commit b6d41ee5cc
.
2019-07-18 13:31:12 +08:00
Kubernetes Prow Robot
1125054612
Merge pull request #80235 from moshe010/remove_string
...
Remove unnecessary string() from policy_none
2019-07-17 19:34:49 -07:00
Kubernetes Prow Robot
2b21e478b1
Merge pull request #79489 from bclau/feature/run-as-username
...
Adds WindowsOptions.RunAsUserName field
2019-07-17 19:34:24 -07:00
James Sturtevant
a8c78d1359
Windows: Sets the effective SecurityContext's RunAsUserName
...
Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
2019-07-17 15:03:11 +00:00
Rong Gao
95f3e64785
make node lease renew interval more heuristic
2019-07-17 20:57:21 +08:00
Louise Daly
9d7e31e66e
Topology Manager Implementation based on Interfaces
...
Co-authored-by: Kevin Klues <kklues@nvidia.com>
Co-authored-by: Conor Nolan <conor.nolan@intel.com>
Co-authored-by: Sreemanti Ghosh <sreemanti.ghosh@intel.com>
2019-07-17 02:30:21 +01:00
Kubernetes Prow Robot
74f371ce48
Merge pull request #75260 from jsafrane/fix-secret-timeout-msg
...
Fix message of failed sync
2019-07-16 17:36:33 -07:00
Moshe Levi
d52985d3a0
Remove unnecessary string() from policy_none
...
Signed-off-by: Moshe Levi <moshele@mellanox.com>
2019-07-17 01:58:43 +03:00
Kubernetes Prow Robot
c92e7b4980
Merge pull request #79989 from tedyu/kube-metric-del
...
Log warning if config labels deletion returns false
2019-07-16 13:23:00 -07:00
Kubernetes Prow Robot
4197adaf2d
Merge pull request #79343 from nolancon/topology-manager-none
...
Add Policy None for Topology Manager
2019-07-16 13:22:47 -07:00
Ted Yu
5d1bb99fcd
Log warning if config labels deletion returns false
2019-07-16 09:46:12 -07:00
Kubernetes Prow Robot
7c90f7d96c
Merge pull request #77686 from tedyu/preempt-qty
...
Break out of inner loop when newQuantity is negative in admissionRequirementList#subtract
2019-07-15 14:53:37 -07:00
Kubernetes Prow Robot
80537a9c5f
Merge pull request #77323 from tedyu/cgroup-mgr-linux
...
Check error return from Update
2019-07-15 14:53:24 -07:00
Arnav Sankaran
0c1d6d330f
Run gofmt
2019-07-15 09:58:09 -07:00
Arnav Sankaran
82b6b19173
Add test for ContainerStats
2019-07-15 09:57:21 -07:00
Arnav Sankaran
cd8d8f2dce
Add tracing to GetContainerStats
2019-07-15 09:56:55 -07:00
Arnav Sankaran
2cfc85c8b3
Fix compile on non windows linux systems
2019-07-15 09:04:22 -07:00
Arnav Sankaran
9ed8340306
Removed duplicate code
2019-07-15 08:41:06 -07:00
Arnav Sankaran
5a26fe5696
Rename unused variable
2019-07-15 08:26:49 -07:00
Arnav Sankaran
db8e47a965
Run gofmt
2019-07-15 08:24:51 -07:00
wojtekt
93d7feb8a2
Fix kubelet watches to propagate all options
2019-07-15 12:49:45 +02:00
Ted Yu
0ec1f85b47
Break out of inner loop when newQuantity is negative
2019-07-12 09:40:22 -07:00
Arnav Sankaran
0d907e015b
Add ImageFSInfo, ContainerStats, and ListContainerStats impl for linux to dockershim
2019-07-12 08:44:54 -07:00
Kubernetes Prow Robot
642a06e552
Merge pull request #79554 from draveness/feature/remove-critical-pod-annotation
...
feat: cleanup pod critical pod annotations feature
2019-07-11 22:03:04 -07:00
Kubernetes Prow Robot
923f08e29b
Merge pull request #79900 from mikebrow/todo-cleanup-container-manager-linux
...
update code documentation to reflect change in status
2019-07-11 18:33:35 -07:00
Kubernetes Prow Robot
00fe158623
Merge pull request #78414 from tedyu/hdl-pod-addition
...
Check limits for resolve conf outside the loop
2019-07-11 18:33:22 -07:00
Kubernetes Prow Robot
fc9db7a042
Merge pull request #79681 from tedyu/clean-pods-param
...
Pass desiredPods to CleanupPods
2019-07-11 17:01:47 -07:00
Kubernetes Prow Robot
920ac08361
Merge pull request #76518 from haiyanmeng/limit
...
Limit the read length of ioutil.ReadAll in `pkg/kubelet` and `pkg/probe`
2019-07-11 17:01:07 -07:00
Kubernetes Prow Robot
1c99825adf
Merge pull request #79566 from sukeesh/auditlog
...
Cleanup: Audit log and error capitalization
2019-07-11 14:33:59 -07:00
Kubernetes Prow Robot
becf718143
Merge pull request #78368 from tedyu/evict-sandboxes
...
Call getKubeletSandboxes first in containerGC#evictSandboxes
2019-07-11 14:33:21 -07:00
Kubernetes Prow Robot
f0d1b10092
Merge pull request #77429 from tedyu/container-linux-err
...
Avoid unnecessary concatenation of errors
2019-07-11 14:33:08 -07:00
Haiyan Meng
1f270ef4e2
Limit the read length of ioutil.ReadAll in pkg/kubelet
and pkg/probe
...
Signed-off-by: Haiyan Meng <haiyanmeng@google.com>
2019-07-11 13:18:06 -07:00
Kubernetes Prow Robot
d4d8daea73
Merge pull request #78558 from tedyu/policy-str
...
Remove unnecessary string()
2019-07-11 13:13:06 -07:00
Kubernetes Prow Robot
b168ab1f99
Merge pull request #79892 from mikebrow/todo-cleanup-status-manager
...
update code docs around old todo that is not going to happen
2019-07-10 21:39:33 -07:00
draveness
b6d41ee5cc
feat: cleanup pod critical pod annotations feature
2019-07-11 08:54:19 +08:00
Brian Goff
45b0261290
Use EPOLL/O_CLOEXEC in evicition notifier
...
This prevents fd's from leaking to subprocesses.
2019-07-09 10:03:31 -07:00
Kubernetes Prow Robot
858fce1634
Merge pull request #79531 from odinuge/kubelet-dead-code
...
Remove unnecessary variable declaration
2019-07-08 14:28:01 -07:00
Kubernetes Prow Robot
2309b584ee
Merge pull request #79017 from sttts/sttts-apiserver-healthz-stack-trace
...
apiserver: don't log stack trace on /healthz error
2019-07-08 14:27:48 -07:00
Mike Brown
6da266784a
update code documentation to reflect change in status
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2019-07-08 16:15:59 -05:00
Mike Brown
7b6bb58f3a
update code docs around old todo that is not going to happen
...
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
2019-07-08 09:24:50 -05:00
Sukeesh
346fdbccf0
Cleanup: Audit log and error capitalization
2019-07-08 20:20:12 +09:00
Kubernetes Prow Robot
8482582094
Merge pull request #79700 from khenidak/fix-downward
...
kubelet: fix ip reporting for downward api
2019-07-03 16:46:13 -07:00
Kubernetes Prow Robot
bbef01a202
Merge pull request #74411 from nolancon/topology-manager-flags-feature-gate
...
Add feature gate and kubelet flags for Topology Manager
2019-07-03 15:16:13 -07:00
tiffany jernigan
27a0d91f2d
Remove lazy provide from credential provider and kubelet ( #79674 )
...
* Remove LazyProvide from kubelet
* Remove LazyProvide from cloud providers
* Remove LazyProvide from credential provider keyring and provider
2019-07-03 13:52:52 -07:00
Kubernetes Prow Robot
8f7bb1fe71
Merge pull request #79321 from shufanhao/fix_golint_issue_for_network
...
Fix golint failure in pkg/kubelet/dockershim/network/cni
2019-07-03 13:52:26 -07:00
Kubernetes Prow Robot
03aeab967a
Merge pull request #79306 from vllry/gogo-dep-tag
...
Updated github.com/gogo/protobuf from v0.5 SHA to v1.0.0 tag
2019-07-03 12:29:39 -07:00
Kubernetes Prow Robot
2a82853614
Merge pull request #72420 from Pingan2017/cleanup-outofdisk
...
clean up redundant conditiontype ‘OutOfDisk’
2019-07-03 09:12:33 -07:00
Pingan2017
e94d7b3802
clean up redundant conditiontype OutOfDisk
2019-07-03 14:34:52 +08:00
Khaled Henidak(Kal)
491804001c
kubelet: fix ip reporting for downward api
2019-07-03 05:12:39 +00:00
fanhao01
24a95a6c3e
Fix golint failure in pkg/kubelet/dockershim/network/cni
2019-07-03 12:57:24 +08:00
Vallery Lancey
fe59ee8aaf
Updated github.com/gogo/protobuf from SHA to nearest-pinnable tag (v1.0.0), as part of dependency management cleanup: #79234
2019-07-02 21:44:06 -07:00
Kubernetes Prow Robot
c8cee54240
Merge pull request #79391 from danwinship/nodeaddresses-update-fix
...
Don't use strategic merge patch on Node.Status.Addresses
2019-07-02 21:08:29 -07:00
Kubernetes Prow Robot
090e5233f2
Merge pull request #72974 from sjenning/sysctl-kubeconfig
...
kubelet: add allowed sysctl to KubeletConfiguration
2019-07-02 19:58:29 -07:00
Ted Yu
2242e396d4
Pass desiredPods to CleanupPods
2019-07-03 10:35:13 +08:00
Dan Winship
05a9634fb3
Hack PatchNodeStatus() to override the patch type on Status.Addresses
2019-07-02 19:16:30 -04:00
Khaled Henidak(Kal)
dba434c4ba
kubenet for ipv6 dualstack
2019-07-02 22:26:25 +00:00
Seth Jennings
0c7ce5a7d7
kubelet: add allowed sysctl to KubeletConfiguration
2019-07-02 12:19:47 -05:00
nolancon
705f97e171
Enable feature gate and kubelet flags for Topology Manager
...
Nit: remove capitalization of preferred
Remove line from kubelet and add to separate PR for easier merge
nit: dependency added to separate PR
Add check to ensure strict policy cannot be set without feature gate enabled
Topology Manager runs "none" policy by default.
Added constants for policies and updated documentation.
2019-07-02 06:50:17 +01:00
Kubernetes Prow Robot
6f73ab2219
Merge pull request #78908 from dcbw/cni-0.7.1-snapshot
...
vendor: bump CNI to v0.7.1 snapshot
2019-07-01 21:33:21 -07:00
Kubernetes Prow Robot
cdddcf9b48
Merge pull request #71170 from atlassian/rand-cleanup2
...
Cleanup math/rand package usage
2019-07-01 21:33:08 -07:00
Kubernetes Prow Robot
dcd57c9e5e
Merge pull request #79076 from draveness/feature/read-nodes-from-scheduler-cache
...
fix: predicates read nodes from scheduler cache
2019-07-01 15:09:33 -07:00
Aaron Brown
d1066ead3f
quote container name in container already use error matching
...
https://github.com/moby/moby/pull/27510 switched the container already
in use message from a bare string to a quoted string, so the
auto-deletion of "in use" containers no longer works in Docker > 17.04.
2019-07-01 17:37:35 -04:00
Dan Williams
8739ade3fa
kubelet: add CNI cache dir option and plumb through to CNI and kubenet
...
libcni 0.7.0 caches ADD operation results and allows the runtime to
retrieve these from the cache. In case the user wants a different
cache directory than the defaul, plumb that through like we do
for --cni-bin-dir and --cni-conf-dir.
2019-07-01 12:14:07 -05:00
Alexey Perevalov
a2ea2996f3
move to libcni 0.7.0
...
Previous commit "Use ip address from CNI output" introduces
ability to run pod which can havn't eth0. But also it
add problem: after kubelet restart, if we have already started
pod w/o eth0, kubelet can't find proper interface (it's
normal for vhostuser type of cni plugin when eth0 doesn't exist)
and kubelet restarts "broken" pod.
Fix of this issue requeres new feature of libcni - caching
results.
Looks like new libcni requires cniVersion in CNI output.
This patch specifies version both for CNI conf and CNI output.
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
2019-07-01 12:14:06 -05:00
Cezar Sa Espinola
d96c2f63e9
kubelet: ensure stable order for images in node status
...
By using the image ID as part of the sort function we ensure a stable
order even for images with the same size.
2019-07-01 11:23:24 -03:00
Kubernetes Prow Robot
6a2d0f67d1
Merge pull request #79527 from wojtek-t/cleanup_etcd_dir_1
...
Cleanup etcd code
2019-06-29 07:37:22 -07:00
wojtekt
cba13eb9ad
Autogenerate code
2019-06-29 15:26:09 +02:00
Kubernetes Prow Robot
ca6113fb8b
Merge pull request #78495 from odinuge/cgroups-hugetlb
...
Fix cgroup hugetlb size prefix for kB
2019-06-28 16:09:29 -07:00
Kubernetes Prow Robot
2501a9083d
Merge pull request #68513 from codenrhoden/mount-refactor
...
Refactor util/mount interface in prep for moving out of k/k
2019-06-28 13:57:28 -07:00
Odin Ugedal
4ee5fe23e8
Fix cgroup hugetlb size prefix for kB
...
Use the exported list from runc that uses "KB" and not "kB".
This issue breaks kubelet on AArch64 (arm 64).
var HugePageSizeUnitList = []string{"B", "KB", "MB", "GB", "TB", "PB"}
The hugetlb cgroup control files (introduced here in 2012:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=abb8206cb0773 )
use "KB" and not "kB"
(https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/hugetlb_cgroup.c?h=v5.0#n349 ).
The behavior in the kernel has not changed since the introduction, and
the current code using "kB" will therefore fail on devices with huge
pages smaller than 1MiB. This is the case for AArch64.
As seen from the code in "mem_fmt" inside hugetlb_cgroup.c, only "KB",
"MB" and "GB" are used, so the others may be removed as well.
Here is a real world example of the files inside the
"/sys/kernel/mm/hugepages/" directory:
- "hugepages-64kB"
- "hugepages-2048kB"
- "hugepages-32768kB"
- "hugepages-1048576kB"
And the corresponding cgroup files:
- "hugetlb.64KB._____"
- "hugetlb.2MB._____"
- "hugetlb.32MB._____"
- "hugetlb.1GB._____"
Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-06-28 21:28:26 +02:00
Odin Ugedal
2bcdb944f0
Update dependency opencontainer/runc
2019-06-28 21:23:05 +02:00
wojtekt
fd819f8fdc
Move APIObjectVersioner
2019-06-28 21:16:49 +02:00
draveness
30b0f8bf3b
fix: predicates read nodes from scheduler cache
2019-06-29 02:34:08 +08:00
Odin Ugedal
9c2aa843bd
Remove unnecessary variable declaration
2019-06-28 18:03:23 +02:00
Kubernetes Prow Robot
dfb7748542
Merge pull request #78347 from obitech/fix_golint_pkg_kubelet_prober
...
Fix golint issues in pkg/kubelet/{prober,secret}
2019-06-27 17:43:21 -07:00
Kubernetes Prow Robot
f3a03f71af
Merge pull request #79473 from wojtek-t/coordination_v1
...
Use coordination v1 API
2019-06-27 15:30:14 -07:00
Kubernetes Prow Robot
b51f62186a
Merge pull request #79451 from yujuhong/fix-pod-restarts
...
kubelet: retry pod sandbox creation when containers were never created
2019-06-27 15:30:01 -07:00
wojtekt
e8ca50c43c
Use coordination v1 API
2019-06-27 18:08:40 +02:00
Kubernetes Prow Robot
f20876908f
Merge pull request #79341 from krzysied/kubelet_lease_fix
...
Handling OptimisticLockError in kubelet node lease controller
2019-06-27 05:53:24 -07:00
Krzysztof Siedlecki
d45197a8b0
handling OptimisticLockError in kubelet
2019-06-27 13:44:09 +02:00
Yu-Ju Hong
3fac48f86a
kubelet: retry pod sandbox creation when containers were never created
...
If kubelet never gets past sandbox creation (i.e., never attempted to
create containers for a pod), it should retry the sandbox creation on
failure, regardless of the restart policy of the pod.
2019-06-26 18:19:27 -07:00
Dr. Stefan Schimanski
e848eaa566
apiserver: store httplog in context
2019-06-26 18:33:19 +02:00
Kubernetes Prow Robot
c64f81d082
Merge pull request #78653 from sjenning/add-sjenning-owners
...
kubelet: add sjenning to kubelet subdirectory owners files
2019-06-25 14:47:15 -07:00
nolancon
2d7ac702d6
Add Policy None for Topology Manager
...
Update naming of test functions.
2019-06-25 03:24:31 +01:00
Kubernetes Prow Robot
231033bd15
Merge pull request #79148 from RobertKrawitz/mirror-pod-delete-loop-fix
...
Issue 79147: Do not delete an incorrect pod when replacing a mirror pod
2019-06-24 11:24:02 -07:00
Kubernetes Prow Robot
2a366773e9
Merge pull request #76281 from zgfh/patch-5
...
fix typo: "inidvidual"-> "individual"
2019-06-24 11:23:50 -07:00
Kubernetes Prow Robot
2109c1a7a3
Merge pull request #79310 from draveness/feature/cleanup-KubeletPluginsWatcher-feature-gates
...
feat: cleanup feature gates for KubeletPluginsWatcher
2019-06-23 23:04:09 -07:00
Kubernetes Prow Robot
8ce45b642e
Merge pull request #79262 from draveness/feature/graduate-pod-priority-to-ga
...
feat: cleanup PodPriority features gate
2019-06-23 02:45:54 -07:00
draveness
35bc5dc6b6
feat: cleanup feature gates for KubeletPluginsWatcher
2019-06-23 16:59:36 +08:00
draveness
ca6003bc75
feat: cleanup PodPriority features gate
2019-06-23 11:57:24 +08:00
Kubernetes Prow Robot
caf6b67ce2
Merge pull request #79073 from rafatio/cgroup-pid-not-required
...
Ignore cgroup pid support if related feature gates are disabled
2019-06-21 18:52:50 -07:00
Kubernetes Prow Robot
5c61d51a32
Merge pull request #79104 from avorima/refactor_vol_resize_unit_tests
...
Refactor online volume resize unit tests
2019-06-21 12:16:52 -07:00
Robert Krawitz
12713b3ee4
Do not delete an incorrect pod when replacing a mirror pod
2019-06-20 23:02:16 -04:00
obitech
cbdfccc9f8
Fix golint issues in pkg/kubelet/secret
2019-06-20 19:56:29 +02:00
obitech
b767b1b250
Fix golint issues in pkg/kubelet/prober/results
2019-06-20 19:55:15 +02:00
obitech
897e8c0de6
Fix golint issues in pkg/kubelet/prober
2019-06-20 19:55:14 +02:00
Kubernetes Prow Robot
40a2927bcc
Merge pull request #78031 from mattjmcnaughton/mattjmcnaughton/cleanup-probe-http
...
Code cleanup for for probe/http
2019-06-19 18:36:48 -07:00
Kubernetes Prow Robot
9988239125
Merge pull request #79011 from cwdsuzhou/June/remove_useless_returned_value
...
Remove returned value of func handleCreateEvent
2019-06-18 06:04:20 -07:00
Mario Valderrama
a44b754405
Refactor online volume resize unit tests
2019-06-17 18:24:22 +02:00
Kubernetes Prow Robot
2dc0c01068
Merge pull request #78222 from humblec/volume_stats
...
Fix nil pointer dereference in metrics value calculator.
2019-06-17 04:36:11 -07:00
Kubernetes Prow Robot
08b4d4b371
Merge pull request #78335 from mysunshine92/remove-unused-events
...
remove unused events in event.go
2019-06-15 22:54:09 -07:00
rafatio
08c258add9
Ignore cgroup pid support if related feature gates are disabled
2019-06-15 18:45:27 -03:00
mattjmcnaughton
46267759bc
Code cleanup for for probe/http
...
Two small code cleanup changes for `probe/http`.
- Tests name the `followNonLocalRedirects` variable before passing to
`New`, so its clear what the boolean flag in the construct impacts.
- Change import name from `httprobe` to `httpprobe` when used by
`pkg/kubelet/prober/prober.go`. Establishes consistency with other uses
in the repo.
2019-06-15 12:09:00 -04:00
Kubernetes Prow Robot
6602f61596
Merge pull request #79002 from jiayingz/add-cadvisor-metrics
...
Enable cadvisor ProcessMetrics collecting.
2019-06-15 08:53:04 -07:00
Kubernetes Prow Robot
480457994d
Merge pull request #78015 from SataQiu/fix-golint-kubelet-20190517
...
Fix golint failures of pkg/kubelet/configmap pkg/kubelet/custommetrics
2019-06-15 00:46:09 -07:00
Kubernetes Prow Robot
ec02afb46e
Merge pull request #78777 from tedyu/preempt-bench
...
Use no-priority best-effort pod as the preemptor in BenchmarkGetPodsToPreempt
2019-06-14 16:51:00 -07:00
Kubernetes Prow Robot
145232c1a0
Merge pull request #78673 from tedyu/threshold-min-reclaim
...
Remove inner loop for finding MinReclaim in ParseThresholdConfig
2019-06-14 13:27:02 -07:00
Kubernetes Prow Robot
51164f11ae
Merge pull request #78603 from Random-Liu/fix-image-status
...
Fix image status
2019-06-14 13:26:22 -07:00
Travis Rhoden
be7da5052f
Refactor pkg/util/mount to be more reusable
...
This patch refactors pkg/util/mount to be more usable outside of
Kubernetes. This is done by refactoring mount.Interface to only contain
methods that are not K8s specific. Methods that are not relevant to
basic mount activities but still have OS-specific implementations are
now found in a mount.HostUtils interface.
2019-06-14 09:35:18 -06:00
Kubernetes Prow Robot
11abb58a5b
Merge pull request #78626 from tedyu/img-cache-mutex
...
Use Mutex for synchronization in imageCache
2019-06-14 07:59:18 -07:00
Kubernetes Prow Robot
3fc21aff76
Merge pull request #78624 from tedyu/evict-mgr-threshold
...
Iterate through thresholds in managerImpl#synchronize
2019-06-14 07:59:05 -07:00
Kubernetes Prow Robot
a08084d475
Merge pull request #78571 from SataQiu/fix-golint-kubelet-20190531
...
Fix golint failures of pkg/kubelet/prober pkg/kubelet/secret
2019-06-14 05:32:51 -07:00
Kubernetes Prow Robot
2bfcdc6601
Merge pull request #78559 from mysunshine92/fix-typo-retrieve
...
fix typo in /pkg/kubelet/container/cache.go
2019-06-14 05:32:38 -07:00
Kubernetes Prow Robot
b2be0753dd
Merge pull request #78493 from tedyu/ignore-pod-kill-err
...
Continue admitting the pod regardless of return value from killPodFunc
2019-06-14 04:09:00 -07:00
Kubernetes Prow Robot
d30fbab4b8
Merge pull request #77915 from SataQiu/fix-golint-util-20190515
...
Fix golint failures of pkg/util/parsers pkg/util/sysctl pkg/util/system
2019-06-14 00:29:00 -07:00
caiweidong
017aad3b60
Remove returned value of func handleCreateEvent
2019-06-14 15:27:59 +08:00
Jiaying Zhang
edcfdc4cbf
Enable cadvisor ProcessMetrics collecting.
2019-06-13 16:21:24 -07:00
mattjmcnaughton
5539e61032
Fix reserved cgroup systemd
...
Fix an issue in which, when trying to specify the `--kube-reserved-cgroup`
(or `--system-reserved-cgroup`) with `--cgroup-driver=systemd`, we will
not properly convert the `systemd` cgroup name into the internal cgroup
name that k8s expects. Without this change, specifying
`--kube-reserved-cgroup=/test.slice --cgroup-driver=systemd` will fail,
and only `--kube-reserved-cgroup=/test --crgroup-driver=systemd` will succeed,
even if the actual cgroup existing on the host is `/test.slice`.
Additionally, add light unit testing of our process from converting to a
systemd cgroup name to kubernetes internal cgroup name.
2019-06-07 10:48:42 -04:00
Ted Yu
22556aed17
Use no-priority best-effort pod as the preemptor in BenchmarkGetPodsToPreempt
2019-06-06 14:51:53 -07:00
goodluckbot
8a7aaad6bd
Fix log level for runtime error in kubelet.go
2019-06-05 16:41:08 +08:00
David Ashpole
80ed28b15b
disable kubelet local endpoints on windows
2019-06-04 14:07:10 -07:00
Lantao Liu
e27b263f37
Support image status by ID.
2019-06-04 11:34:38 -07:00
Ted Yu
f7d9e037d9
Remove inner loop for finding MinReclaim in ParseThresholdConfig
2019-06-03 19:20:19 -07:00
Kubernetes Prow Robot
e0ae55059d
Merge pull request #78592 from tedyu/plugin-mgr
...
Use read lock for reconciler#getHandlers and clean up for the pluginmanager
2019-06-03 18:17:14 -07:00
Ted Yu
19c91a59ab
Iterate through thresholds in managerImpl#synchronize
2019-06-03 13:16:09 -07:00
qingsenLi
94e4f27725
Delete the redundant define test
2019-06-04 01:13:09 +08:00
Hemant Kumar
0f62e3fbe8
Make language of error msgs and func names consistent: ExpandVolumeInUse
...
change feature flag
Fix the e2e test for online and offline expansion
2019-06-03 12:26:56 -04:00
Seth Jennings
89dc2c65e4
kubelet: add sjenning to kubelet subdirectory owners files
2019-06-03 08:26:24 -05:00
Kubernetes Prow Robot
acb321e614
Merge pull request #78594 from benmoss/windows-kubelet-memory-leak
...
Fix memory leak from not closing hcs containers
2019-06-03 04:40:20 -07:00
Ben Moss
1fcad1b4ab
Fix memory leak from not closing hcs container handles
2019-06-02 10:52:07 -04:00
Ted Yu
f6edee0fe1
Use Mutex for synchronization in imageCache
2019-06-01 15:48:55 -07:00
Alexander Kanevskiy
89481f8c27
Use go standard library for common bit operations
...
PR#72913 introduced own versions of the bit operations that are
less efficient than ones from standard library.
2019-06-01 19:54:38 +03:00
Kubernetes Prow Robot
9ac58bae56
Merge pull request #78515 from klueska/upstream-socketmask-updates
...
Updates to the SocketMask abstraction for the TopologyManager
2019-06-01 09:50:16 -07:00
Kubernetes Prow Robot
46c74629cf
Merge pull request #78516 from klueska/upstream-topology-manager-interface-updates
...
Update the TopologyManager interfaces
2019-06-01 08:00:19 -07:00
Kubernetes Prow Robot
6b6bdc760a
Merge pull request #78504 from dashpole/deprecate_cadvisor_json
...
Add kubelet flag to disable cadvisor json apis, and mark it deprecrated
2019-06-01 04:44:55 -07:00
Kubernetes Prow Robot
162912e12a
Merge pull request #78496 from dashpole/dashpole_owners
...
Add dashpole to kubelet subdirectory owners files
2019-06-01 02:55:07 -07:00
Kubernetes Prow Robot
408735e9da
Merge pull request #77975 from logicalhan/process-metrics
...
add process start time metric to metric probes since they use counters
2019-05-31 20:45:01 -07:00
Kubernetes Prow Robot
89ae84d478
Merge pull request #75479 from pivotal-k8s/windows-portforward
...
Implement port forwarding for windows
2019-05-31 19:22:20 -07:00
Kubernetes Prow Robot
fc005789c1
Merge pull request #77274 from RenaudWasTaken/kubeletpodresources-beta
...
Graduate 3rd party device monitoring plugins to beta!
2019-05-31 10:58:26 -07:00
Ted Yu
ff83754a6b
Use read lock for reconciler#getHandlers
2019-05-31 10:39:14 -07:00
Kubernetes Prow Robot
fe37733a12
Merge pull request #73891 from taragu/plugin-manager
...
Add kubelet plugin manager
2019-05-31 07:12:29 -07:00
Ben Moss
202841dfe3
Implement port forwarding for windows
...
On Windows the only way to access the container's network interfaces is
by running another process in the pod from which we can use a
netcat-like program to proxy the TCP stream
Proposed wincat.exe can be found here: https://github.com/benmoss/wincat
2019-05-31 09:20:27 -04:00
yameiwang
abda563ce2
fix typo in /pkg/kubelet/container
2019-05-31 18:50:39 +08:00
SataQiu
c6a0f820d8
fix golint failures of pkg/kubelet/prober pkg/kubelet/secret
2019-05-31 17:08:53 +08:00
Kubernetes Prow Robot
f49fe2a750
Merge pull request #72787 from dashpole/cadvisor_prefix_whitelist
...
Only collect metrics for cgroups required by the summary API
2019-05-31 00:28:26 -07:00
Kubernetes Prow Robot
cf76868b34
Merge pull request #66928 from RobertKrawitz/ephemeral-storage-quota-exp
...
Ephemeral storage monitoring via filesystem quotas
2019-05-30 20:44:26 -07:00
Ted Yu
1a755d13a6
Remove unnecessary string()
2019-05-30 19:48:26 -07:00
Tara Gu
5e18554442
Implement plugin manager - a controller that manages plugin registration/unregistration
2019-05-30 19:00:59 -04:00
Ted Yu
4979686a81
Check limits for resolve conf outside the loop
2019-05-30 13:51:36 -07:00
Renaud Gaubert
a03d2d4d4e
Fix improper cleanup when creating a unix socket
2019-05-30 13:21:37 -07:00
Ted Yu
132556e13a
Continue admitting the pod regardless of return value from killPodFunc
2019-05-30 11:36:34 -07:00
David Ashpole
785d40923a
add kubelet flag to disable cadvisor json apis, and mark it deprecrated
2019-05-30 10:39:45 -07:00
yameiwang
91b5af0608
remove unused events in event.go
2019-05-30 22:01:19 +08:00
Kevin Klues
0a43d21c26
Add IsNarrowerThan() function to socketmask abstraction
2019-05-30 06:00:22 -07:00
Kevin Klues
617a1fa394
Update the TopologyManager interfaces
...
These updates are based on discussions had about the preferred semantics
of the TopologyManager and will be reflected in changes to an upcoming
PR that adds the actual TopologyManager implementation.
2019-05-30 05:52:11 -07:00
Kevin Klues
cdb59d3c7a
Fix incorrect names for tests in socketmask
2019-05-30 04:16:53 -07:00
nolancon
0244c0e658
remove dependency on implementation from policy preferred and strict
...
update build
2019-05-30 05:57:39 +01:00
nolancon
ef9baf313d
Update unit tests for TopologyHints - Topology Manager Policies
2019-05-30 05:44:01 +01:00
nolancon
e82fa41fb2
More Intuitive TopologyHints - topology manager policies
2019-05-30 05:44:01 +01:00
Sreemanti Ghosh
4e503597b8
Unit test for Topology Manager policy_strict and policy_preferred
2019-05-30 05:44:01 +01:00
nolancon
eff568e496
Add Policies Strict and Preferred for Topology Manager
2019-05-30 05:44:01 +01:00
Kubernetes Prow Robot
68f728a89e
Merge pull request #78375 from mysunshine92/remove-unused-events-2
...
delete unused events
2019-05-29 21:29:08 -07:00
Ted Yu
c46ec66a1f
Avoid unnecessary concatenation of errors
2019-05-29 17:25:53 -07:00
David Ashpole
a95cf017e1
add dashpole to kubelet owners files
2019-05-29 13:33:48 -07:00
Robert Krawitz
38753efcc7
Set sizeLimit to the smaller of the ephemeral storage limit and the emptydir limit (if set)
2019-05-29 15:17:47 -04:00
Robert Krawitz
f8661d6240
Use xfs_quota command to apply quotas
2019-05-29 15:12:28 -04:00
Robert Krawitz
448e0c44c6
Apply quotas via syscalls using cgo.
2019-05-29 15:12:28 -04:00
Robert Krawitz
5b97b2860d
Change fsGroup to mounterArgs in volume.SetUp() to allow for future extension.
2019-05-29 15:12:28 -04:00
Kubernetes Prow Robot
38468e4338
Merge pull request #70536 from mysunshine92/golint-hostpath
...
fix golint for pkg/volume/host_path
2019-05-29 11:25:46 -07:00
Kubernetes Prow Robot
9ca472da03
Merge pull request #72885 from lmdaly/topology-manager-interfaces
...
Add Topology Manager Interfaces
2019-05-29 09:44:25 -07:00
Kubernetes Prow Robot
f0812288a9
Merge pull request #78303 from mysunshine92/fix-typo-0524
...
fix some spelling error
2019-05-29 05:33:42 -07:00
lmdaly
c1a4457573
Update Bazel files to include SocketMask
2019-05-29 02:21:51 +01:00
Conor Nolan
d99bac12e6
Update Remove/AddPod to Container ( #26 )
...
More intuitive TopologyHints
2019-05-29 02:11:15 +01:00
lmdaly
e64c558a11
Added BUILD files and updates to Boilerplates
2019-05-29 02:11:15 +01:00
lmdaly
71bbc6d538
Add Topology Manager Interfaces
...
*Topology Manager
*Policy
2019-05-29 02:10:46 +01:00
yameiwang
af24f2a507
delete unused events
2019-05-29 06:52:11 +08:00
Kubernetes Prow Robot
3b4473f45a
Merge pull request #72913 from nolancon/topology-manager-socket-mask
...
Add Socket Mask for Topology Manager
2019-05-28 10:58:41 -07:00
Ted Yu
3f043dd8a0
Sort init container statuses using non-nested loop
2019-05-28 07:51:30 -07:00
nolancon
b7f6b8f8f1
Updated unit test for socketmask
2019-05-28 05:00:04 +01:00
obitech
5efe2c1bb7
Fix golint issues in pkg/kubelet/stats/log_metrics_provider.go
2019-05-27 22:03:21 +02:00
obitech
16d64d6925
Fix golint issues in pkg/kubelet/client
...
Add comments to exported functions in `pkg/kubelet/client/client.go`
In `KubeletClientConfig` rename `EnableHttps` to `EnableHTTPS`. This requires
renaming it in `pkg/kubelet/client/client_test.go`
2019-05-27 22:03:21 +02:00
Humble Chirammal
cada0270fe
Fix nil pointer dereference in metrics value calculator.
...
The metrics structure passed to volume stat calculator
can contain real stats on subset of metrics fields. For example,
the metrics structure filled by a CSI driver can have
either INODES or BYTES filled, IOW it a valid return.
In such cases the volume stat calculator panic with below
trace:
0516 21:36:19.013143 14452 runtime.go:69] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:76
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/panic.go:522
/usr/local/go/src/runtime/panic.go:82
/usr/local/go/src/runtime/signal_unix.go:390
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go:697
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go:685
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/kubelet/server/stats/volume_stat_calculator.go:144
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/kubelet/server/stats/volume_stat_calculator.go:125
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/pkg/kubelet/server/stats/volume_stat_calculator.go:65
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152
/home/hchiramm/gopath/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153
/usr/local/go/src/runtime/asm_amd64.s:1337
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2019-05-27 16:36:39 +05:30
nolancon
283dff9335
Update SocketMask based on feedback
...
TODO: Unit tests to be updated
2019-05-27 07:19:03 +01:00
Ted Yu
58dfe186d8
Call getKubeletSandboxes first in containerGC#evictSandboxes
2019-05-26 14:40:11 -07:00
Kubernetes Prow Robot
eaece39c86
Merge pull request #78323 from tallclair/docker
...
Add a special-cased runtime handler for dockershim
2019-05-25 09:01:50 -07:00
yameiwang
23b7d5e606
fix some spelling error
2019-05-25 06:51:31 +08:00
Tim Allclair
19a588eeda
Add a special-cased runtime handler for dockershim
2019-05-24 15:30:34 -07:00
Mikhail Mazurskiy
4ce1fb7d40
Cleanup math/rand package usage
2019-05-24 09:25:04 +10:00
Tim Allclair
91e593546c
Revert "Use consistent imageRef during container startup"
...
This reverts commit 26e3c8674e
.
2019-05-23 11:36:32 -07:00
Kubernetes Prow Robot
585fa3acc8
Merge pull request #78073 from mattjmcnaughton/mattjmcnaughton/fix-housekeeping-typos
...
Standardize housekeeping capitalization
2019-05-22 18:44:37 -07:00
Kubernetes Prow Robot
4f33b5f421
Merge pull request #77820 from dims/charrywanganthony-pr-71835-delete-kubelet-security-controls
...
Remove deprecated Kubelet security controls
2019-05-22 13:52:25 -07:00
Kubernetes Prow Robot
43b4d218b0
Merge pull request #75053 from RobertKrawitz/pid-limit-comment-typo
...
Fix typo in comments on SystemReserved and KubeReserved
2019-05-21 18:44:07 -07:00
Kubernetes Prow Robot
3517197bcb
Merge pull request #77699 from chardch/reset-extended
...
Reset extended resources only when node is recreated.
2019-05-21 17:02:08 -07:00
Kubernetes Prow Robot
b7b8addd62
Merge pull request #77068 from monstercy/nodeStatusReportFrequency
...
fix comment about nodeStatusReportFrequency in kubelet.go
2019-05-21 14:30:10 -07:00
Richard Chen
c9f1b57b5b
Reset extended resources only when node is recreated.
2019-05-21 14:16:54 -07:00
Kubernetes Prow Robot
ae2a1628f6
Merge pull request #75459 from wk8/wk8/gmsa_beta
...
Kubelet & API changes for Windows GMSA support
2019-05-21 11:40:08 -07:00
Rong Gao
2d5020e3b6
enrich oom event message info
2019-05-21 21:24:59 +08:00
Kubernetes Prow Robot
e476a60ccb
Merge pull request #73241 from vikaschoudhary16/selinux-label
...
Add correct selinux label at plugin socket directory
2019-05-20 11:07:17 -07:00
SataQiu
80bee6d965
fix golint failures of pkg/kubelet/configmap pkg/kubelet/custommetrics
2019-05-20 09:56:19 +08:00
mattjmcnaughton
c68690c640
Standardize housekeeping capitalization
...
Previously, the code base had both `housekeeping` and `houseKeeping`,
which made case sensitive search in vim difficult. Standardize on
`housekeeping`, which was by far the most popular.
2019-05-18 11:30:47 -04:00
vikaschoudhary16
58d1b4d564
Add correct selinux label at plugin socket directory
2019-05-18 12:35:17 +05:30
Andrew Sy Kim
0d8861114d
kubelet: lookup node address for external provider if none is set
...
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-05-17 11:06:38 -04:00
Kubernetes Prow Robot
a6b546eb72
Merge pull request #77936 from liggitt/shorten-cert-wait
...
Interrupt WaitForCertificate if desired kubelet serving cert changes
2019-05-17 00:26:19 -07:00
Kubernetes Prow Robot
3c02a38fdc
Merge pull request #77609 from tedyu/union-all-test
...
Add test for CPUSet#UnionAll
2019-05-16 20:39:26 -07:00
Jean Rouge
b39d8f4777
Kubelet & implementation changes for Windows GMSA support
...
This patch comprises the kubelet changes outlined in the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md )
to add GMSA support to Windows workloads.
Updated tests.
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 22:07:03 -04:00
Kubernetes Prow Robot
b276043051
Merge pull request #77421 from tedyu/cpu-free-no-sort
...
Obtain unsorted slice in cpuAccumulator#freeCores
2019-05-16 16:26:53 -07:00
Jean Rouge
181706b0f0
Auto-generated changes for Windows GMSA support
...
This patch comprises the auto-generated changes for the API changes outlined in
the Windows GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md )
to add GMSA support to Windows workloads.
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-05-16 15:34:22 -07:00
Jordan Liggitt
739a75fc32
Interrupt WaitForCertificate if desired kubelet serving cert changes
2019-05-16 15:14:47 -04:00
Ted Yu
52f797188f
Add test for CPUSet#UnionAll
...
Signed-off-by: Ted Yu <yute@vmware.com>
2019-05-16 12:13:33 -07:00
chaowang
9ba0d47465
Remove deprecated Kubelet security controls
...
Change-Id: I9f770e6780b60e881092690f6f177d726f474fe3
2019-05-16 13:33:52 -04:00
Han Kang
2d48b3e81e
add process start time metric to metric probes since they use counters
2019-05-16 08:19:29 -07:00
Kubernetes Prow Robot
066549b4b5
Merge pull request #77892 from mikedanese/pluginwatcher
...
simplify pluginwatcher close by removing waitgroup
2019-05-16 06:06:26 -07:00
Kubernetes Prow Robot
ce3ce9a57a
Merge pull request #77023 from obitech/fix_golint_issues_in_kubelet_packages_oom
...
Fix golint issues in pkg/kubelet/oom
2019-05-15 22:56:21 -07:00
Kubernetes Prow Robot
37281a400d
Merge pull request #76442 from viegasdom/fix-golint-utils-bandwith
...
Fix golint failures of util/bandwith/*.go
2019-05-15 22:56:08 -07:00
Kubernetes Prow Robot
c50ff35a55
Merge pull request #77839 from mcrute/migrate-fake-cp
...
Staging legacy fake cloud provider
2019-05-15 12:32:23 -07:00
SataQiu
b36d8d431f
fix golint failures of pkg/util/parsers pkg/util/sysctl pkg/util/system
2019-05-15 23:19:47 +08:00
Kubernetes Prow Robot
adf6fa6987
Merge pull request #77888 from tallclair/standalone
...
Don't create a RuntimeClassManager without a KubeClient
2019-05-15 00:04:48 -07:00
Kubernetes Prow Robot
116f06e96e
Merge pull request #77661 from mfpierre/fix-static-pods-kubelet-status
...
Kubelet status manager sync the status of local Pods
2019-05-14 20:36:28 -07:00
Mike Danese
531a50c776
simplify pluginwatcher closing
2019-05-14 18:55:13 -07:00
Kubernetes Prow Robot
032b4d39c6
Merge pull request #77304 from cwdsuzhou/fix_leak_when_stop_error
...
Bugfix: fix chan leak when stop error
2019-05-14 18:24:55 -07:00
Tim Allclair
41ccf4c77e
Don't create a RuntimeClassManager without a KubeClient
2019-05-14 16:41:50 -07:00
Mike Crute
7d62316f8f
Migrate fake cloud provider to staging
2019-05-14 13:32:18 -07:00
Kubernetes Prow Robot
2525ab8572
Merge pull request #77759 from haiyanmeng/host
...
Remove the `host` label from the kubelet http traffic metrics
2019-05-13 13:15:36 -07:00
Kubernetes Prow Robot
0252a32342
Merge pull request #77788 from mysunshine92/wym-0510
...
fix typos
2019-05-13 11:52:31 -07:00
nolancon
e8566caa3f
Update to unit test and comment bug fixed
2019-05-13 06:41:44 +01:00
yameiwang
503ac59abe
fix typo in kuberuntime_manager.go
2019-05-13 08:35:01 +08:00
Kubernetes Prow Robot
ace60e8acb
Merge pull request #77684 from tedyu/pre-empt
...
Correct CriticalPodAdmissionHandler in godoc
2019-05-12 02:24:09 -07:00
Haiyan Meng
4751f40319
Remove the host
label from the kubelet http traffic metrics
...
Signed-off-by: Haiyan Meng <haiyanmeng@google.com>
2019-05-10 13:46:35 -07:00
David Ashpole
f8dff6bd5b
only collect metrics for cgroups required by the summary API
2019-05-10 12:12:41 -07:00
Kubernetes Prow Robot
ef9e794a36
Merge pull request #77656 from yastij/check-cstat-mem
...
check if Memory is not nil for container stats
2019-05-09 17:52:23 -07:00
Kubernetes Prow Robot
b7dc0124a0
Merge pull request #77379 from tedyu/http-stat-map
...
Use map to check whether stack trace is needed
2019-05-09 14:13:34 -07:00
Ted Yu
0a9bf0d05e
Correct CriticalPodAdmissionHandler in godoc
2019-05-09 10:51:46 -07:00
JulienBalestra
27cccad822
Kubelet provides an updated and complete status of local-static Pods
2019-05-09 14:56:31 +02:00
Yassine TIJANI
f6087365e9
check if Memory is not nil for container stats
2019-05-09 14:53:38 +02:00
Kubernetes Prow Robot
60a4c3c003
Merge pull request #76603 from changyaowei/generic_ut_fix
...
fix TestEventChannelFull random fail
2019-05-08 17:14:47 -07:00
Ted Yu
85fc089855
Use map to check whether stack trace is needed
...
Signed-off-by: Ted Yu <yute@vmware.com>
2019-05-08 14:31:50 -07:00
Kubernetes Prow Robot
09c4e10333
Merge pull request #74021 from andrewsykim/move-features-component-base
...
Move feature gate package from k8s.io/apiserver to k8s.io/component-base
2019-05-08 13:06:34 -07:00
Daniel (Shijun) Qian
5268f69405
fix duplicated imports of k8s code ( #77484 )
...
* fix duplicated imports of api/core/v1
* fix duplicated imports of client-go/kubernetes
* fix duplicated imports of rest code
* change import name to more reasonable
2019-05-08 10:12:47 -07:00
Andrew Kim
c919139245
update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate
2019-05-08 10:01:50 -04:00
nolancon
7c525ffaa8
More intuitive TopologyHints - socketmask.go
2019-05-08 04:22:39 +01:00
Kubernetes Prow Robot
946087b422
Merge pull request #77426 from Random-Liu/remove-terminated-pod
...
Remove terminated pod from summary api.
2019-05-07 15:55:23 -07:00
Kubernetes Prow Robot
caad1635ce
Merge pull request #77409 from gnufied/add-volume-manager-approvers
...
Add jan and msau42 as approver for volumemanager
2019-05-07 15:54:59 -07:00
Kubernetes Prow Robot
b4211dea98
Merge pull request #77422 from tedyu/policy-set-union
...
Union all CPUSets in one round
2019-05-06 14:02:05 -07:00
caiweidong
a01f0b4e5e
Bugfix: fix channel leak when stop error
2019-05-05 23:06:13 +08:00
Lantao Liu
11cd4242f6
Remove terminated pod from summary api.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-05-03 18:34:54 -07:00
Ted Yu
e967c37068
Union all CPUSets in one round
2019-05-03 14:40:33 -07:00
Ted Yu
f83bac61a4
Obtain unsorted slice in cpuAccumulator#freeCores
2019-05-03 14:07:47 -07:00
Hemant Kumar
15e2421f90
Add jan and msau42 as approver for volumemanager
2019-05-03 13:34:50 -04:00
Kubernetes Prow Robot
6a8a368291
Merge pull request #77287 from tedyu/kube-long-running
...
Use map to check for long-running request
2019-05-02 16:23:09 -07:00
Ted Yu
89c8a91c0f
Check error return from Update
...
Signed-off-by: Ted Yu <yute@vmware.com>
2019-05-02 09:56:40 -07:00
Kubernetes Prow Robot
98c4c1e2d8
Merge pull request #77291 from tedyu/cpu-pod-stat
...
Query pod status outside loop over containers
2019-05-01 23:28:56 -07:00
Kubernetes Prow Robot
a5a70b4de3
Merge pull request #74859 from ahadas/static_policy
...
kubelet/cm: code optimization for the static policy
2019-05-01 23:28:19 -07:00
Kubernetes Prow Robot
7d14d53999
Merge pull request #77162 from klueska/upstream-cpu-manager-find-init-containers
...
Add ability to find init Container IDs in cpumanager reconcileState()
2019-05-01 18:42:30 -07:00
Ted Yu
3fc16a7e82
Log pod name when pod status cannot be queried
2019-05-01 15:01:56 -07:00
Kubernetes Prow Robot
d457a5d214
Merge pull request #77157 from tedyu/kubelet-node-addr-read
...
Utilize read lock for getLastObservedNodeAddresses
2019-05-01 14:32:42 -07:00
Kubernetes Prow Robot
b219272a76
Merge pull request #77165 from mattjmcnaughton/mattjmcnaughton/77138-increase-max-msg-size-dockershim
...
Increase maxMsgSize for dockershim
2019-04-30 20:50:56 -07:00
Ted Yu
66ce52578a
Query pod status outside loop over containers
2019-04-30 19:35:32 -07:00
Ted Yu
fe6e50df3d
Use map to check for long-running request
...
Signed-off-by: Ted Yu <yute@vmware.com>
2019-04-30 19:32:35 -07:00
Jan Safranek
96c41f8a1e
Fix message of failed sync
...
From:
MountVolume.SetUp failed for volume "secret-prometheus-k8s-proxy" :
couldn't propagate object cache: timed out waiting for the condition
To:
MountVolume.SetUp failed for volume "secret-prometheus-k8s-proxy" : failed
to sync secret cache: timed out waiting for the condition
2019-04-30 13:05:07 +02:00
Kubernetes Prow Robot
16085784bc
Merge pull request #75110 from bertinatto/fix_race_watcher
...
Send events before adding watchers in traversePluginDir
2019-04-29 17:19:38 -07:00
mattjmcnaughton
0547167ad0
Increase maxMsgSize for dockershim
...
Increase the grpc max message size to be the same as the value defined
in `pkg/kubelet/remote/utils.go`.
Increase the limit because, `ListPodSandbox` (and possibly other) calls
are hitting the limit. Long term, the best solution to this issue is to
use pagination, but that is not currently available.
2019-04-27 13:26:31 -04:00
Kevin Klues
ef27f5f1a5
Add ability to find init Container IDs in cpumanager reconcileState()
...
The cpumanager loops through all init Containers and app Containers when
reconciling its state. However, the current implementation of
findContainerIDByName(), which is call by the reconciler, does not
resolve for init Containers.
This patch updates findContainerIDByName() to account for init
Containers and adds a regression test that fails before the change and
succeeds after.
2019-04-27 06:18:55 -07:00
obitech
9e35d3d709
Fix golint issues in pkg/kubelet/oom
2019-04-27 10:00:07 +02:00
Ted Yu
1be83c9d4d
Utilize read lock for getLastObservedNodeAddresses
2019-04-26 20:05:49 -07:00
changyaowei
850f4bbd36
modify random failure
2019-04-27 08:04:58 +08:00
Kubernetes Prow Robot
5b43333291
Merge pull request #76884 from SataQiu/fix-golint-pkg/kubelet/pod
...
Fix golint failures of pkg/kubelet/pod
2019-04-25 13:37:06 -07:00
Kubernetes Prow Robot
f4937619a2
Merge pull request #75442 from mars1024/bugfix/bandwidth_unit
...
change bandwidth units from Kb to b
2019-04-25 13:36:54 -07:00
Kubernetes Prow Robot
3bbd0e92e8
Merge pull request #75228 from haiyanmeng/kubelet
...
Add metrics to monitor the kubelet http server
2019-04-25 13:36:31 -07:00
Kubernetes Prow Robot
40a7a2370b
Merge pull request #76940 from cwdsuzhou/use_locked_func
...
fix: use locked func to replace the raw one to avoid concurrent read
2019-04-25 12:04:08 -07:00
Yu Cao
e8b60b1d8d
fix comment about nodeStatusReportFrequency in kubelet.go
2019-04-25 19:49:48 +08:00
SataQiu
1581055c3a
fix golint failures of pkg/kubelet/pod
2019-04-25 11:54:14 +08:00
SataQiu
bf37c8a217
fix golint failures of pkg/kubelet/checkpointmanager/checksum
2019-04-25 09:56:43 +08:00
yameiwang
f130e48deb
fix golint errors in pkg/volume/host_path
2019-04-25 06:46:47 +08:00
Kubernetes Prow Robot
5c4a59f9af
Merge pull request #76690 from SataQiu/fix-golint-kubelet-20190417
...
Fix some golint failures of pkg/kubelet
2019-04-24 12:24:51 -07:00
Kubernetes Prow Robot
8ec6167f61
Merge pull request #74942 from WanLinghao/event_replace
...
Migrate oom watcher not relying on cAdviosr's API any more
2019-04-24 05:50:05 -07:00
Kubernetes Prow Robot
5a790bce3b
Merge pull request #76763 from SataQiu/ifx-golint-kubelet-20190419
...
Fix golint failures of pkg/kubelet/apis
2019-04-24 01:24:14 -07:00
Kubernetes Prow Robot
ea38af74a9
Merge pull request #76925 from SataQiu/fix-golint-kubelet-2019042302
...
Fix golint failures of pkg/kubelet/dockershim/cm
2019-04-23 23:50:50 -07:00
Kubernetes Prow Robot
970e5929fe
Merge pull request #76806 from SataQiu/fix-kubelet-golint-20190419
...
Fix golint failures of pkg/kubelet/checkpoint
2019-04-23 22:10:11 -07:00
SataQiu
828125c725
fix golint failures of pkg/kubelet/apis
2019-04-24 12:56:28 +08:00
Fabio Bertinatto
f56455753b
Remove unnecessary in-line function
2019-04-23 22:24:33 +02:00
Fabio Bertinatto
817c9ca953
Process plugins found before the ones watched
...
Currently, the method `pluginwatcher.traversePluginDir` descends into
a directory adding filesystem watchers and creating synthetic `create`
events when it finds sockets files. However, a race condition might
happen when a recently-added watcher observes a `delete` event in a
socket file before `pluginwatcher.traversePlugindir` itself notices
this file.
This patch changes this behavior by registering watchers on
directories, enqueueing and processing `create` events from sockets
found, and only then processing the events from the registered watchers.
2019-04-23 22:24:33 +02:00
caiweidong
2fe823ba46
fix: use locked func to replace the raw one to avoid concurrent read
2019-04-23 21:00:13 +08:00
SataQiu
423e8f0292
fix golint failures of pkg/kubelet/dockershim/cm
2019-04-23 12:59:13 +08:00
Kubernetes Prow Robot
4ec29a1a2b
Merge pull request #76889 from SataQiu/fix-golint-kubelet-util-20190422
...
Fix golint failures of pkg/kubelet/util
2019-04-22 20:44:25 -07:00
Tim Allclair
c12b053390
Reregister cAdvisor cloud info providers in Kubelet
2019-04-22 15:43:45 -07:00
SataQiu
cd6828bae0
fix golint failures of pkg/kubelet/util
2019-04-22 15:23:07 +08:00
SataQiu
f5736f3fd1
fix some golint failures of pkg/kubelet
2019-04-22 10:40:51 +08:00
Davanum Srinivas
7b8c9acc09
remove unused code
...
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
SataQiu
0e1956b762
fix golint failures of pkg/kubelet/checkpoint
2019-04-19 18:27:32 +08:00
Kubernetes Prow Robot
1192ca09f0
Merge pull request #76634 from xichengliudui/addConsts
...
Using const() defines constants together
2019-04-18 01:50:10 -07:00
Kubernetes Prow Robot
6bc42d5bc0
Merge pull request #75869 from WanLinghao/cm_log_fix
...
Fix a log info error
2019-04-17 21:14:01 -07:00
Kubernetes Prow Robot
32a49828fe
Merge pull request #76456 from codenrhoden/mv-exec-mounter
...
Move ExecMount to pkg/volume/util/exec
2019-04-17 12:16:20 -07:00
Kubernetes Prow Robot
aff3f0c61c
Merge pull request #76665 from tallclair/imageref
...
Use consistent imageRef during container startup
2019-04-16 19:14:34 -07:00
Kubernetes Prow Robot
dffbae622a
Merge pull request #76633 from xichengliudui/little-bug
...
Small bug: Comments and function names do not match
2019-04-16 17:48:34 -07:00
Yu-Ju Hong
903f635ab3
dockershim: Fix negotiating docker API version
...
API version negotiation needs to happen before any meaningful docker
calls, including simple commands such as "/version".
2019-04-15 15:25:06 -07:00
changyaowei
123d1a925f
modify random failure
2019-04-15 20:26:00 +08:00
viegasdom
9d3d7a7b51
Changes another usage of the BandwidthShaper to Shaper
2019-04-12 17:24:57 +01:00
Kubernetes Prow Robot
097d58523a
Merge pull request #75278 from Nessex/updatecontainerresources-label-fix
...
Fix label on UpdateContainerResources operation
2019-04-12 08:44:48 -07:00
Kubernetes Prow Robot
78f571dcfc
Merge pull request #76291 from dims/update-to-latest-cadvisor-remove-mesos-rkt
...
Update to latest cadvisor - cleanup mesos/rkt
2019-04-12 06:15:00 -07:00
Kubernetes Prow Robot
b7858e31d4
Merge pull request #76074 from danielqsj/probe
...
change kubelet probe metrics to counter
2019-04-12 03:23:04 -07:00
Kubernetes Prow Robot
c6338979ff
Merge pull request #75843 from alok87/update-dep-docker-docker-18.09.3
...
Update docker/docker dependency to release 18.09.4
2019-04-12 03:22:48 -07:00
Haiyan Meng
538cd87864
Add metrics to monitor the kubelet http server
...
Signed-off-by: Haiyan Meng <haiyanmeng@google.com>
2019-04-11 14:16:57 -07:00
Davanum Srinivas
1707144b0d
Adjust our use of cadvisor to pull in just runtimes we need
...
- We drop mesos and rkt support in cadvisor
Change-Id: Id4dcafdecc97802b2def95a572e67842e7507f7b
2019-04-11 14:59:48 -04:00
Davanum Srinivas
70d562a6ac
Update to latest cadvisor - cleanup mesos/rkt
...
Change-Id: Ib5ae0cb13b93f8c87bb74e3ba33040df5f3d6a6f
2019-04-11 14:49:23 -04:00
Travis Rhoden
f38d4938be
Move ExecMount to pkg/volume/util/exec
...
This patch moves the ExecMounter found in pkg/util/mount to
pkg/volume/util/exec. This is done in preparation for pkg/util/mount to
move out of tree. This specific implemention of mount.Interface is only
used internally to K8s and does not need to move out of tree.
2019-04-11 12:19:55 -06:00
viegasdom
80578d5bf1
Changes code that still used BandWidthShaper instead of Shaper
2019-04-11 18:50:32 +01:00
Alok Kumar Singh
5b3a44fd56
Use docker api IsErrNotFound(). String handling is not required anymore
...
Why? https://github.com/kubernetes/kubernetes/pull/75843#discussion_r273785877
Moby support: https://github.com/moby/moby/pull/38689
Moby def: 053c6f097a/client/errors.go (L44-L49)
2019-04-11 20:52:57 +05:30
aaa
bad985dc3a
Using const() defines constants together
2019-04-10 17:41:29 -04:00
aaa
49a2b1fd8f
Small bug: Comments and function names do not match
...
add a function
2019-04-10 17:37:24 -04:00
Tim Allclair
26e3c8674e
Use consistent imageRef during container startup
2019-04-10 12:06:42 -07:00
Kubernetes Prow Robot
98104e44f3
Merge pull request #76020 from qingsenLi/k8s190402-fix-healty
...
fix typo healty
2019-04-09 15:18:45 -07:00
Kubernetes Prow Robot
c2acec5c77
Merge pull request #71679 from RobertKrawitz/logspam-cleanup
...
Clean up PR #71617
2019-04-09 11:20:48 -07:00
Alan
b00911a920
fix typo: "inidvidual"-> "individual"
...
fix typo: "inidvidual"-> "individual"
2019-04-09 03:02:50 +08:00
Daniel Mueller
9050c510e6
Remove unused variables from computePodPhase
...
The initialized and failed variables in the computePodPhase function are
effectively write only. Remove them.
2019-04-08 09:09:09 -07:00
Robert Krawitz
022f7c2cd7
Clean up PR #71617
2019-04-08 10:34:40 -04:00
Xing Yang
000ab86788
Move CSIDriver Lister to the controller
2019-04-05 12:20:11 -07:00
Kubernetes Prow Robot
a727bddc5e
Merge pull request #75523 from freehan/bug-fix
...
reconcile pod ready condition when message is not expected
2019-04-04 23:53:19 -07:00
Kubernetes Prow Robot
28295b0e78
Merge pull request #76098 from smarterclayton/move_direct_encoder
...
Move DirectEncoder to runtime, rename, add .WithoutConversion() on CodecFactory
2019-04-04 21:07:55 -07:00
Kubernetes Prow Robot
dc1ff116dc
Merge pull request #74220 from tedyu/master
...
Aggregate errors for kube runtime GC
2019-04-04 17:47:19 -07:00
danielqsj
6d041abba7
remove metrics prober_probe_result
2019-04-04 17:03:11 +08:00
Clayton Coleman
7f9dfe58f4
Use CodecFactory.WithoutConversion() everywhere
...
Clarifies that requesting no conversion is part of the codec factory, and
future refactors will make the codec factory less opionated about conversion.
2019-04-03 22:19:13 -04:00
Dr. Stefan Schimanski
37046e3028
Handle feature gate errors
2019-04-03 16:52:05 +02:00
danielqsj
295d672d54
change kubelet probe metrics to counter type
2019-04-03 17:44:17 +08:00
qingsenLi
4db2227629
fix typo healty
2019-04-03 03:29:22 +08:00
Giuseppe Scrivano
a561196bfe
logs: consume all file until EOF on exited container
...
If the container is not found, do not stop reading the log file
immediately but wait until we reach again EOF.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:21 +01:00
Giuseppe Scrivano
8f68b281e4
kubelet: force checking the log file every second
...
it seems fsnotify can miss some read events, blocking the kubelet to
receive more data from the log file.
If we end up waiting for events with fsnotify, force a read from the
log file every second so that are sure to not miss new data for longer
than that.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano
341c2c0d1f
kubelet: handle recreated log files
...
if the runtime is configured to rotate the log file, we might end up
watching the old fd where there are no more writes.
When a fsnotify event other than Write is received, reopen the log
file and recreate the watcher.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano
2c30eee92f
kubelet: read immediately after creating the watcher
...
if some events happen between the Read and while we set the watcher,
we might miss them.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:11 +01:00
Kubernetes Prow Robot
dabeb20a1a
Merge pull request #75587 from tiffanyfay/cred-provider
...
Refactor AWS credential provider
2019-03-29 14:48:47 -07:00
WanLinghao
62d8081eda
Fix a log info error
2019-03-29 13:27:10 +08:00
Kubernetes Prow Robot
4b3eb60081
Merge pull request #75531 from dims/add-new-staging-repository-for-cri-api
...
New staging repository for cri-api
2019-03-26 18:10:49 -07:00
tiffany jernigan
847cb24aa1
Credential provider Provide takes image (general)
2019-03-27 01:00:26 +00:00
Davanum Srinivas
33081c1f07
New staging repository for cri-api
...
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Kubernetes Prow Robot
531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
...
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
Kubernetes Prow Robot
428a8e04d4
Merge pull request #75458 from jingxu97/March/raceofActualDesiredState
...
Fix race condition between actual and desired state in kublet volume manager
2019-03-25 13:24:51 -07:00
Clayton Coleman
b28e82ad4a
Avoid using %#v
for errors when using only a portion of the object
...
`%#v` may have significant performance costs in frequently invoked code.
2019-03-21 22:52:09 -04:00
shinytang6
5c9f4d9dc6
replace time.Now().Sub with time.Since
2019-03-21 18:02:55 +08:00
Minhan Xia
47bc948fe3
reconcile pod ready condition when message is not expected
2019-03-20 14:05:40 -07:00
Kubernetes Prow Robot
26fea2361a
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
...
spelling error 'heatbeat'
2019-03-20 13:30:59 -07:00
Kubernetes Prow Robot
795c96aa9d
Merge pull request #71822 from houjun41544/20181207-event
...
Remove unused kubelet event reasons
2019-03-20 11:07:47 -07:00
Kubernetes Prow Robot
155688b2f3
Merge pull request #75309 from cwdsuzhou/remove_unused_variable
...
Remove the unused variabe: syncDuration in volumemanager
2019-03-20 07:42:08 -07:00
Kubernetes Prow Robot
16b5f7d3c5
Merge pull request #67487 from tianshapjq/validate-system-kube-reserved
...
validate systemReservedCgroup and kubeReservedCgroup
2019-03-19 21:26:22 -07:00
Kubernetes Prow Robot
046dcbd1ed
Merge pull request #73917 from droslean/cleanup
...
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Jing Xu
7cb5df6728
Fix race condition between actual and desired state in kublet volume
...
manager
This PR fixes the issue #75345 . This fix modified the checking volume in
actual state when validating whether volume can be removed from desired state or not. Only if volume status is already mounted in actual state, it can be removed from desired state.
For the case of mounting fails always, it can still work because the
check also validate whether pod still exist in pod manager. In case of
mount fails, pod should be able to removed from pod manager so that
volume can also be removed from desired state.
2019-03-18 17:08:48 -07:00
Bruce Ma
183247ca5c
change bandwidth units from Kb to b
...
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-03-18 21:22:34 +08:00
Kubernetes Prow Robot
1a24040447
Merge pull request #74781 from liggitt/http2-watch
...
kubelet watch-manager test, restore watch-based manager default
2019-03-16 12:52:56 -07:00
Kubernetes Prow Robot
3512757882
Merge pull request #75416 from tallclair/local-redirects
...
Don't follow non-local redirects from HTTP probes
2019-03-16 09:14:57 -07:00
Kubernetes Prow Robot
0f6196878d
Merge pull request #75367 from feiskyer/fix-dockershim-panic
...
Fix panic when removing docker images
2019-03-16 01:08:56 -07:00
Tim Allclair
e6ea4f0538
Don't follow non-local redirects for http probes
2019-03-15 11:04:30 -07:00
caiweidong
92aee22646
Remove the unused variabe: syncDuration in volumemanager
2019-03-15 10:04:41 +08:00
Kubernetes Prow Robot
b3ec6c17f1
Merge pull request #75144 from Huang-Wei/followup-74222
...
kubelet: updated logic of verifying a static critical pod
2019-03-14 14:41:00 -07:00
Pengfei Ni
a304297c99
Fix panic when removing docker images
2019-03-14 18:53:02 +08:00
Jordan Liggitt
f2a0c0342c
Revert "Revert kubelet to default to ttl cache secret/configmap behavior"
...
This reverts commit cd1c9f9018
.
2019-03-13 15:12:26 -07:00
Wei Huang
d67e7fd47f
kubelet: updated logic of verifying a static critical pod
...
- check if a pod is static by its static pod info
- meanwhile, check if a pod is critical by its corresponding mirror pod info
2019-03-12 23:40:20 -07:00
Nathan Essex
394c581a56
Fix label on UpdateContainerResources operation
2019-03-12 14:18:53 +09:00
Kubernetes Prow Robot
243e740885
Merge pull request #74809 from oxddr/secrets-and-maps
...
Fix secret/configmap management for terminated pods
2019-03-11 16:42:36 -07:00
Lantao Liu
0ac651bfc3
Include pod logs in the pod ephemeral storage.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Lantao Liu
f14c6c95d6
New pod log directory /var/log/pods/NAMESPACE_NAME_UID.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
qingsenLi
147666f10f
spelling error 'heatbeat'
2019-03-09 00:22:06 +08:00
Hemant Kumar
89d1de9eb9
Rename ExandFS to NodeExpand
...
Handle resize error in online resizing
Use NodeExpandable plugin to mark volumes that require node expansion
2019-03-08 09:21:44 -05:00
Kubernetes Prow Robot
535064773a
Merge pull request #73946 from dashpole/prometheus_core_metrics
...
Add kubelet resource metrics v1alpha1 endpoint
2019-03-07 22:43:28 -08:00
Kubernetes Prow Robot
183e6cc190
Merge pull request #74433 from tallclair/runtimeclass-internal
...
Migrate RuntimeClass from a CRD to an internal API
2019-03-07 21:19:30 -08:00
Kubernetes Prow Robot
ad27abde62
Merge pull request #74835 from davidz627/feature/adcFallback
...
Add logic for initializing CSINode on Node startup for CSI Migration [Replaces #70909 ]
2019-03-07 18:39:25 -08:00
David Zhu
41b3579345
Address review comments
2019-03-07 17:17:09 -08:00
Kubernetes Prow Robot
a6d8dbcaef
Merge pull request #74913 from yastij/explicit-restart-policy
...
explicit the restartPolicy on the dockershim
2019-03-07 16:12:39 -08:00
Kubernetes Prow Robot
fbc5150c7d
Merge pull request #74788 from feiskyer/windows-network-stats
...
Add network stats for Windows nodes and containers
2019-03-07 16:12:24 -08:00
David Ashpole
6051664c0f
add kubelet prometheus resource metrics endpoint
2019-03-07 15:39:37 -08:00
David Zhu
34d9ee5b9b
Add CSINode initialization for CSIMigration on node startup before pod ready
2019-03-07 14:47:38 -08:00
Tim Allclair
428e9fa329
generated files
2019-03-07 11:57:12 -08:00
Tim Allclair
222988bdda
Migrate to internal node.k8s.io client
2019-03-07 11:57:12 -08:00
Arik Hadas
4a47148afe
kubelet/cm: fix test description
...
Signed-off-by: Arik Hadas <ahadas@redhat.com>
2019-03-07 21:23:15 +02:00
Arik Hadas
26e1c1cee7
kubelet/cm: code optimization for the static policy
...
Minor optimization in the code that attempts to assign whole
sockets/cores in case the number of CPUs requested is higher
than CPUs-per-socket/core: check if the number of requested
CPUs is higher than CPUs-per-socket/core before retrieving
and iterating the free sockets/cores, and break the loops
when that is no longer the case.
Signed-off-by: Arik Hadas <ahadas@redhat.com>
2019-03-07 21:23:15 +02:00
Wei Huang
c5a96b63f4
Revert "kubelet: return mirror pod in GetActivePods()"
...
This reverts commit c0c93f4a52
.
2019-03-07 11:22:27 -08:00
Janek Łukaszewicz
52913c59d1
Test with 2 pods, to make it more reliable.
2019-03-07 17:02:51 +01:00
Kubernetes Prow Robot
8dd60281ff
Merge pull request #74653 from cofyc/fix74650-CheckVolumeExistenceOperation
...
Distinguish between volume path and mount path
2019-03-06 20:35:40 -08:00
Kubernetes Prow Robot
752d18d2b0
Merge pull request #74510 from SataQiu/fix-golint-2019022502
...
Fix some golint failures for pkg/kubelet/apis/...
2019-03-06 17:59:25 -08:00
Pengfei Ni
d690037571
Run hack/update-bazel.sh
2019-03-07 09:55:58 +08:00
Pengfei Ni
1220025e86
Add network stats for node interfaces
2019-03-07 09:55:39 +08:00
Pengfei Ni
84a7f48cf7
Add network stats for Windows containers
2019-03-07 09:54:50 +08:00
Robert Krawitz
9fe4efea03
Fix typo in comments on SystemReserved and KubeReserved
2019-03-06 14:22:46 -05:00
Kubernetes Prow Robot
752f5668cc
Merge pull request #74737 from wk8/wk8/gmsa_bug_fix
...
Fixing a small bug with GMSA support
2019-03-06 11:20:49 -08:00
WanLinghao
611563c913
golint fix
2019-03-06 19:47:54 +08:00
Kubernetes Prow Robot
4d1b830578
Merge pull request #74933 from yujuhong/fix-cpu-nano-cores
...
Fix computing of cpu nano core usage
2019-03-05 14:54:34 -08:00
Kubernetes Prow Robot
98fa2c7d32
Merge pull request #74222 from Huang-Wei/kubelet-mirrorpod
...
kubelet: return mirror pod in GetActivePods()
2019-03-05 13:22:02 -08:00
Kubernetes Prow Robot
0a4308f641
Merge pull request #74529 from liggitt/kubelet-service-links-error
...
Kubelet service links error
2019-03-05 09:49:59 -08:00
Yu-Ju Hong
191666d6a3
Fix computing of cpu nano core usage
...
CRI runtimes do not supply cpu nano core usage as it is not part of CRI
stats. However, there are upstream components that still rely on such
stats to function. The previous fix was faulty because the multiple
callers could compete and update the stats, causing
inconsistent/incoherent metrics. This change, instead, creates a
separate call for updating the usage, and rely on eviction manager,
which runs periodically, to trigger the updates. The caveat is that if
eviction manager is completley turned off, no one would compute the
usage.
2019-03-05 09:25:40 -08:00
WanLinghao
c16d9193c1
bazel fix
2019-03-05 17:22:35 +08:00
WanLinghao
b2ce446a88
Migrate oom watcher not relying on cAdviosr any more, it is part of plan
...
of removing cAdvisor from k8s.
For more informations about this plan, please refer:
https://github.com/kubernetes/kubernetes/issues/68522
2019-03-05 17:06:34 +08:00
Sreemanti-Ghosh
ce56956409
Socket mask unit test ( #4 )
2019-03-05 08:00:04 +00:00
nolancon
a273333f1f
Add BUILD files and Boilerplates
...
Updates based on comments
* Export comments added
* glog changed to klog
* Other small edits
2019-03-05 07:59:51 +00:00
Xing Yang
6265f4f78c
CSINodeInfo/CSIDriver controller changes
...
This is the 2nd PR to move CSINodeInfo/CSIDriver APIs to
v1beta1 core storage APIs. It includes controller side changes.
It depends on the PR with API changes:
https://github.com/kubernetes/kubernetes/pull/73883
2019-03-04 16:41:58 -08:00
Yassine TIJANI
5f7c60859c
explicit the restartPolicy on the dockershim
...
This change explicits the restart policy, as on some docker version
(e.g. 11.07-ce) the default for this field is "". which seems to be not
respected by dockerd
2019-03-04 23:11:20 +01:00
Kubernetes Prow Robot
d8d260a09d
Merge pull request #74755 from liggitt/kubelet-watch
...
Revert kubelet to default to ttl cache secret/configmap behavior
2019-03-01 19:14:14 -08:00
Kubernetes Prow Robot
9b8c58644a
Merge pull request #74418 from danielqsj/duration
...
convert latency/latencies in metrics name to duration
2019-03-01 17:58:12 -08:00
Jean Rouge
5e3f3b35e0
Review comments
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-03-01 17:57:39 -08:00
Lubomir I. Ivanov
e29c6e1b38
go-1.12: fix 'go vet' failures
2019-03-01 18:48:17 +02:00
nolancon
f10e76962f
Add Socket Mask for Topology Manager
2019-03-01 07:20:47 +00:00
Kubernetes Prow Robot
4f01eb528e
Merge pull request #74336 from littleroad/exited_container
...
cri_stats_provider: Implement removeTerminatedContainer correctly
2019-02-28 19:12:07 -08:00
Jordan Liggitt
cd1c9f9018
Revert kubelet to default to ttl cache secret/configmap behavior
2019-02-28 17:54:22 -05:00
Jean Rouge
1908a0ce04
Fixing a small bug with GMSA support
...
A previous PR (https://github.com/kubernetes/kubernetes/pull/73726 )
added GMSA support to the dockershim. Unfortunately, there was a
bug in there: the registry keys used to pass the cred specs down
to Docker were being cleaned up too early, right after the containers'
creation - before Docker would ever try to read them, when trying to
actually start the container.
This patch fixes this.
An e2e test is also provided in a separate PR.
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-28 10:26:54 -08:00
wojtekt
6dce4d87a3
Fix secret/configmap management for terminated pods
2019-02-28 18:59:53 +01:00
Fabio Bertinatto
32c0af42e6
Remove last pieces of mount propagation gate
2019-02-28 13:05:02 +01:00
Kubernetes Prow Robot
4b1282d925
Merge pull request #74016 from ahadas/topology_cleanup
...
Cleanup in topology.go
2019-02-27 22:49:24 -08:00
Lu Fengqi
3f8eda37ce
cri_stats_provider: overload nil as 0 for exited containers stats
...
Always report 0 cpu/memory usage for exited containers to make
metrics-server work as expect.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
2019-02-28 10:41:15 +08:00
Kubernetes Prow Robot
84dce4d119
Merge pull request #74393 from codenrhoden/refactor-subpath
...
Refactor subpath out of pkg/util/mount
2019-02-27 15:54:36 -08:00
Yecheng Fu
8940976602
Distinguish volume path with mount path
2019-02-27 19:31:26 +08:00
Travis Rhoden
2c4d748bed
Refactor subpath out of pkg/util/mount
...
This patch moves subpath functionality out of pkg/util/mount and into a
new package pkg/volume/util/subpath. NSEnter funtionality is maintained.
2019-02-26 19:59:53 -07:00
Lantao Liu
f9b8d27cef
Lower the log level for non-exist cadvisor stats.
...
For exited container, it is quite normal that cri stats
are returned, but there is no corresponding cadvisor stats.
2019-02-26 16:43:42 -08:00
Kubernetes Prow Robot
cf24d24e66
Merge pull request #70647 from vshn/imagegc_multi_repo_image_removal
...
Always run untag when removing docker image
2019-02-26 11:04:58 -08:00
Kubernetes Prow Robot
44d13d3b77
Merge pull request #73726 from wk8/wk8/gmsa_alpha
...
Kubelet changes for Windows GMSA support
2019-02-25 21:48:21 -08:00
Kubernetes Prow Robot
272d78f1d9
Merge pull request #73966 from alculquicondor/fix/lint-kubelet-server
...
Fix lint on pkg/kubelet/server/...
2019-02-25 20:27:48 -08:00
Jean Rouge
0d392ffcef
Udpated Bazel files
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-26 03:02:09 +00:00
Kubernetes Prow Robot
77cf7c7b86
Merge pull request #73703 from rphillips/fixes/kubelet_file_fsnotify
...
kubelet: upgrade sourceFile to use fsnotify
2019-02-25 15:15:08 -08:00
Jean Rouge
f1bdfa93f9
Review comments
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-25 10:59:23 -08:00
Jordan Liggitt
4ac08be206
prevent panic on nil pod.spec.enableServiceLinks
2019-02-25 10:43:29 -05:00
Jordan Liggitt
9788d401e2
Revert "bug: fix segfault when EnableServiceLinks is nil"
...
This reverts commit e9f1700512
.
2019-02-25 10:35:48 -05:00
SataQiu
7181c44230
fix some golint failures for pkg/cloudprovider/providers/vsphere/vclib and pkg/kubelet/apis/...
2019-02-25 18:01:41 +08:00
Kubernetes Prow Robot
8993fbc543
Merge pull request #74328 from daixiang0/delete-blank
...
delete all duplicate empty blanks
2019-02-23 01:43:58 -08:00
Kubernetes Prow Robot
b5566c7818
Merge pull request #71896 from awly/client-go-keyutil
...
client-go: extract new keyutil package from util/cert
2019-02-23 01:43:16 -08:00
qingsenLi
8086b8f71d
fix syntactic error in kuberuntime_manager.go-2
2019-02-23 10:51:17 +08:00
Xiang Dai
36065c6dd7
delete all duplicate empty blanks
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-23 10:28:04 +08:00
Kubernetes Prow Robot
b77e4e2417
Merge pull request #74389 from answer1991/sync-cni-config-in-goroutine
...
sync CNI config in goroutine
2019-02-22 17:58:54 -08:00
Kubernetes Prow Robot
95856e30c4
Merge pull request #73820 from haiyanmeng/runtimeclass
...
Fit RuntimeClass metrics to prometheus conventions
2019-02-22 16:14:59 -08:00
Kubernetes Prow Robot
2f2945732b
Merge pull request #69099 from ehashman/issue-66790
...
Rename cadvisor metric labels to match instrumentation guidelines
2019-02-22 14:56:01 -08:00
danielqsj
f7b437cae0
convert latency in mertics name to duration
2019-02-22 21:40:13 +08:00
chenjun.cj
4fe13c2a99
sync CNI config in goroutine
2019-02-22 16:26:49 +08:00
Aldo Culquicondor
e61cd68bf3
Fix lint on pkg/kubelet/server/...
2019-02-21 10:31:41 -05:00
Kubernetes Prow Robot
5bfea15e7b
Merge pull request #71351 from HotelsDotCom/kep/VolumeSubpathEnvExpansion
...
kep/VolumeSubpathEnvExpansion
2019-02-20 14:05:20 -08:00
Kubernetes Prow Robot
a2a5bd03fd
Merge pull request #71119 from Chenditang/typo
...
Fix typos.
2019-02-20 12:54:30 -08:00
Kubernetes Prow Robot
78573805a7
Merge pull request #66228 from liucimin/fix_cniplugin_get_expose_hostip
...
fix_the_checkpoint_no_hostip_bug
2019-02-20 12:51:14 -08:00
Kevin Taylor
a64b854137
Implementation of KEP Feature Gate VolumeSubpathEnvExpansion
2019-02-20 01:37:16 +00:00
Jean Rouge
a09031dbbd
Typo in comment
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-19 13:10:23 -08:00
haiyanmeng
ec18200f8b
Fit RuntimeClass metrics to prometheus conventions
...
1) Add suffix (`seconds` or `total`) to metric name
2) Switch Summary metric to Histogram metric (Summary metrics are not
supported completely by prometheus-to-sd and can't be aggregated.)
2019-02-19 12:46:37 -08:00
Andrew Lytvynov
18458392ca
Extract new keyutil package from client-go/util/cert
...
This package contains public/private key utilities copied directly from
client-go/util/cert. All imports were updated.
Future PRs will actually refactor the libraries.
Updates #71004
2019-02-19 09:48:59 -08:00
Kubernetes Prow Robot
d61e878533
Merge pull request #73997 from xichengliudui/fixlintcode
...
Fix golint failures
2019-02-19 01:44:48 -08:00
Ted Yu
dae6950f04
Aggregate errors for kube runtime GC
...
Signed-off-by: Ted Yu <yute@vmware.com>
2019-02-18 13:29:22 -08:00
Wei Huang
c0c93f4a52
kubelet: return mirror pod in GetActivePods()
2019-02-18 12:06:43 -08:00
danielqsj
79a3eb816c
rename latency to duration in metrics
2019-02-18 17:40:04 +08:00
danielqsj
0bfe4c26b1
add default buckets for histogram metrics
2019-02-18 14:07:30 +08:00
danielqsj
4fa0ee7805
Mark deprecated in related kubelet metrics
2019-02-18 14:03:44 +08:00
danielqsj
0e9515c709
Move kubelet metrics to histogram metrics
2019-02-18 14:03:44 +08:00
danielqsj
9fd99a48f5
Change kubelet metrics to conform guideline
2019-02-18 14:01:58 +08:00
Jean Rouge
b1ea622359
Review from @yujuhong
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-16 07:55:43 -08:00
Kubernetes Prow Robot
c88dcee3e9
Merge pull request #73824 from jiayingz/reallocate
...
Checks whether we have cached runtime state before starting a container
2019-02-15 20:35:30 -08:00
Kubernetes Prow Robot
063e7ff358
Merge pull request #73833 from haiyanmeng/cri_runtimeclass
...
Add `runtime_handler` into PodSandbox and PodSandboxStatus
2019-02-15 18:02:46 -08:00
Kubernetes Prow Robot
3e748958dc
Merge pull request #73333 from yujuhong/os-arch-labels
...
kubelet: promote OS & arch labels to GA
2019-02-15 16:45:57 -08:00
Kubernetes Prow Robot
fbee96d733
Merge pull request #73699 from pivotal-k8s/doc-links
...
Update deprecated and broken links
2019-02-15 14:05:09 -08:00
Kubernetes Prow Robot
6310f9681e
Merge pull request #74114 from feiskyer/revert-70121
...
Revert #70121 : Add network stats for Windows containers #70121
2019-02-15 12:44:06 -08:00
Ben Moss
34ac4d9ee9
Update deprecated links
2019-02-15 09:13:07 -05:00
Kubernetes Prow Robot
bf20886f4e
Merge pull request #73990 from xichengliudui/fixlinterror
...
Fix golint failures pkg/kubelet/util/cache
2019-02-14 22:43:15 -08:00
Pengfei Ni
0d03672e02
Revert "Add network stats for windows node"
...
This reverts commit f9fa1c6a38
.
2019-02-15 12:20:41 +08:00
Pengfei Ni
2449b0997c
Revert "Add network stats for Windows containers"
...
This reverts commit 9cf38de44b
.
2019-02-15 12:20:23 +08:00
sunxiaofei03
91e6dab9f8
rm unused judgement
2019-02-15 10:57:42 +08:00
Kubernetes Prow Robot
6a9902deee
Merge pull request #73802 from Random-Liu/handle-unknown-state
...
Stop container in unknown state before recreate or remove.
2019-02-14 15:50:12 -08:00
Jean Rouge
b435dbf718
Merge branch 'master' into wk8/gmsa_alpha
...
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-14 15:38:25 -08:00
Arik Hadas
c3a533e5b2
Cleanup in topology.go
...
1. Find the minimal thread number within a core using a
single loop rather than by sorting the thread numbers.
2. Inline getUniqueCoreID#err and Discover#numCPUs variables.
3. Narrow the scope of Discover#coreID and Discover#err variables.
Signed-off-by: Arik Hadas <ahadas@redhat.com>
2019-02-14 16:55:37 +02:00
Lantao Liu
de8ee94d14
Stop container in unknown state before recreate or remove.
2019-02-14 02:31:17 -08:00
Yu-Ju Hong
5fd27c38da
Move beta OS/Arch labels back to the kubelet package
...
These labels are being deprecated
2019-02-13 18:09:49 -08:00
Kubernetes Prow Robot
888ff4097a
Merge pull request #73651 from RobertKrawitz/node_pids_limit
...
Support total process ID limiting for nodes
2019-02-13 17:31:18 -08:00
Robert Krawitz
2597a1d97e
Implement SupportNodePidsLimit, hand-tested
2019-02-13 14:56:17 -05:00
Kubernetes Prow Robot
289a60ad71
Merge pull request #72709 from changyaowei/pleg_relist
...
When pleg channel is full, discard events and record its count
2019-02-13 01:44:48 -08:00
changyaowei
19f73899fc
modify test case
2019-02-13 16:27:15 +08:00
Kubernetes Prow Robot
19e57c616c
Merge pull request #73892 from smarterclayton/fix_container_message
...
Make container create, start, and stop events consistent
2019-02-12 20:01:36 -08:00
Kubernetes Prow Robot
a684bd5eb1
Merge pull request #73556 from msau42/triage-72931
...
Mark volume as in use even when node status didn't change
2019-02-12 17:29:05 -08:00
Michelle Au
80a2698a02
Add unit tests for volumesinuse during node status update
2019-02-12 13:46:30 -08:00
Michelle Au
62f874b19b
Mark volume as in use even when node status didn't change
2019-02-12 13:46:29 -08:00
xichengliudui
4c42d542dc
Fix golint failures
...
update pull request
update pull request
2019-02-12 13:01:49 -05:00
xichengliudui
d1d54f81ec
update pull request
...
update pull request
2019-02-12 12:13:19 -05:00
Ryan Phillips
4000ef006c
kubelet: upgrade sourceFile to use fsnotify
...
Mitigate some flakes for deleted watch directories and use the
maintained fsnotify package.
2019-02-12 08:00:56 -06:00
xichengliudui
5aa58efe07
Fix golint failures
...
update pull request
2019-02-12 07:14:57 -05:00
Kubernetes Prow Robot
0480214903
Merge pull request #73804 from Random-Liu/remove-unused-functions
...
Remove unused function from the legacy runtime interface.
2019-02-11 22:56:00 -08:00
xichengliudui
5dd26ecab5
Fix function comment to consistent with its name
...
update pull request
update pull request
2019-02-12 01:37:20 -05:00
Kubernetes Prow Robot
c9964aa519
Merge pull request #73342 from szuecs/fix/period-not-reset-if-gate-not-set
...
cpuPeriod was not reset
2019-02-11 19:58:07 -08:00
Yu-Ju Hong
04575f01b0
kubelet: promote OS & arch labels to GA
...
kubelet now applies both the beta and the GA labels to ensure backward
compatibility.
2019-02-11 11:24:58 -08:00
Nikolaos Moraitis
6e820cdcaf
replace loops with go idiomatic.
2019-02-11 11:21:52 +01:00
Clayton Coleman
49250c6efc
Make container create, start, and stop events consistent
...
The messages for container lifecycle events are subtly inconsistent
and should be unified.
First, the field format for containers is hard to parse for a human,
so include the container name directly in the message for create
and start, and for kill remove the container runtime prefix.
Second, the pulling image event has inconsistent capitalization, fix
that to be sentence without punctuation.
Third, the kill container event was unnecessarily wordy and inconsistent
with the create and start events. Make the following changes:
* Use 'Stopping' instead of 'Killing' since kill is usually reserved for
when we decide to hard stop a container
* Send the event before we dispatch the prestop hook, since this is an
"in-progress" style event vs a "already completed" type event
* Remove the 'cri-o://' / 'docker://' prefix by printing the container
name instead of id (we already do that replacement at the lower level
to prevent high cardinality events)
* Use 'message' instead of 'reason' as the argument name since this is a
string for humans field, not a string for machines field
* Remove the hash values on the container spec changed event because no
human will ever be able to do anything with the hash value
* Use 'Stopping container %s(, explanation)?' form without periods to
follow event conventions
The end result is a more pleasant message for humans:
```
35m Normal Created Pod Created container
35m Normal Started Pod Started container
10m Normal Killing Pod Killing container cri-o://installer:Need to kill Pod
10m Normal Pulling Pod pulling image "registry.svc.ci.openshift.org/openshift/origin-v4.0-2019-02-10-172026@sha256:3da5303d4384d24691721c1cf2333584ba60e8f82c9e782f593623ce8f83ddc5"
```
becomes
```
35m Normal Created Pod Created container installer
35m Normal Started Pod Started container installer
10m Normal Killing Pod Stopping container installer
10m Normal Pulling Pod Pulling image "registry.svc.ci.openshift.org/openshift/origin-v4.0-2019-02-10-172026@sha256:3da5303d4384d24691721c1cf2333584ba60e8f82c9e782f593623ce8f83ddc5"
```
2019-02-10 16:39:42 -05:00
Kubernetes Prow Robot
ee44e24cd3
Merge pull request #73659 from feiskyer/usage-nano-cores
...
Kubelet: add usageNanoCores from CRI stats provider
2019-02-08 19:26:21 -08:00
Kubernetes Prow Robot
5b7a790d35
Merge pull request #72185 from dcbw/owners-label-sig-network
...
OWNERS: add label:sig/network to a bunch of places
2019-02-08 10:36:16 -08:00
Kubernetes Prow Robot
5bedff6625
Merge pull request #73836 from Random-Liu/clarify-hostname-in-cri
...
Clarify hostname emptiness in CRI.
2019-02-08 09:06:27 -08:00
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
...
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Kubernetes Prow Robot
eac19a3ab9
Merge pull request #73616 from dims/move-part-of-kubelet-apis-well-known-lables
...
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
2019-02-07 19:44:34 -08:00
Lantao Liu
5b86ee1c82
Clarify hostname emptiness in CRI.
2019-02-07 18:37:59 -08:00
Lantao Liu
1a92e218e0
Remove unused function from the legacy runtime interface.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-02-07 16:57:19 -08:00
haiyanmeng
c35335808c
Add runtime_handler
into PodSandbox and PodSandboxStatus
2019-02-07 15:52:09 -08:00
Jiaying Zhang
00b88c14b0
Checks whether we have cached runtime state before starting a container
...
that requests any device plugin resource. If not, re-issue Allocate
grpc calls. This allows us to handle the edge case that a pod got
assigned to a node even before it populates its extended resource
capacity.
2019-02-07 11:12:36 -08:00
Pengfei Ni
01fbca29cb
Kubelet: add usageNanoCores from CRI stats provider
2019-02-07 22:31:30 +08:00
Kubernetes Prow Robot
6796645672
Merge pull request #73758 from sjenning/priority-based-oom-score-adj
...
kubelet: set low oom_score_adj for containers in critical pods
2019-02-06 21:13:55 -08:00
Kubernetes Prow Robot
ae45068688
Merge pull request #72323 from danielqsj/dockershim
...
Change docker metrics to conform metrics guidelines
2019-02-06 09:30:54 -08:00
Jean Rouge
c4806186d4
Review comments
...
* value names are now purely random
* cleaning up leaked registry keys at Kubelet init
* fixing a small bug masking create errors
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-05 16:53:17 -08:00
Kubernetes Prow Robot
459e509f94
Merge pull request #73549 from haiyanmeng/runtimeclass
...
Add monitoring for RuntimeClass
2019-02-05 15:14:38 -08:00
Kubernetes Prow Robot
a20cd49d6d
Merge pull request #72910 from danielqsj/kn
...
Add kubelet_node_name metrics
2019-02-05 15:14:06 -08:00
Kubernetes Prow Robot
dc1244c6cd
Merge pull request #72785 from derekwaynecarr/hugepages-ga
...
Graduate HugePages feature to GA
2019-02-05 13:56:51 -08:00
Seth Jennings
7dcf1fe5f8
kubelet: set low oom_score_adj for containers in critical pods
2019-02-05 14:28:36 -06:00
Davanum Srinivas
274c9976d2
DefaultFailureDomains does not need to be global
...
Change-Id: I5ccfe8b836133b0db402a37a6974fc011aa6335e
2019-02-05 13:39:07 -05:00
Davanum Srinivas
b975573385
move pkg/kubelet/apis/well_known_labels.go to staging/src/k8s.io/api/core/v1/
...
Co-Authored-By: Weibin Lin <linweibin1@huawei.com>
Change-Id: I163b2f2833e6b8767f72e2c815dcacd0f4e504ea
2019-02-05 13:39:07 -05:00
Jean Rouge
3f5675880d
Kubelet changes for Windows GMSA support
...
This patch comprises the kubelet changes outlined in the GMSA KEP
(https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/20181221-windows-group-managed-service-accounts-for-container-identity.md )
to add GMSA support to Windows workloads.
More precisely, it includes the logic proposed in the KEP to resolve
which GMSA spec should be applied to which containers, and changes
`dockershim` to copy the relevant GMSA credential specs to Windows
registry values prior to creating the container, passing them down
to docker itself, and finally removing the values from the registry
afterwards; both these changes need to be activated with the `WindowsGMSA`
feature gate.
Includes unit tests.
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-05 09:17:46 -08:00
Kubernetes Prow Robot
6a149864fb
Merge pull request #73285 from tallclair/typed-runtimeclass
...
Migrate RuntimeClass support to the generated typed client
2019-02-04 16:13:30 -08:00
haiyanmeng
18bcdcecce
Add monitoring for RuntimeClass
2019-02-04 16:01:29 -08:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot
9d6ebf6c78
Merge pull request #73467 from ashishranjan738/newpackage
...
Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
2019-02-04 11:43:14 -08:00
Kubernetes Prow Robot
f52713515b
Merge pull request #73413 from joejulian/enableservicelinks_segfault
...
bug: fix segfault when EnableServiceLinks is nil
2019-02-04 09:36:31 -08:00
Kubernetes Prow Robot
ca1336957e
Merge pull request #73404 from tsmetana/fix-kubelet-volume-test
...
Kubelet: Fix volumemanager test race
2019-02-04 06:21:11 -08:00
Ashish Ranjan
7be223e798
Refactor to use k8s.io/utils/net/ package instead of kubernetes/pkg/util/net/sets
...
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>
2019-02-04 10:34:53 +05:30
Kubernetes Prow Robot
c2570acc0c
Merge pull request #70936 from yanghaichao12/dev1112
...
correct some spelling wrong in DevicePlugin files
2019-02-03 13:10:25 -08:00
Kubernetes Prow Robot
6fb69d3967
Merge pull request #71648 from houjun41544/20181203-volume
...
Fix an error in comment
2019-02-03 12:02:45 -08:00
Kubernetes Prow Robot
03b434c9d4
Merge pull request #58122 from tianshapjq/nit-int-is-enough
...
Len() is already int
2019-02-03 12:02:24 -08:00
Derek Carr
deae071d78
Graduate HugePages feature to GA
2019-02-02 00:21:10 -05:00
Kubernetes Prow Robot
235b32e8ad
Merge pull request #72832 from MrHohn/pod-dns-config-ga
...
Graduate CustomPodDNS feature to GA
2019-02-01 18:29:17 -08:00
Kubernetes Prow Robot
4331660fcd
Merge pull request #73445 from danielqsj/fix-exec
...
migrate the rest reference of pkg/util/exec to k8s.io/utils/exec
2019-02-01 17:14:15 -08:00
Kubernetes Prow Robot
ae2b176439
Merge pull request #71727 from mikedanese/fixcrm
...
pkg/kubelet/cloudresource: fallback to old addresses if sync loop fails
2019-02-01 14:31:52 -08:00
Kubernetes Prow Robot
53a7601e6a
Merge pull request #64648 from dcbw/remove-unused-param
...
kubelet: remove unused parameter from runtime's SyncPod()
2019-02-01 09:03:45 -08:00
Sandor Szücs
fd0cff9c77
fix #73264 cpuPeriod was not reset, but used as it is if alpha gate is disabled
...
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
2019-02-01 16:45:43 +01:00
Kubernetes Prow Robot
c0457488b6
Merge pull request #63901 from weipeng1213/branch-3
...
fix typo: writeable->writable
2019-02-01 07:44:26 -08:00
Kubernetes Prow Robot
91d2bd3951
Merge pull request #73306 from Pingan2017/args-type-statusmanager
...
correct the type in status_manager.go
2019-01-31 16:05:44 -08:00
Kubernetes Prow Robot
7b7f18c6c8
Merge pull request #70978 from Pingan2017/gracePeriod
...
correct log output when specifed delete gracePeriod < minimumGracePer…
2019-01-31 16:05:33 -08:00
Kubernetes Prow Robot
a5ade16abd
Merge pull request #73603 from sjenning/fix-kubelet-test
...
TestCreatePodSandbox_RuntimeClass should not expect RunPodSandbox when runtime class is not found
2019-01-31 14:10:30 -08:00
Joe Julian
e9f1700512
bug: fix segfault when EnableServiceLinks is nil
...
When upgrading to 1.13, pods that were created prior to the upgrade have
no pod.Spec.EnableServiceLinks set. This causes a segfault and prevents
the pod from ever starting.
Check and set to the default if nil.
Fixes #71749
2019-01-31 11:07:32 -08:00
Seth Jennings
6b51d48c4f
TestCreatePodSandbox_RuntimeClass should not expect RunPodSandbox when runtime class is not found
2019-01-31 12:55:56 -06:00
danielqsj
cf1fb8a1cd
fix format issue
2019-01-31 22:01:13 +08:00
Daniel (Shijun) Qian
e72b32558c
Merge branch 'master' into keymutex
2019-01-31 20:50:57 +08:00
changyaowei
c70ee4272b
delete prometheus in unit testing
2019-01-31 12:18:02 +08:00
changyaowei
b52afc350f
when pleg channel is full, discard events and record how many events discard
2019-01-30 20:43:54 +08:00
danielqsj
657a1a1a34
change import alias of utils/strings
2019-01-30 10:44:09 +08:00
danielqsj
093328e57f
migrate to k8s.io/utils/strings
2019-01-30 10:24:00 +08:00
Andrew Kim
84191eb99b
replace pkg/util/file with k8s.io/utils/path
2019-01-29 15:20:13 -05:00
Mike Danese
bf99565fbb
fallback to previously collected addresses if a sync loop fails
2019-01-29 11:05:27 -08:00
Mike Danese
33fc5b354b
remove artificial sleeps that made tests passes
2019-01-29 10:34:25 -08:00
Mike Danese
9ece24c33f
remove custom timeout in test that is never exercised
...
and misc cleanup
2019-01-29 10:34:25 -08:00
Kubernetes Prow Robot
b2d2432291
Merge pull request #73234 from baltendo/master
...
Fix golint failures
2019-01-29 01:21:03 -08:00
Kubernetes Prow Robot
cc1be28943
Merge pull request #72624 from danielqsj/clean_unmount
...
Cleanup callers of deprecated functions in volume/util
2019-01-28 23:06:20 -08:00
danielqsj
c7a012f033
migrate the rest reference of pkg/util/exec to k8s.io/utils/exec
2019-01-29 10:55:10 +08:00
Elana Hashman
3539e89af2
Rename labels to match instrumentation guidelines
...
For the next release, we include both sets of labels for pods and
containers: "container_name" and "container", "pod_name" and "pod".
In future releases, the "*_name" metrics will be deprecated.
2019-01-28 12:36:20 -05:00
Tomas Smetana
45464f0349
Kubelet: Fix volumemanager test race
2019-01-28 15:05:26 +01:00
Kubernetes Prow Robot
697c2316fa
Merge pull request #70121 from feiskyer/win-net-stats3
...
Add network stats for Windows containers
2019-01-25 14:12:34 -08:00
Pingan2017
fddaf257af
correct the type in status_manager.go
2019-01-25 14:34:11 +08:00
Andrew Kim
0bc5508aca
replace client-go/util/integer with k8s.io/utils/integer
2019-01-24 15:34:21 -05:00
Tim Allclair
954f43a10d
Migrate RuntimeClass E2E to typed client
2019-01-24 11:08:30 -08:00
Tim Allclair
aab3523e0e
Migrate RuntimeClass support to the generated typed client
2019-01-24 11:08:30 -08:00
Pengfei Ni
9cf38de44b
Add network stats for Windows containers
2019-01-24 14:20:30 +08:00
Pengfei Ni
f9fa1c6a38
Add network stats for windows node
2019-01-24 14:17:54 +08:00
Bernhard Altendorfer
736f35ec29
Fix golint failures
2019-01-24 00:14:25 +01:00
Kubernetes Prow Robot
cb09d4d317
Merge pull request #72507 from dixudx/remove_stale_OutOfDisk
...
remove stale OutOfDisk condition from kubelet side
2019-01-18 19:14:04 -08:00
Kubernetes Prow Robot
76961c517e
Merge pull request #73048 from yujuhong/labels-ga
...
kubelet: promote OS & arch labels to GA
2019-01-18 05:17:24 -08:00
Kubernetes Prow Robot
54c4428eb4
Merge pull request #71276 from jingxu97/Oct/uncertain
...
Handle failed attach operation leave uncertain volume attach state
2019-01-17 22:52:57 -08:00
Kubernetes Prow Robot
b1b6cb8cb4
Merge pull request #73034 from dashpole/fix_allocatable_e2e
...
[Text Fix] Fix panic in NodeAllocatable node e2e test
2019-01-17 17:11:59 -08:00
Yu-Ju Hong
00d93f0cc3
kubelet: promote OS & arch labels to GA
...
kubelet now applies both the beta and the GA labels to ensure backward
compatibility.
2019-01-17 14:57:43 -08:00
David Ashpole
2b8bc85f75
fix panic in NodeAllocatable node e2e test
2019-01-17 10:57:09 -08:00
Marek Counts
1739e343a8
autogen files
...
all the autogen files that got updated due to the changes to move logs.
2019-01-17 09:16:36 -05:00
Marek Counts
ba81a5409a
move logs into component-base
...
all the code changes to move move /apiserver/pkg/util/logs into /component-base/logs
2019-01-17 09:16:21 -05:00
Kubernetes Prow Robot
5d19fda5e8
Merge pull request #72844 from dashpole/fork_bomb_test
...
Fix PidPressure, and add fork-bomb e2e-node test
2019-01-16 15:59:01 -08:00
Kubernetes Prow Robot
5818be6205
Merge pull request #68619 from ailusazh/CleanContainersInReconcileStateOfCpuManager
...
clean containers in reconcileState of cpuManager
2019-01-16 11:34:04 -08:00
Kubernetes Prow Robot
56e88f5b47
Merge pull request #70805 from danwinship/cloud-node-ip
...
Fix a CloudProvider-vs-nodeIP edge case
2019-01-16 09:04:54 -08:00
Kubernetes Prow Robot
ce19aad22b
Merge pull request #70527 from qingsenLi/git181101
...
remove repetitive word in annotation
2019-01-15 20:19:09 -08:00
Kubernetes Prow Robot
591ef236e0
Merge pull request #72705 from WanLinghao/cadvisor_test_improve
...
Improve pkg/kubelet/cadvisor package
2019-01-15 17:32:30 -08:00
danielqsj
1d73c7daed
Add kubelet_node_name metrics
2019-01-15 18:01:04 +08:00
ailusazh
10995f661d
clean containers in reconcileState of cpuManager
2019-01-15 16:09:28 +08:00
David Ashpole
8b440c6424
Fix PidPressure, make it evict by priority, and add fork-bomb node e2e test
2019-01-14 09:41:36 -08:00
WanLinghao
ce7003262f
Improve pkg/kubelet/cadvisor package:
...
1. Perfect unit test code
2. Clean unused function&&test file
2019-01-14 09:39:22 +08:00
Kubernetes Prow Robot
dc6f3d645d
Merge pull request #72831 from yujuhong/bump-docker-version
...
Bump minimum docker version to 1.13.1
2019-01-11 15:54:11 -08:00
Zihong Zheng
f2750dd043
Graduate CustomPodDNS feature to GA
2019-01-11 11:28:26 -08:00
Yu-Ju Hong
f62cc81934
Bump minimum docker version to 1.13.1
2019-01-11 10:21:38 -08:00
Kubernetes Prow Robot
d2d9a3aba4
Merge pull request #72659 from jsturtevant/fix-windows-kernal-version-output
...
Remove newline from kernel version on windows node
2019-01-11 08:10:26 -08:00
Kubernetes Prow Robot
0ab3972a08
Merge pull request #72791 from yujuhong/no-rkt
...
Remove the rkt deprecation warning
2019-01-10 17:09:04 -08:00
Kubernetes Prow Robot
68909b5683
Merge pull request #70784 from gaorong/typo-fix
...
fix some typos
2019-01-10 17:08:43 -08:00
Kubernetes Prow Robot
b92756e85d
Merge pull request #72340 from makocchi-git/cadvisor_crisocket
...
kubelet: fixes cadvisor internal error
2019-01-10 14:42:30 -08:00
Yu-Ju Hong
f8ab673b8f
Remove the rkt deprecation warning
...
The feature was deprecated 1.10. Remove the warning.
2019-01-10 13:27:23 -08:00
Kubernetes Prow Robot
a6d7527ac3
Merge pull request #72280 from verb/kubelet-no-containertype
...
Remove container type from kubelet runtime labels
2019-01-10 01:18:41 -08:00
Kubernetes Prow Robot
0dbc99719a
Merge pull request #72076 from derekwaynecarr/pid-limiting
...
SupportPodPidsLimit feature beta with tests
2019-01-10 01:18:30 -08:00
Kubernetes Prow Robot
d88994cf9f
Merge pull request #71306 from ping035627/k8s-181121
...
fix some typos
2019-01-09 09:06:31 -08:00
Derek Carr
bce9d5f204
SupportPodPidsLimit feature beta with tests
2019-01-09 10:50:59 -05:00
Jeff Grafton
11f248fd35
Remove deprecated automanaged tag from some go rules
2019-01-08 14:40:57 -08:00
Kubernetes Prow Robot
a1e46a9d43
Merge pull request #71560 from appvia/hostname-change-noop
...
Don't log a warning to override hostname if there's no change.
2019-01-08 13:41:42 -08:00
danielqsj
8092904e3c
Cleanup PathExists callers
2019-01-08 22:16:11 +08:00
danielqsj
7aef2efe5b
Mark deprecated in related dockershim metrics
2019-01-08 15:24:44 +08:00
gaorong
545aca3d18
fix some typos
2019-01-08 12:46:05 +08:00
Kubernetes Prow Robot
998167767f
Merge pull request #71764 from linxiulei/fix_cri_pullimage
...
Pass PodSandboxConfig to PullImage method in CRI
2019-01-07 15:24:48 -08:00
James Sturtevant
c6777f9009
Remove newline from kernal version on windows node
2019-01-07 21:20:26 +00:00
Di Xu
e1a854b839
remove stale OutOfDisk condition from kubelet side
2019-01-06 21:37:52 +08:00
Kubernetes Prow Robot
89efdb4173
Merge pull request #71889 from WanLinghao/function_clean_kubelet
...
Clean unused function in pkg/kubelet/kubelet.go
2019-01-02 23:35:38 -08:00
Kubernetes Prow Robot
d582682b7f
Merge pull request #72312 from Pingan2017/correct-ready-condition
...
correctly update pod ready condition
2019-01-02 16:51:50 -08:00
Kubernetes Prow Robot
e76322eab4
Merge pull request #70826 from kolyshkin/shareable-ipc-sandbox
...
Use shareable IPC for sandbox container
2018-12-31 21:18:23 -08:00
Kubernetes Prow Robot
710b87617c
Merge pull request #71797 from SenXuDC/SenXuDC-patch-1
...
fix typo replacee -> replace
2018-12-31 07:19:12 -08:00
Kubernetes Prow Robot
68451f301b
Merge pull request #72291 from msau42/fix-subpath-orphan
...
Fix subpath issues with orphaned pod cleanup
2018-12-26 19:48:27 -08:00
Michelle Au
8724b46623
Check for volume-subpaths directory in orpahaned pod cleanup
2018-12-26 10:49:28 -08:00
makocchi-git
4fe1b6f33f
Add "unix://" prefix for CrioSocket
2018-12-26 23:08:41 +09:00
danielqsj
65aec219c8
Move docker metrics to histogram metrics
2018-12-26 16:00:38 +08:00
danielqsj
94d1050303
Change docker metrics to conform guideline
2018-12-26 15:58:04 +08:00
Pingan2017
1148ecfaf6
correctly update pod ready condition
2018-12-25 09:36:37 +08:00
Lee Verberne
f6084f7eab
Remove container type from kubelet runtime labels
...
We've changed the Ephemeral Containers API, and container type will no
longer be required. Since this is the only feature using it, remove it.
This reverts commit ba6f31a6c6
.
2018-12-21 15:47:47 +01:00
wangqingcan
b82a1d4600
Move predicate types from algorithm to predicates
2018-12-21 22:26:47 +08:00
Kubernetes Prow Robot
ea6acb34d1
Merge pull request #65132 from stewart-yu/stewart-removeunusedtodo
...
remove unuse todo
2018-12-19 06:51:29 -08:00
Kubernetes Prow Robot
cd02e752bf
Merge pull request #71509 from cofyc/fix71438
...
Fix device mountable volume names in DSW
2018-12-19 00:51:52 -08:00
Dan Williams
2e339188ed
OWNERS: add label:sig/network to a bunch of places
2018-12-19 00:00:02 -06:00
Kubernetes Prow Robot
5554a446a9
Merge pull request #65632 from cofyc/vendor
...
Vendor github.com/prometheus/client_golang/prometheus/testutil package
2018-12-18 21:27:38 -08:00
Kubernetes Prow Robot
f039076116
Merge pull request #72135 from tallclair/rc-logs
...
Surface selected pod RuntimeHandler in Kubelet logs
2018-12-18 19:10:25 -08:00
Kubernetes Prow Robot
4e8bea4bb7
Merge pull request #71194 from yanghaichao12/dev1119-1
...
Fix comment error of 'cpuManagerStateFileName'
2018-12-17 20:28:19 -08:00
Tim Allclair
e27f7ef151
Surface selected pod RuntimeHandler in Kubelet logs
2018-12-17 16:36:47 -08:00
Kubernetes Prow Robot
2791fb7dc5
Merge pull request #72067 from dashpole/pod_start_time
...
Use Pod.Status.StartTime as pod's cgroup start time in summary API
2018-12-14 15:47:01 -08:00
David Ashpole
70a7fdda02
use Pod.Status.StartTime as pod's cgroup start time in summary API
2018-12-14 14:26:55 -08:00
Kubernetes Prow Robot
61ed586bb9
Merge pull request #71297 from Pingan2017/event-kill-container
...
correct the event msg of kill container
2018-12-13 18:18:58 -08:00
Kubernetes Prow Robot
ed73acdc98
Merge pull request #71029 from yanghaichao12/dev1114
...
Fix comment error of the struct 'UserDefinedMetric'
2018-12-12 17:18:54 -08:00
Yecheng Fu
67552a8f6e
Add unit test to verify generated volume names.
2018-12-12 13:03:21 +08:00
yuexiao-wang
7b6f60f085
modify BUILD
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2018-12-11 11:22:06 +08:00
yuexiao-wang
f3353c358d
[scheduler cleanup phase 2]: Rename to
...
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
2018-12-11 11:21:12 +08:00
WanLinghao
ea456bb365
Clean unused function in pkg/kubelet/kublet.go
2018-12-09 14:30:36 +08:00
Eric Lin
5e2ed11cf7
Pass PodSandboxConfig to PullImage method in CRI
...
Fix #71745
2018-12-07 10:10:22 +08:00
houjun
a437b797ec
Remove two kubelet event reasons
2018-12-07 09:29:02 +08:00
SenXuDC
48c715515e
Update fsstore.go
2018-12-06 23:01:52 +08:00
Kubernetes Prow Robot
1bafa3922f
Merge pull request #71687 from WanLinghao/cadvisor_comment_remove
...
Update a comment in cadvisor boot function
2018-12-05 20:31:41 -08:00
David Ashpole
54e581930c
fix node and kubelet start times
2018-12-05 15:07:52 -08:00
Kubernetes Prow Robot
33a37702a6
Merge pull request #64280 from dashpole/eviction_pod_metrics
...
Use memory metrics from the pod cgroup for eviction ranking
2018-12-04 08:26:03 -08:00
Kubernetes Prow Robot
6cea9266dc
Merge pull request #71116 from xichengliudui/fix18111602
...
Fix typo: trus->true
2018-12-03 21:27:08 -08:00
WanLinghao
08a4ee006e
Update a comment in cadvisor boot function
2018-12-04 11:29:58 +08:00
Kubernetes Prow Robot
c7598e8844
Merge pull request #71617 from RobertKrawitz/branch-issue71614
...
Issue 71614: Protect log message maps
2018-12-03 14:03:38 -08:00
Kubernetes Prow Robot
dc9261bc3b
Merge pull request #71174 from smarterclayton/debug_kubeadm
...
Restore bootstrap in the background with fix to preserve kubeadm behavior
2018-12-03 05:49:57 -08:00
houjun
5c6eb3a153
Fix an error in comment
2018-12-03 11:35:07 +08:00
Yecheng Fu
ccb66066a9
vendor github.com/prometheus/client_golang/prometheus/testutil package
2018-12-02 10:25:50 +08:00
Yecheng Fu
5ada29ac16
Rename GetUniqueVolumeNameForNonAttachableVolume to GetUniqueVolumeNameFromSpecWithPod
2018-12-01 12:25:32 +08:00
Yecheng Fu
f5642bbe88
Fix device mountable volume names in DSW
2018-12-01 12:25:14 +08:00
Robert Krawitz
bc091be66a
Issue 71614: Protect log message maps
2018-11-30 18:04:08 -05:00
k8s-ci-robot
96516bd961
Merge pull request #71263 from ZYecho/fix-spellings
...
fix typo: namspace -> namespace
2018-11-30 06:33:50 -08:00
k8s-ci-robot
79e5cb2cb7
Merge pull request #71302 from liggitt/verify-unit-test-feature-gates
...
Split mutable and read-only access to feature gates, limit tests to readonly access
2018-11-29 21:45:12 -08:00
k8s-ci-robot
af6bf1e436
Merge pull request #70645 from changyaowei/node_ephemeral-storage
...
Fix bug: when kubelet restart, the ephemeral-storage in node status upgrade to 0
2018-11-29 21:44:53 -08:00
stewart-yu
5f11d089b7
remove unused todo in kubelet_pods.go
2018-11-30 12:51:46 +08:00
k8s-ci-robot
409bfc4337
Merge pull request #71047 from pivotal-k8s/bump-k8s-utils
...
Bump k8s.io/uitls to 8e7ff06
2018-11-29 11:17:08 -08:00
Kashif Saadat
8974b4f00b
Don't log a warning to override hostname if there's no change.
2018-11-29 11:41:43 +00:00
k8s-ci-robot
7ae97bcd0b
Merge pull request #66308 from RobertKrawitz/bug-1581483
...
Reduce logspam for crash looping containers
2018-11-29 02:00:54 -08:00
k8s-ci-robot
e5326f22ea
Merge pull request #70471 from xichengliudui/fix181031
...
Fix some typos
2018-11-29 00:48:16 -08:00
k8s-ci-robot
d0ac922996
Merge pull request #70440 from nikhita/add-license-headers
...
Add license header to non-generated proto files
2018-11-29 00:48:05 -08:00
Kir Kolyshkin
1dca64fffd
Use shareable IPC for sandbox container
...
Currently, Docker make IPC of every container shareable by default,
which means other containers can join it's IPC namespace. This is
implemented by creating a tmpfs mount on the host, and then
bind-mounting it to a container's /dev/shm. Other containers
that want to share the same IPC (and the same /dev/shm) can also
bind-mount the very same host's mount.
Now, since https://github.com/moby/moby/commit/7120976d7
(https://github.com/moby/moby/pull/34087 ) there is a possiblity
to have per-daemon default of having "private" IPC mode,
meaning all the containers created will have non-shareable
/dev/shm.
For shared IPC to work in the above scenario, we need to
explicitly make the "pause" container's IPC mode as "shareable",
which is what this commit does.
To test: add "default-ipc-mode: private" to /etc/docker/daemon.json,
try using kube as usual, there should be no errors.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-11-28 11:11:10 -08:00
Robert Krawitz
3373fcf0fc
Reduce logspam for crash looping containers
2018-11-28 10:48:52 -05:00
Vladimir Vivien
e86bdc7989
Forces fsnotify CREATE and REMOVE to occur serially
2018-11-26 22:11:47 -05:00
k8s-ci-robot
205eaee0e5
Merge pull request #71145 from gnufied/test-mounted-detach
...
Fix volume detach while mount in progress
2018-11-22 23:27:48 -08:00
k8s-ci-robot
12e5eb7dc9
Merge pull request #71011 from sigma/pr/fix-inotify
...
replace golang.org/x/exp/inotify with standalone library
2018-11-22 18:07:51 -08:00
saad-ali
a7c5582bba
Permit use of deprecated dir in device plugin.
2018-11-21 18:37:31 -08:00
saad-ali
8f666d9e41
Modify kubelet watcher to support old versions
...
Modify kubelet plugin watcher to support older CSI drivers that use an
the old plugins directory for socket registration.
Also modify CSI plugin registration to support multiple versions of CSI
registering with the same name.
2018-11-21 18:37:31 -08:00
PingWang
9d541911bb
fix some typos
...
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
fix typo
Signed-off-by: PingWang <wang.ping5@zte.com.cn>
2018-11-22 08:27:14 +08:00
Jordan Liggitt
2498ca7606
drop VerifyFeatureGatesUnchanged
2018-11-21 11:51:33 -05:00
Jordan Liggitt
70ad4dff48
Fix unit tests calling SetFeatureGateDuringTest incorrectly
2018-11-21 11:51:33 -05:00
Jordan Liggitt
4dca07ef7e
Fixup incorrect use of DefaultFeatureGate.Set in tests
2018-11-21 11:51:33 -05:00
Pingan2017
75d9a7bebd
correct the event msg of kill container
2018-11-21 10:59:21 +08:00
Hemant Kumar
d2b6e30143
Fix bug with volume getting marked as not in-use with pending op
...
Add test for verifying volume detach
2018-11-20 11:58:47 -05:00
zhangyue
596a20ca8a
fix typo: namspace -> namespace
...
Signed-off-by: zhangyue <zy675793960@yeah.net>
2018-11-20 21:47:27 +08:00
Jing Xu
562d0fea53
Handle failed attach operation leave uncertain volume attach state
...
This commit adds the unit tests for the PR. It also includes some files
that are affected by the function name changes.
2018-11-19 17:21:49 -08:00
yanghaichao12
982d1778f8
Fix comment error of 'cpuManagerStateFileName'
2018-11-19 08:07:04 -05:00
Clayton Coleman
fde87329cb
bootstrap: Use kubeconfig contents as seed for cert dir if necessary
...
kubeadm uses certificate rotation to replace the initial high-power
cert provided in --kubeconfig with a less powerful certificate on
the masters. This requires that we pass the contents of the client
config certData and keyData down into the cert store to populate
the initial client.
Add better comments to describe why the flow is required. Add a test
that verifies initial cert contents are written to disk. Change
the cert manager to not use MustRegister for prometheus so that
it can be tested.
2018-11-17 19:52:12 -05:00
Clayton Coleman
486577df17
Restore "Make bootstrap client cert loading part of rotation""
...
This reverts the revert of commit 3464222267
.
2018-11-17 13:44:58 -05:00
Clayton Coleman
3464222267
Revert "Make bootstrap client cert loading part of rotation"
...
This reverts commit 0af19875ad
.
Revert "Ensure the bootstrap rotation code is tested by forcing rotation"
This reverts commit de293b2d7d
.
2018-11-17 10:24:39 -05:00
k8s-ci-robot
e3420cc46f
Merge pull request #70494 from RenaudWasTaken/pluginwatcher
...
Ignore non socket files in the kubelet plugin watcher
2018-11-16 22:46:42 -08:00
k8s-ci-robot
3be3510814
Merge pull request #69890 from smarterclayton/bootstrap_retry
...
Make bootstrap client cert loading part of rotation
2018-11-16 22:46:33 -08:00
k8s-ci-robot
ec2e767e59
Merge pull request #71167 from msau42/block-beta
...
Promote raw block volume support to beta
2018-11-16 20:28:03 -08:00
k8s-ci-robot
df8ad8eae1
Merge pull request #71166 from Random-Liu/fix-kubelet-panic
...
Fix kubelet panic.
2018-11-16 20:27:53 -08:00
Clayton Coleman
de293b2d7d
Ensure the bootstrap rotation code is tested by forcing rotation
...
Expose both a Stop() method (for cleanup) and a method to force
cert rotation, but only expose Stop() on the interface.
Verify that we choose the correct client.
2018-11-16 21:50:52 -05:00
Clayton Coleman
0af19875ad
Make bootstrap client cert loading part of rotation
...
Ensure that bootstrap+clientcert-rotation in the Kubelet can:
1. happen in the background so that static pods aren't blocked by bootstrap
2. collapse down to a single call path for requesting a CSR
3. reorganize the code to allow future flexibility in retrieving bootstrap creds
Fetching the first certificate and later certificates when the kubelet
is using client rotation and bootstrapping should share the same code
path. We also want to start the Kubelet static pod loop before
bootstrapping completes. Finally, we want to take an incremental step
towards improving how the bootstrap credentials are loaded from disk
(potentially allowing for a CLI call to get credentials, or a remote
plugin that better integrates with cloud providers or KSMs).
Reorganize how the kubelet client config is determined. If rotation is
off, simplify the code path. If rotation is on, load the config
from disk, and then pass that into the cert manager. The cert manager
creates a client each time it tries to request a new cert.
Preserve existing behavior where:
1. bootstrap kubeconfig is used if the current kubeconfig is invalid/expired
2. we create the kubeconfig file based on the bootstrap kubeconfig, pointing to
the location that new client certs will be placed
3. the newest client cert is used once it has been loaded
2018-11-16 21:50:26 -05:00
k8s-ci-robot
f877b2257a
Merge pull request #71074 from jsafrane/volume-manager-races
...
Fix race between MountVolume and UnmountDevice
2018-11-16 18:22:14 -08:00
Renaud Gaubert
1a3fbf1f13
Update e2e tests to include CSI
2018-11-17 01:52:57 +01:00
Renaud Gaubert
229418f261
Update pluginwatcher to ignore CSI metadata dir and non socket files
2018-11-17 01:51:00 +01:00
Lantao Liu
59e80cdac3
Fix kubelet panic.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-11-16 16:21:57 -08:00
Matthew Wong
dd517c9ff2
Update all tests to account for BlockVolume enabled by default
2018-11-16 13:38:59 -05:00
Jordan Liggitt
733dd9dfd7
Add tests to ensure feature gate changes don't escape kubelet/scheduler packages
2018-11-16 10:52:53 -05:00
Jordan Liggitt
de8bf9b63d
fix scheduler and kubelet unit tests leaking feature flag changes
2018-11-16 10:52:53 -05:00
Jordan Liggitt
248d661327
Add tests to ensure storage feature gate changes don't escape packages
2018-11-16 10:52:53 -05:00
Michelle Au
fd64c08240
Fix storage feature gate test setting
2018-11-16 10:49:40 -05:00
k8s-ci-robot
92fe9d9491
Merge pull request #71081 from vladimirvivien/kubelet-plugin-watcher-ga-fix
...
Kubelet Plugin Registration GA migration fix
2018-11-16 05:13:18 -08:00
Jan Safranek
5283537401
Fixed clearing of devicePath after UnmountDevice
...
UnmountDevice must not clear devicepath, because such devicePath
may come from node.status (e.g. on AWS) and subsequent MountDevice
operation (that may be already enqueued) needs it.
2018-11-16 13:24:42 +01:00
chendt.fnst
c76a34bd25
Fix typos.
...
**What type of PR is this?**
/kind cleanup
**What this PR does / why we need it**:
Fix typos for stats_provider_test.go
**Which issue(s) this PR fixes** *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)*:
**Special notes for your reviewer**:
**Release note**:
```
NONE
```
2018-11-16 17:03:11 +08:00
k8s-ci-robot
e4ee887121
Merge pull request #69303 from appian/host_aliases_on_same_line
...
Write HostAliases aliases on same line per host IP
2018-11-15 14:59:52 -08:00
Vladimir Vivien
b195396154
Kubelet Plugin Registration v1 update fix
2018-11-15 17:40:35 -05:00
k8s-ci-robot
7b4d4bc8ac
Merge pull request #70508 from dashpole/pod_resources_socket
...
Add socket-based kubelet pod resources API.
2018-11-15 13:43:44 -08:00
k8s-ci-robot
504466c4e6
Merge pull request #68267 from liggitt/node-label-update
...
Limit kubelets from updating their own labels when NodeRestriction is enabled
2018-11-15 11:11:02 -08:00
David Ashpole
630cb53f82
add kubelet grpc server for pod-resources service
2018-11-15 09:43:20 -08:00
David Ashpole
aa9ba976ac
generate go client for kubelet podresources API
2018-11-15 09:38:59 -08:00
David Ashpole
3ece501f6b
add kubelet pod-resources API definition
2018-11-15 09:38:59 -08:00
Hannes Hörl
0d4b5c98f8
Bump k8s.io/uitls to 8e7ff06
...
The reason for the bump is the new functionality of the
k8s.io/utils/exec package which allows
- to get a hold of the process' std{out,err} as `io.Reader`s
- to `Start` a process and `Wait` for it
This should help on addressing #70890 by allowing to wrap std{out,err}
of the process to be wrapped with a `io.limitedReader`.
It also updates
- k8s.io/kubernetes/pkg/probe/exec.FakeCmd
- k8s.io/kubernetes/pkg/kubelet/prober.execInContainer
- k8s.io/kubernetes/cmd/kubeadm/app/phases/kubelet.fakeCmd
to implement the changed interface.
The dependency on 'k8s.io/utils/pointer' to the new version has also
been bumped in some staging repos:
- apiserver
- kube-controller-manager
- kube-scheduler
2018-11-15 13:25:12 +00:00
xichengliudui
68f9dacabf
Fix typo: trus->true
2018-11-15 01:36:15 -05:00
k8s-ci-robot
843a67b215
Merge pull request #70559 from vladimirvivien/kubelet-plugin-watcher-ga
...
Graduate Kubelet plugin registration/watcher to GA
2018-11-14 20:35:08 -08:00
k8s-ci-robot
68fb529ec1
Merge pull request #70969 from awly/node-csr-move
...
Move csr.RequestNodeCertificate into kubelet bootstrap package
2018-11-14 11:37:58 -08:00
yanghaichao12
529d5a5c50
Fix comment error of the struct 'UserDefinedMetric'
2018-11-14 11:05:06 -05:00
Vladimir Vivien
f16d3c56f6
Kubelet plugin watcher update to v1
2018-11-14 05:46:27 -05:00
Vladimir Vivien
668c532dda
Pluginregistration package updat to v1
2018-11-14 05:46:19 -05:00
Jordan Liggitt
9fb2dcad5e
Limit kubelets from updating their own labels
2018-11-13 23:48:47 -05:00
k8s-ci-robot
d3a21cf5a2
Merge pull request #70848 from cofyc/fix64590
...
Improve usability of CSI plugin metrics
2018-11-13 19:45:43 -08:00
Yann Hodique
4d9c01d747
replace golang.org/x/exp/inotify with standalone library
...
The inotify code was removed from golang.org/x/exp several years ago. Therefore
importing it from that path prevents downstream consumers from using any module
that makes use of more recent features of golang.org/x/exp.
This change is a followup to google/cadvisor#2060 which was merged with #70889
This fixes #68478
2018-11-13 14:51:40 -08:00
Andrew Lytvynov
5c073abfe1
Move csr.RequestNodeCertificate into kubelet bootstrap package
...
This func is only used by the kubelet and there's no need to pollute
client-go API with it.
2018-11-13 10:27:51 -08:00
Pingan2017
fae9bae1aa
correct log output when specifed delete gracePeriod < minimumGracePeriodInSeconds
2018-11-13 15:20:24 +08:00
Frederic Branczyk
4724fca678
pkg/kubelet/stats: Add container log size metric
2018-11-12 22:04:50 +01:00
yanghaichao12
70c418035f
correct some spelling wrong in DevicePlugin files
2018-11-12 04:44:51 -05:00
liucimin
5b78dc8b67
fix_the_checkpoint_no_hostip_bug
2018-11-12 14:41:04 +08:00
Bill Warshaw
ab507dfc1f
Write HostAliases aliases on same line per host IP
...
* change HostAliases to put all aliases for an IP
on the same line in /etc/hosts rather than writing
one line per IP-alias pair
* having multiple entries in /etc/hosts for the same IP
causes issues with DNS resolution for some software
* https://unix.stackexchange.com/questions/102660/hosts-file-is-it-incorrect-to-have-the-same-ip-address-on-multiple-lines
2018-11-11 20:54:52 -05:00
Yecheng Fu
dfe0a08f05
Improve usability of CSI plugin metrics
...
Use full qualified plugin name if volume spec is present.
2018-11-12 09:21:49 +08:00
Davanum Srinivas
e558e291d1
s/glog/klog/ - keep up with master
...
Change-Id: I27ff0545bc456ed8c0900cfeb90555f9ab7ae235
2018-11-10 07:57:01 -05:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
k8s-ci-robot
be71fbe511
Merge pull request #70034 from wangzhen127/cleanup-node-lease
...
Delete node lease if the corresponding node is deleted
2018-11-09 23:01:05 -08:00
k8s-ci-robot
bb4fbc2770
Merge pull request #70821 from RenaudWasTaken/fix-pluginwatcher-panic
...
Pluginwatcher: Fix panic on failed startup
2018-11-09 20:25:41 -08:00
Michael Taufen
1089cb629f
Don't compare interface values in dynamic config controller
...
This previously caused a panic when moving lastKnownGood between two
non-nil values, because we were comparing the interface wrapper instead
of comparing the NodeConfigSources. The case of moving from one non-nil
lastKnownGood config to another doesn't appear to be tested by the e2e
node tests. I added a unit test and an e2e node test to help catch bugs
with this case in the future.
2018-11-09 10:45:12 -08:00
Renaud Gaubert
11fef8ba3b
Pluginwatcher should prevent kubelet from starting if we cannot watch the plugin root
2018-11-09 00:20:22 +00:00
Renaud Gaubert
3a467ff44b
Pluginwatcher: log error when walking fs rather than fail
2018-11-08 23:22:07 +00:00
Renaud Gaubert
3f5039a2d1
Fix pluginwatcher panic on failed startup
2018-11-08 23:22:07 +00:00
Dan Winship
863c6ca241
Fix a CloudProvider-vs-nodeIP edge case
2018-11-08 10:34:00 -05:00
Zhen Wang
b8b12796fc
Delete node lease if the corresponding node is deleted
2018-11-07 20:31:47 -08:00
k8s-ci-robot
16d0992534
Merge pull request #69753 from wangzhen127/diff-node-status
...
Update kubelet node status report logic with node lease feature
2018-11-07 20:26:45 -08:00
Zhen Wang
98fc4a107a
Update kubelet node status report logic with node lease feature
...
When node lease feature is enabled, kubelet reports node status to api server
only if there is some change or it didn't report over last report interval.
2018-11-07 11:59:42 -08:00
k8s-ci-robot
f1bf9bef5c
Merge pull request #70678 from dashpole/fix_cgroup_manager
...
Fix slice sharing bug in cgroup manager
2018-11-07 11:36:41 -08:00
k8s-ci-robot
0aba557741
Merge pull request #70600 from liggitt/sig-auth-subprojects
...
Add owners/approvers aliases for sig-auth subprojects
2018-11-06 17:55:07 -08:00
Christian Haeusler
9e8df0f82a
Be more persistent when removing images
2018-11-06 17:01:51 +01:00
Christian Haeusler
5f904044eb
Use test table for TestRemoveImage
2018-11-06 14:37:52 +01:00
Christian Haeusler
8f266af060
Assert call details in docker remove image tests
2018-11-06 14:32:39 +01:00
k8s-ci-robot
f40a5d1155
Merge pull request #67435 from feiskyer/dns-cap
...
Add dns capabilities for Windows CNI plugins
2018-11-06 02:54:22 -08:00
Jordan Liggitt
360a890c58
serviceaccount subproject approvers/reviewers
2018-11-06 00:57:39 -05:00
Jordan Liggitt
4ebe084376
certificates subproject approvers/reviewers
2018-11-06 00:57:38 -05:00
k8s-ci-robot
160ebd3af2
Merge pull request #70162 from MIBc/commenting-error
...
Replace resyncTicker with syncTicker in comment
2018-11-05 19:04:25 -08:00
David Ashpole
d4f6ae3615
fix slice sharing bug in cgroup manager
2018-11-05 17:42:42 -08:00
changyaowei
3f422d9784
if ephemeral-storage not exist in initialCapacity, don't upgrade ephemeral-storage in node status
2018-11-05 17:32:34 +08:00
k8s-ci-robot
bb07b9b410
Merge pull request #70465 from krmayankk/runasgroup
...
add more ut for runasuser/runasusername
2018-11-02 16:44:01 -07:00
k8s-ci-robot
69f5f5eff2
Merge pull request #67978 from WanLinghao/token_controller_improve
...
remove idle tokens in kubelet token manager
2018-11-02 12:28:47 -07:00
k8s-ci-robot
77fd16e0e7
Merge pull request #69266 from SataQiu/fix-20180930
...
Remove the redundant space
2018-11-02 08:38:37 -07:00
k8s-ci-robot
08351b6d6d
Merge pull request #68230 from bertinatto/remove_mount_propagation_gate
...
Remove mount propagation feature gate
2018-11-02 01:13:43 -07:00
SataQiu
c9bc625428
Remove the redundant space
2018-11-02 15:45:11 +08:00
k8s-ci-robot
610bcbb55e
Merge pull request #70149 from anfernee/fix-70014
...
cni: rate and limit must be both set
2018-11-01 22:16:26 -07:00
k8s-ci-robot
3b66adb8bc
Merge pull request #68562 from RenaudWasTaken/pluginwatcher-doc
...
Update pluginwatcher doc
2018-11-01 17:31:29 -07:00
qingsenLi
3ac9b27b2a
remove repetitive word in annotation
2018-11-02 00:54:41 +08:00
Pengfei Ni
32cf0a90c6
Update bazel build
2018-11-01 14:15:55 +08:00
Pengfei Ni
946aff8847
Add dns capabilities to CNI for windows containers
2018-11-01 13:31:45 +08:00
k8s-ci-robot
ede4388000
Merge pull request #69313 from sjenning/crio-socket-update
...
kubelet: fix cri-o when using unix prefix
2018-10-31 11:50:13 -07:00
Fabio Bertinatto
6c9b854542
Remove mount propagation feature gate logic
2018-10-31 15:51:37 +01:00
xichengliudui
8477389e7c
Fix some types
...
Fix some typos
2018-10-31 04:05:25 -04:00
Mayank Kumar
8d6624042c
add more ut for runasuser/runasusername
2018-10-30 22:59:11 -07:00
k8s-ci-robot
5a8f831964
Merge pull request #69960 from feiskyer/win-allocatable
...
Enable allocatable support for Windows nodes
2018-10-30 21:07:41 -07:00
k8s-ci-robot
63a7e06eb5
Merge pull request #69484 from ddebroy/ddebroy-winpipe1
...
Correctly handle named pipe host mounts for Windows
2018-10-30 16:15:57 -07:00
k8s-ci-robot
45f6845a59
Merge pull request #69008 from sjenning/better-pleg-msg
...
improve pleg error msg when it has never been successful
2018-10-30 16:15:43 -07:00
Nikhita Raghunath
6285db6576
Add license header to non-generated proto files
2018-10-30 22:29:07 +05:30
Pengfei Ni
856c83e637
Enable allocatable support for Windows nodes
2018-10-30 11:17:23 +08:00
k8s-ci-robot
628e44647f
Merge pull request #70111 from Pingan2017/OOD-node
...
remove OutOfDisk condition in kubelet
2018-10-29 14:38:32 -07:00
Deep Debroy
5da66fd65f
Address code review comments
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-27 00:31:16 -07:00
Deep Debroy
119e2a1d43
Address CR comments and add more tests
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-26 00:29:27 -07:00
Deep Debroy
2e19f70922
Improve comments for when hostPath in Windows needs to be transformed
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-25 13:58:16 -07:00
Lv Jiawei
06a3391b0c
Replace resyncTicker with syncTicker in commenting
...
The variable resyncTicker in commenting is out of date. It is replaced with syncTicker.
2018-10-24 10:47:55 +08:00
k8s-ci-robot
c0974d7399
Merge pull request #69516 from feiskyer/win-npipe
...
Switch windows runtime endpoints to npipe
2018-10-23 16:44:41 -07:00
Yongkun Gui
b573cce595
cni: rate and limit must be both set
...
Fix #70014
2018-10-23 16:44:07 -07:00
k8s-ci-robot
dad07683b1
Merge pull request #69013 from ibrasho-forks/switch-to-http.Error
...
Update usages of http.ResponseWriter.WriteHeader to use http.Error
2018-10-23 15:31:55 -07:00
k8s-ci-robot
fcf11b47fc
Merge pull request #69677 from knightXun/patch-8
...
remove unnecessary time type
2018-10-22 23:59:14 -07:00
Pingan2017
36997bae77
remove OutOfDisk condition in kubelet
2018-10-23 11:01:26 +08:00
WanLinghao
060f3a84d9
trivial fix
2018-10-23 10:23:31 +08:00
Mike Danese
e5227216c0
rebase authenticators onto new interface.
2018-10-22 10:16:59 -07:00
Pengfei Ni
053b71d5d2
Switch windows runtime endpoints to npipe
2018-10-22 21:28:36 +08:00
WanLinghao
7df1078d6f
Currently, kubelet token mamanger only clean tokens who are expired. For tokens with long expiration, if the pod who creates them got killed or evicted, those tokens may stay in kubelet's memory until they are expired. It's bad for kubelet and node itself. After this patch, each time a pod was deleted, token manager would clean related tokens.
2018-10-22 09:32:59 +08:00
k8s-ci-robot
4339a70dfa
Merge pull request #68841 from krzysztof-jastrzebski/cpuandmemeory2
...
Optimizes calculating stats when only CPU and Memory stats are returned from Kubelet stats/summary http endpoint.
2018-10-18 16:41:07 -07:00
k8s-ci-robot
30a06af453
Merge pull request #69671 from mooncak/fix_kubelet
...
Delete duplicated words in logs
2018-10-17 11:57:12 -07:00
k8s-ci-robot
e85cb406eb
Merge pull request #65567 from ceshihao/pod_status_after_eviction
...
Pod status should contain ContainerStatuses if deadline exceeded
2018-10-17 11:56:41 -07:00
k8s-ci-robot
c68ee22156
Merge pull request #69613 from Pingan2017/runtimeError
...
improve err msg for runtimeError when the uptime of runtime never update
2018-10-15 13:52:51 -07:00
Ibrahim AshShohail
2fb3ba71f1
Update usages of http.ResponseWriter.WriteHeader to use http.Error
...
Signed-off-by: Ibrahim AshShohail <me@ibrasho.com>
2018-10-14 05:58:00 +03:00
Deep Debroy
f8a69f1086
Broaden scope of host path types to skip processing in Windows
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-12 19:57:08 -07:00
tanshanshan
b7c7966b9f
Move pkg/scheduler/algorithm/well_known_labels.go out
2018-10-13 09:10:00 +08:00
knight
5ed6da9d9e
remove unnecessary time type
...
remove unnecessary time type, improve volume_manager.go
2018-10-11 21:06:46 +08:00
mooncake
1e6602d6d8
Fixup log
...
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-10-11 19:14:36 +08:00
k8s-ci-robot
a8c7a3fd5e
Merge pull request #69322 from jpbetz/etcd-client-3.3.9
...
Update etcd client to 3.3 for 1.13
2018-10-10 17:56:46 -07:00
Pingan2017
a5824043be
improve err msg for runtimeError
2018-10-10 15:19:48 +08:00
k8s-ci-robot
85a8f97cb1
Merge pull request #68582 from jonfriesen/master
...
Fixes golint for pkg/probe
2018-10-09 21:14:46 -07:00
k8s-ci-robot
9ba74cb5b5
Merge pull request #69251 from yue9944882/bugfix/pass-handler-context-to-nodegetter
...
Pass server handler context to storage nodeGetter
2018-10-09 02:14:51 -07:00
Joe Betz
4263c75211
Update etcd client to 3.3.9
2018-10-08 13:34:34 -07:00
k8s-ci-robot
0f17e9ade6
Merge pull request #69386 from cblecker/go-1.11
...
Update to go1.11.1
2018-10-05 17:35:51 -07:00
Deep Debroy
b4bb5dd430
Correctly handle named pipe host mounts for Windows
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-10-05 16:46:04 -07:00
Christoph Blecker
0d63b55944
fix vet error in pkg/kubelet/kubelet_test.go
...
pkg/kubelet/kubelet_test.go:1573: *k8s.io/kubernetes/pkg/kubelet/container/testing.FakePod composite literal uses unkeyed fields
2018-10-05 15:52:44 -07:00
Christoph Blecker
97b2992dc1
Update gofmt for go1.11
2018-10-05 12:59:38 -07:00
Walter Fender
f3f46d5f5a
Moving the cloudprovider interface to staging.
...
Individual implementations are not yet being moved.
Fixed all dependencies which call the interface.
Fixed golint exceptions to reflect the move.
Added project info as per @dims and
https://github.com/kubernetes/kubernetes-template-project .
Added dims to the security contacts.
Fixed minor issues.
Added missing template files.
Copied ControllerClientBuilder interface to cp.
This allows us to break the only dependency on K8s/K8s.
Added TODO to ControllerClientBuilder.
Fixed GoDeps.
Factored in feedback from JustinSB.
2018-10-04 14:41:20 -07:00
k8s-ci-robot
e03886c34a
Merge pull request #68297 from leakingtapan/golint-fix-gce-pd
...
fix golint for pkg/volume/gce_pd
2018-10-03 13:01:34 -07:00
k8s-ci-robot
823fca1d93
Merge pull request #69159 from dcbw/cni-log-messages
...
network/cni: more informative log messages
2018-10-02 19:24:49 -07:00
Dan Williams
6cfe116375
network/cni: more informative log messages
...
Log details about the pod name, namespace, sandbox ID, and result.
Remove some useless messages that are now redundant.
2018-10-01 21:01:40 -05:00
Seth Jennings
7a12ac10be
fix cri-o when using unix prefix
2018-10-01 17:07:56 -05:00
Seth Jennings
5eab76934b
improve pleg error msg when it has never been successful
2018-10-01 16:41:01 -05:00
k8s-ci-robot
3cef522c9a
Merge pull request #69258 from chestack/gclog
...
Fix the confusing kubelet logs about imageGC
2018-10-01 13:27:31 -07:00
Cheng Pan
7d68fd00e6
fix golint for pkg/volume/gce_pd
2018-10-01 18:58:30 +00:00
zuoxiu.jm
3370907fe5
pass handler ctx to node rest nodegetter
2018-10-01 09:27:18 -04:00
k8s-ci-robot
c847a1f04b
Merge pull request #68462 from knightXun/dns
...
refactor kubelet/network/dns
2018-10-01 00:30:04 -07:00
chestack
613f572caf
Fix the confusing kubelet logs about imageGC
2018-09-29 18:09:37 +08:00
k8s-ci-robot
165faaaddf
Merge pull request #68602 from Pingan2017/internalerr
...
remove internalError in runtimeStates , not set anywhere
2018-09-28 15:47:06 -07:00
k8s-ci-robot
6c1688712d
Merge pull request #68181 from Pingan2017/golint
...
fix golint failures - some packages under /pkg/kubelet
2018-09-28 01:56:26 -07:00
Derek Carr
5f473bc8e1
Kubelet should not create a new pod sandbox if all containers are done
2018-09-27 14:21:50 -04:00
k8s-ci-robot
05196d752b
Merge pull request #69043 from deads2k/auth-01-logging
...
make sure that log includes user information
2018-09-27 07:18:31 -07:00
k8s-ci-robot
12787275f4
Merge pull request #68929 from FengyunPan2/fix-memoryLimit
...
Configure resource-only container with memory limit
2018-09-27 06:06:39 -07:00
k8s-ci-robot
3fe21e5433
Merge pull request #68922 from BenTheElder/version-staging
...
move pkg/util/version to staging
2018-09-26 22:59:42 -07:00
k8s-ci-robot
08ed1631ac
Merge pull request #68879 from Pingan2017/typo-timeout
...
fix a small typo
2018-09-26 20:37:38 -07:00
k8s-ci-robot
0ca25b8db7
Merge pull request #68816 from FengyunPan2/cgroup-info
...
Add helpful log for checking cgrop path
2018-09-26 18:10:46 -07:00
k8s-ci-robot
109b67c291
Merge pull request #66516 from tallclair/redirect
...
Add verification to apiserver redirect following
2018-09-26 15:53:09 -07:00
k8s-ci-robot
f263993b80
Merge pull request #67829 from krzysztof-jastrzebski/cpuandmemory
...
Add "only_cpu_and_memory" GET parameter to /stats/summary http handler in kubele
2018-09-26 14:42:24 -07:00
k8s-ci-robot
4404cda7ad
Merge pull request #68752 from krzysztof-jastrzebski/pod_sync
...
Start synchronizing pods after network is ready.
2018-09-26 04:56:48 -07:00
Tim Allclair
4ee9f007cb
Only allow apiserver to follow redriects to the same host
2018-09-25 17:18:55 -07:00
k8s-ci-robot
2285a7dd66
Merge pull request #68423 from smarterclayton/break_docker_types_on_credential_providre
...
Remove dependency on docker daemon for core credential types
2018-09-25 17:00:07 -07:00
k8s-ci-robot
a3e30269dc
Merge pull request #68116 from krmayankk/read-dns-code
...
add validation for etc resolve parsing
2018-09-25 14:40:32 -07:00
k8s-ci-robot
5401f9458b
Merge pull request #67877 from tianshapjq/podprefix-used
...
use podPrefix as it's defined
2018-09-25 13:29:17 -07:00
David Eads
c76f8f194c
make sure that log includes user information
2018-09-25 14:10:09 -04:00
k8s-ci-robot
a8e8e891f2
Merge pull request #68289 from denkensk/fix-simple-pkg-kubelet
...
Simple code fixed in in pkg/kubelet
2018-09-25 06:14:03 -07:00
k8s-ci-robot
c16691037d
Merge pull request #68255 from leakingtapan/golint-fix-ebs
...
Fix golint for pkg/volume/aws_ebs
2018-09-25 06:13:33 -07:00
Mayank Kumar
ef976f1f70
add validation for etc resolve parsing
2018-09-24 21:01:59 -07:00
FengyunPan2
34a8b1fd9f
Add helpful log for checking cgrop path
...
Currently I just get 'xxx cgroup does not exist', but I don't know
which path has missed. Let's add log for it.
2018-09-25 10:10:12 +08:00
k8s-ci-robot
8346631860
Merge pull request #68053 from Pingan2017/rmifblock
...
clean up unneeded else block
2018-09-24 17:17:29 -07:00
Benjamin Elder
8b56eb8588
hack/update-gofmt.sh
2018-09-24 12:21:29 -07:00
Benjamin Elder
f828c6f662
hack/update-bazel.sh
2018-09-24 12:03:24 -07:00
Benjamin Elder
088cf3c37b
find & replace version import
2018-09-24 12:03:24 -07:00
k8s-ci-robot
170dcc2ea0
Merge pull request #68754 from bradhoekstra/optional-service-env-variables
...
kubelet: Make service environment variables optional
2018-09-24 10:59:32 -07:00
Renaud Gaubert
79056292aa
Update pluginwatcher doc
2018-09-24 15:11:21 +02:00
Cheng Pan
000e30086b
fix golint for pkg/volume/aws_ebs
2018-09-22 05:56:05 +00:00
Brad Hoekstra
69551689d5
Fix spelling
2018-09-22 00:07:08 -04:00
Brad Hoekstra
42da186b62
Address review comments
2018-09-21 20:06:32 -04:00
Brad Hoekstra
c4ec40eca8
Update comment to reflect the new logic
2018-09-21 16:26:37 -04:00
Renaud Gaubert
63436ab4a3
Renamed pluginwatcher README to README.md
2018-09-21 16:25:33 +02:00
FengyunPan2
6af9e97fa5
Configure resource-only container with memory limit
...
Fixed : #68928
The docker memory limit should base on the memory capacity of
machine. Currently CgroupManager specify wrong memory limit.
2018-09-21 17:50:54 +08:00
Krzysztof Jastrzebski
ad330f7dbe
Start synchronizing pods after network is ready.
2018-09-21 10:12:49 +02:00
k8s-ci-robot
fb50b3cb32
Merge pull request #67793 from fisherxu/use_ctx
...
Refactor grpc dial with dialcontext
2018-09-20 20:35:36 -07:00
Krzysztof Jastrzebski
3b21995c95
Process only CPU and memory stats when Kubelete stats API is called with
...
only_cpu_and_memory parameter. Before all stats were processed and
removed before returning.
2018-09-20 12:35:56 +02:00
Pingan2017
5de6ada98f
fix a small typo
2018-09-20 16:04:12 +08:00
k8s-ci-robot
3429b9aca4
Merge pull request #62544 from astefanutti/56297
...
Init Kubelet runtime cache before dependent stats provider
2018-09-19 08:38:16 -07:00
Davanum Srinivas
02489f8988
Avoid setting Masked/ReadOnly paths when pod is privileged
...
In the recent PR on adding ProcMount, we introduced a regression when
pods are privileged. This shows up in 18.06 docker with kubeadm in the
kube-proxy container.
The kube-proxy container is privilged, but we end up setting the
`/proc/sys` to Read-Only which causes failures when running kube-proxy
as a pod. This shows up as a failure when using sysctl to set various
network things.
Change-Id: Ic61c4c9c961843a4e064e783fab0b54350762a8d
2018-09-18 17:46:16 -04:00
Brad Hoekstra
e8366c8e99
Fix to inject KUBERNETES_ env vars when enableServiceLinks is
...
false and the pod is in the master namespace.
2018-09-17 16:28:49 -04:00
Brad Hoekstra
ac8799a80d
kubelet: Make service environment variables optional
2018-09-17 16:27:36 -04:00
Pingan2017
158552ff35
fix golint failures - /pkg/kubelet/images
2018-09-17 10:52:25 +08:00
k8s-ci-robot
fb79943553
Merge pull request #67951 from liggitt/remove-deprecated-flags
...
Remove deprecated feature flags
2018-09-15 14:50:11 -07:00
Pingan2017
2f2c4ebc14
del internalError
2018-09-13 11:25:26 +08:00
k8s-ci-robot
9b8b6571a2
Merge pull request #68521 from yujuhong/nil-client
...
kubelet: skip initializing/using the RuntimeClass in standalone mode
2018-09-12 15:05:12 -07:00
k8s-ci-robot
37ef6eeb6d
Merge pull request #68431 from dashpole/cadvisor_godep_update
...
Update cAdvisor godeps to v0.31.0
2018-09-12 15:04:53 -07:00
Jon Friesen
b971c3e200
Fix golint for pkg/probe
...
This change adds comments to exported things and renames the tcp,
http, and exec probe interfaces to just be Prober within their
namespace.
Issue #68026
2018-09-12 14:18:16 -07:00
tianshapjq
362f7e2a09
validate if systemReservedCgroup and kubeReservedCgroup compliance with enforNodeAllocatable
2018-09-12 15:17:03 +08:00
Yu-Ju Hong
a1f7ae7ab3
kubelet: skip initializing/using the RuntimeClass in standalone mode
...
In standalone mode, kubelet will not be configured to talk to an
apiserver. The RuntimeClass manager should be disabled in this case.
2018-09-11 13:21:53 -07:00
k8s-ci-robot
25cbd1c753
Merge pull request #67781 from dashpole/fix_priority_tests
...
Fix priority tests
2018-09-10 12:48:05 -07:00
David Ashpole
788196e45b
update cadvisor to v0.31.0
2018-09-10 10:31:56 -07:00
knight
a578c707c3
refactor kubelet/network/dns
2018-09-10 17:32:28 +08:00
Kubernetes Submit Queue
60ec6bf359
Merge pull request #64867 from dixudx/missing_container_ready_ltt
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
add missing LastTransitionTime of ContainerReady condition
**What this PR does / why we need it**:
add missing LastTransitionTime of ContainerReady condition
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
xref #64646
**Special notes for your reviewer**:
/cc freehan yujuhong
**Release note**:
```release-note
add missing LastTransitionTime of ContainerReady condition
```
2018-09-08 17:22:30 -07:00
fisherxu
89f3fa3d62
use dailcontext
2018-09-08 16:07:38 +08:00
David Ashpole
90f58c1157
critical pod test should not rely on feature gate set in framework; non-critical pods are always preemptable
2018-09-07 17:43:42 -07:00
Clayton Coleman
7e398dc31f
Remove dependency on docker daemon for core credential types
...
We are removing dependencies on docker types where possible in the core
libraries. credentialprovider is generic to Docker and uses a public API
(the config file format) that must remain stable. Create an equivalent type
and use a type cast (which would error if we ever change the type) in the
dockershim. We already perform a transformation like this for CRI and so
we aren't changing much.
2018-09-07 16:36:14 -04:00
Kubernetes Submit Queue
a6eb49f0dc
Merge pull request #68195 from luxas/consolidate_componentconfig_code_standards
...
Automatic merge from submit-queue (batch tested with PRs 67950, 68195). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Consolidate componentconfig code standards
**What this PR does / why we need it**:
This PR fixes a bunch of very small misalignments in ComponentConfig packages:
- Add sane comments to all functions/variables in componentconfig `register.go` files
- Make the `register.go` files of componentconfig pkgs follow the same pattern and not differ from each other like they do today.
- Register the `openapi-gen` tag in all `doc.go` files where the pkg contains _external_ types.
- Add the `groupName` tag where missing
- Fix cases where `addKnownTypes` was registered twice in the `SchemeBuilder`
- Add `Readme` and `OWNERS` files to `Godeps` directories if missing.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
**Special notes for your reviewer**:
**Release note**:
```release-note
NONE
```
/assign @sttts @thockin
2018-09-07 11:19:40 -07:00
David Ashpole
137c6d638e
remove feature gate from kubelet defaulting
2018-09-06 18:17:09 -07:00
Kubernetes Submit Queue
4bb3712a75
Merge pull request #68119 from WanLinghao/token_controller_cachekey_fix
...
Automatic merge from submit-queue (batch tested with PRs 68119, 68191). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
fix token controller keyFunc bug
Currently, token manager use keyFunc like: `fmt.Sprintf("%q/%q/%#v", name, namespace, tr.Spec)`.
Since tr.Spec contains point fields, new token request would not reuse the cache at all.
This patch fix this, also adds unit test.
```release-note
NONE
```
2018-09-06 16:20:36 -07:00
Krzysztof Jastrzebski
138a3c7172
Add "only_cpu_and_memory" GET parameter to /stats/summary http handler in kubelet. If parameter is true then only cpu and memory will be present in response. The parameter will be used by Metric Server to avoid sending/decoding unneeded data.
2018-09-06 21:49:00 +02:00
WanLinghao
794e665d7b
Currently, token manager use keyFunc like: fmt.Sprintf("%q/%q/%#v", name, namespace, tr.Spec)
.
...
Since tr.Spec contains point fields, new token request would not reuse
the cache at all. This patch fix this, also adds unit test.
Signed-off-by: Mike Danese <mikedanese@google.com>
2018-09-06 09:03:26 -07:00
Renaud Gaubert
8dd1d27c03
Updated the device manager pluginwatcher handler
2018-09-06 15:34:46 +02:00
Renaud Gaubert
78b55eb5bf
Updated the CSI pluginwatcher handler
2018-09-06 15:34:46 +02:00
Renaud Gaubert
29d225e90c
Update pluginwatcher tests
2018-09-06 14:44:03 +02:00
Renaud Gaubert
4d18aa63cd
Refactor pluginwatcher to use the new API
2018-09-06 14:42:21 +02:00
Renaud Gaubert
2eb91e89c0
Update the plugin watcher interface
2018-09-06 14:42:21 +02:00
Lucas Käldström
83d53ea1c2
Standardize componentconfig code/comment patterns
2018-09-06 13:42:02 +03:00
Kubernetes Submit Queue
4bc9e94fee
Merge pull request #67690 from feiskyer/iptables-cross
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Kubelet: only sync iptables on linux
**What this PR does / why we need it**:
Iptables is only supported on Linux, kubelet should only sync NAT rules on Linux.
Without this PR, Kubelet on Windows would logs following errors on each `syncNetworkUtil()`:
```
kubelet.err.log:4692:E0711 22:03:42.103939 2872 kubelet_network.go:102] Failed to ensure that nat chain KUBE-MARK-DROP exists: error creating chain "KUBE-MARK-DROP": executable file
```
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #65713
**Special notes for your reviewer**:
**Release note**:
```release-note
Kubelet now only sync iptables on Linux.
```
2018-09-05 22:55:15 -07:00
wangqingcan
6506e0c51a
Simple code and typo fixed in in kubelet
2018-09-06 09:12:39 +08:00
Kubernetes Submit Queue
0df5d8d205
Merge pull request #67909 from tallclair/runtimeclass-kubelet
...
Automatic merge from submit-queue (batch tested with PRs 68161, 68023, 67909, 67955, 67731). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Dynamic RuntimeClass implementation
**What this PR does / why we need it**:
Implement RuntimeClass using the dynamic client to break the dependency on https://github.com/kubernetes/kubernetes/pull/67791
Once (if) https://github.com/kubernetes/kubernetes/pull/67791 merges, I will migrate to the typed client.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
For https://github.com/kubernetes/features/issues/585
**Release note**:
Covered by #67737
```release-note
NONE
```
/sig node
/kind feature
/priority important-soon
/milestone v1.12
2018-09-05 14:51:47 -07:00
Kubernetes Submit Queue
70a0089ae6
Merge pull request #68200 from RenaudWasTaken/pluginwatcher-beta
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
KubeletPluginsWatcher feature is beta in 1.12 release
*What this PR does / why we need it:*
Graduates DevicePlugins feature to beta.
*Which issue(s) this PR fixes:*
Related but does not fix: https://github.com/kubernetes/features/issues/595 as well as https://github.com/kubernetes/kubernetes/issues/65773
*Special notes for your reviewer:*
Includes upgrading the gRPC pluginwatcher API to beta. Based on the [device plugin model](https://github.com/kubernetes/kubernetes/pull/59588 ).
*Depends on https://github.com/kubernetes/kubernetes/pull/64621 being merged*
Release note:
```release-note
KubeletPluginsWatcher feature graduates to beta.
```
/sig node
/sig storage
/cc @vladimirvivien @sbezverk @vikaschoudhary16 @saad-ali @vishh @jiayingz
2018-09-05 13:18:39 -07:00
wangqingcan
b0c308f082
Simple code and typo fixed in in pkg/kubelet
2018-09-05 21:51:32 +08:00
Kubernetes Submit Queue
743e4fba63
Merge pull request #67709 from feiskyer/inodes-clean
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Kubelet: only apply default hard evictions of nodefs.inodesFree on Linux
**What this PR does / why we need it**:
Kubelet sets default hard evictions of `nodefs.inodesFree ` for all platforms today. This will cause errors on Windows and a lot `no observation found for eviction signal nodefs.inodesFree` errors will be logs for kubelet.
```
kubelet.err.log:4961:W0711 22:21:12.378789 2872 helpers.go:808] eviction manager: no observation found for eviction signal nodefs.inodesFree
kubelet.err.log:4967:W0711 22:21:30.411371 2872 helpers.go:808] eviction manager: no observation found for eviction signal nodefs.inodesFree
kubelet.err.log:4974:W0711 22:21:48.446456 2872 helpers.go:808] eviction manager: no observation found for eviction signal nodefs.inodesFree
kubelet.err.log:4978:W0711 22:22:06.482441 2872 helpers.go:808] eviction manager: no observation found for eviction signal nodefs.inodesFree
```
This PR updates the default hard eviction value and only apply nodefs.inodesFree on Linux.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #66088
**Special notes for your reviewer**:
**Release note**:
```release-note
Kubelet only applies default hard evictions of nodefs.inodesFree on Linux
```
2018-09-04 23:08:30 -07:00
Kubernetes Submit Queue
8f906fefae
Merge pull request #66427 from feiskyer/win-pods-stats
...
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Add kubelet stats for windows system container "pods"
**What this PR does / why we need it**:
This PR adds kubelet stats for windows system container "pods". Without this, kubelet will always logs error:
```
kubelet.err.log:4832:E0711 22:12:49.241358 2872 helpers.go:735] eviction manager: failed to construct signal: "allocatableMemory.available" error: system container "pods" not found
```
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #66087
**Special notes for your reviewer**:
/sig windows
/sig node
**Release note**:
```release-note
Add kubelet stats for windows system container "pods"
```
2018-09-04 21:59:49 -07:00
Pengfei Ni
376b45cb64
Fix unit tests for Windows
...
* TestMakeBlockVolume is moved to Linux only.
* TestMakeMounts are running on both Linux and Windows
2018-09-05 10:22:53 +08:00
Pengfei Ni
aeea967149
Kubelet: only sync iptables on linux
2018-09-05 10:22:48 +08:00
Tim Allclair
63f3bc1b7e
Implement RuntimeClass support for the Kubelet & CRI
2018-09-04 13:45:11 -07:00
Renaud Gaubert
44dd0672b6
Add pluginwatcher generated files
2018-09-04 20:22:59 +02:00
Renaud Gaubert
f8e80e45e7
Create pkg/kubelet/apis/pluginregistration/v1beta1 directory
2018-09-04 20:22:59 +02:00
Pengfei Ni
8255318b96
Kubelet: do not report used inodes on Windows
2018-09-03 16:42:33 +08:00
Pengfei Ni
e1fdaa177f
Kubelet: only apply default hard evictions of nodefs.inodesFree on Linux
2018-09-03 16:42:30 +08:00
Lucas Käldström
8b6a7ee075
autogenerated go code, godeps, bazel and gofmt
2018-09-02 14:38:59 +03:00
Lucas Käldström
15760506c2
Move the kubelet's external types to k8s.io/kubelet
2018-09-02 14:19:38 +03:00
Lucas Käldström
0707b1274f
Automated package reference rename
2018-09-02 14:15:38 +03:00
Sandor Szücs
588d2808b7
fix #51135 make CFS quota period configurable, adds a cli flag and config option to kubelet to be able to set cpu.cfs_period and defaults to 100ms as before.
...
It requires to enable feature gate CustomCPUCFSQuotaPeriod.
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
2018-09-01 20:19:59 +02:00
Kubernetes Submit Queue
33cca5251c
Merge pull request #67255 from bertinatto/promote_mount_propagation
...
Automatic merge from submit-queue (batch tested with PRs 65251, 67255, 67224, 67297, 68105). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md .
Promote mount propagation to GA
**What this PR does / why we need it**:
This PR promotes mount propagation to GA.
Website PR: https://github.com/kubernetes/website/pull/9823
**Release note**:
```release-note
Mount propagation has promoted to GA. The `MountPropagation` feature gate is deprecated and will be removed in 1.13.
```
2018-08-31 19:25:30 -07:00