Niels de Vos
e22012950b
Add Kubelet.ListBlockVolumesForPod()
2021-04-22 08:36:20 +02:00
fengzixu
edc1c62471
feature: add CSIVolumeHealth feature and gate
...
1. add EventRecorder to ResourceAnalyzer
2. add CSIVolumeHealth feature and gate
2021-03-10 01:16:37 +09:00
pacoxu
cd54bd94e9
deprecate cAdvisor json metrics collected by Kubelet
...
- remove unused code for cadvisor json metrics collected
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-02 15:36:21 +08:00
Sri Saran Balaji Vellore Rajakumar
af05a7eca3
Refactor Kubelet Server to take kubeConfiguration instead of multiple fields
2021-02-11 16:15:35 -08:00
Sri Saran Balaji Vellore Rajakumar
51cdf4e97b
Add support to disable /debug/pprof and /debug/flags/v endpoint
...
Co-authored-by: xiaofei.sun <sunxiaofei@kuaishou.com>
Co-authored-by: SaranBalaji90 <srisaranbalaji@gmail.com>
2021-02-11 15:56:53 -08:00
Tim Allclair
a439bc5572
Remove --redirect-container-streaming functionality ( #95935 )
...
* Remove --redirect-container-streaming functionality
* Update bazel
2020-11-09 11:50:11 -08:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
RainbowMango
3c7caff44d
remove deprecated kubelet endpoint /metrics/resource/v1alpha1
2020-08-28 09:16:56 +08:00
David Ashpole
1f70708f6c
update cAdvisor to v0.37.0
2020-07-09 10:23:10 -07:00
Sri Saran Balaji Vellore Rajakumar
05240c9218
Add support for disabling /logs endpoint in kubelet
2020-07-06 07:52:30 -07:00
Davanum Srinivas
5692926914
Move packages for slightly better UX for consumers
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-20 10:57:46 -04:00
Kubernetes Prow Robot
036fcda230
Merge pull request #89412 from coderanger/fix-kubelet-method-metrics
...
Apply the same style of fix as #87913 but for HTTP methods too.
2020-05-18 17:43:36 -07:00
Kubernetes Prow Robot
ba35704b51
Merge pull request #81443 from mikedanese/socks5
...
rest.Config: support configuring an explict proxy URL
2020-05-10 06:05:50 -07:00
Mike Danese
652a48d2e7
wire up proxier in spdy transport
...
and delete useless function
2020-05-07 09:13:58 -07:00
Rodrigo Villablanca
ae603b8ef1
Add some testing
2020-04-13 12:47:07 -04:00
Noah Kantrowitz
14969831e9
Apply the same style of fix as #87913 but for HTTP methods too.
...
Go does not validate HTTP methods beyond len!=0 and that they don't contain HTTP meta chars like a newline. Also to using string sets instead of maps.
2020-04-02 02:15:04 -07:00
Walter Fender
9802bfcec0
Add code to fix kubelet/metrics memory issue.
...
Bucketing url paths based on concept/handling.
Bucketing code placed by handling code to encourage usage.
Added unit tests.
Fix format.
2020-02-07 15:12:24 -08:00
Ted Yu
906adbdfcd
Require client / server protocols
2020-01-06 08:50:04 -08:00
Kubernetes Prow Robot
b72d550672
Merge pull request #78563 from qingsenLi/k8s-190531
...
Delete the redundant define test
2019-09-26 01:25:10 -07:00
Jordan Liggitt
92eb072989
Propagate context to Authorize() calls
2019-09-24 11:14:54 -04:00
zhuangqh
057caf7fcf
kubelet: refactor server containerLogs test to table driven test
...
Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
2019-09-09 10:04:45 +08:00
Tim Allclair
3f510c69f6
Remove dead code from pkg/kubelet/...
2019-08-21 10:40:21 -07:00
Tim Allclair
72951efdaf
Cleanup kubelet authz tests & make explicit
2019-07-18 13:35:11 -07:00
qingsenLi
94e4f27725
Delete the redundant define test
2019-06-04 01:13:09 +08:00
David Ashpole
785d40923a
add kubelet flag to disable cadvisor json apis, and mark it deprecrated
2019-05-30 10:39:45 -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
33081c1f07
New staging repository for cri-api
...
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04: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
Aldo Culquicondor
e61cd68bf3
Fix lint on pkg/kubelet/server/...
2019-02-21 10:31:41 -05:00
Mike Danese
e5227216c0
rebase authenticators onto new interface.
2018-10-22 10:16:59 -07: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
Tim Allclair
4ee9f007cb
Only allow apiserver to follow redriects to the same host
2018-09-25 17:18:55 -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
Yu-Ju Hong
390b158db9
kubelet: plumb context for log requests
...
This allows kubelets to stop the necessary work when the context has
been canceled (e.g., connection closed), and not leaking a goroutine
and inotify watcher waiting indefinitely.
2018-08-10 17:35:46 -07:00
Lantao Liu
1eb721248b
Update unit test.
2018-05-31 15:26:32 -07:00
Lantao Liu
174b6d0e2f
Proxy container streaming in kubelet.
2018-05-31 15:26:32 -07:00
Lantao Liu
7c17ee25ec
Remove unused limit writer.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-05-25 16:55:08 -07:00
Derek Carr
a09990cd43
Apply pod name and namespace labels for pod cgroup for cadvisor metrics
2018-05-07 14:51:12 -04:00
David Ashpole
960856f4e8
collect metrics on the /kubepods cgroup on-demand
2018-02-17 12:32:40 -08:00
Da K. Ma
9a78753144
Updated PID pressure node condition.
...
Signed-off-by: Da K. Ma <madaxa@cn.ibm.com>
2018-01-14 18:26:00 +08:00
David Ashpole
f6721480f4
enable on-demand metrics for eviction
2018-01-08 10:20:02 -08:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Mike Danese
12125455d8
move authorizers over to new interface
2017-11-03 13:46:28 -07:00
Chen Li
a4a6076924
Improve kubectl error messages
...
Fixes https://github.com/kubernetes/kubernetes/issues/34457
Part of work on https://github.com/kubernetes/kubernetes/issues/31267
2017-10-30 20:09:43 -05:00
Yang Guo
f9767d2f71
Change StatsProvider interface to provide container stats from either cadvisor or CRI and implement this interface using cadvisor
2017-08-25 13:11:26 -07:00
Clayton Coleman
d3be1ac92e
Update generic errors with the new http package codes
...
All of these errors are now part of the standard HTTP method. Formalize
those into our error types and remove duplication and unclear
separation.
2017-07-28 19:13:11 -04:00
Clayton Coleman
f5f9893824
Restore cAdvisor prometheus metrics to the main port
...
But under a new path - `/metrics/cadvisor`. This ensures a secure port
still exists for metrics while getting the benefit of separating out
container metrics from the kubelet's metrics.
2017-07-18 08:58:14 -04:00
Jacob Simpson
2c70e5df35
Manual changes.
2017-07-17 15:05:37 -07:00
Tim St. Clair
e9795e3742
Cleanup lint errors in the pkg/kubelet/server/... directory
2017-06-29 15:58:07 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00