Kubernetes Prow Robot
ea006f5246
Merge pull request #108531 from tallclair/redirects
...
Don't follow redirects with spdy
2022-03-25 15:34:23 -07:00
Kir Kolyshkin
4513de06a8
Regen mocks using go 1.18
...
Generated by ./hack/update-mocks.sh using go 1.18
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-03-23 10:19:38 -07:00
Kubernetes Prow Robot
5cb6fab8f6
Merge pull request #105585 from fengzixu/improvement-volume-health
...
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-17 01:32:38 +00:00
Maciej Borsz
aa95513982
Revert "add volume kubelet_volume_stats_health_abnormal to kubelet"
2022-03-16 13:44:09 +01:00
Kubernetes Prow Robot
1a5abe5d1f
Merge pull request #105585 from fengzixu/improvement-volume-health
...
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-15 05:58:11 -07:00
Kubernetes Prow Robot
7858fc93e5
Merge pull request #108004 from equinix-ms/kubelet-include-oommetrics
...
kubelet: expose OOM metrics
2022-03-14 23:14:13 -07:00
Tim Allclair
e1069c6495
Don't follow redirects with spdy
2022-03-04 16:08:58 -08:00
Jorik Jonker
27b8f13763
kubelet: expose OOM metrics
...
cAdvisor has code to expose OOM metrics since 0.40.0, but this was not
included in Kubelet so far. This commit enables it.
Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
2022-02-08 12:24:25 +01:00
Jack
7655702313
add container probe duration metrics
2022-01-20 16:50:02 -08:00
Paco Xu
6611c36372
add volume type and seperated histogram for volume stat collection
2022-01-19 22:33:37 +08:00
Paco Xu
e3745a10aa
add warning log if volume calculation took too long than 1 second
2022-01-17 10:40:49 +08:00
fengzixu
5d544d3f01
fix comment
2022-01-11 14:28:31 +00:00
fengzixu
b885deffe3
fix unit test
2022-01-11 13:50:17 +00:00
fengzixu
ed7fd0ced5
add volumeHealth label to metrics
2022-01-11 13:50:17 +00:00
fengzixu
d71e21e01e
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-01-11 13:50:17 +00:00
Paco Xu
c5d8354e0e
add "kubelet_volume_stat_cal_duration_seconds_bucket" VolumeStatCalDuration metrics for fsquato monitoring benchmark
2021-12-31 11:39:40 +08:00
Kubernetes Prow Robot
1d66302c42
Merge pull request #106458 from dims/lint-yaml-in-owners-files
...
Lint/Beautify yaml in OWNERS files
2021-12-10 06:39:12 -08:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Shivam Sandbhor
6652c54d83
Remove invalid comment in legacyregistry
...
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-18 15:05:00 +05:30
Sascha Grunert
de37b9d293
Make CRI v1
the default and allow a fallback to v1alpha2
...
This patch makes the CRI `v1` API the new project-wide default version.
To allow backwards compatibility, a fallback to `v1alpha2` has been added
as well. This fallback can either used by automatically determined by
the kubelet.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-11-17 11:05:05 -08:00
Hanna Lee
07a883d8e6
Remove //lint:ignore pragmas that aren't being used anymore
2021-11-17 08:56:54 +01:00
Hanna Lee
0f3836dcc5
Ignore deprecation warnings with //nolint:staticcheck
2021-11-17 08:55:57 +01:00
David Porter
b6269ce5de
kubelet: update cAdvisor usage for v0.43
...
* Change cAdvisor manager constructor
* Change call to adding AcceleratorUsageMetrics
Signed-off-by: David Porter <david@porter.me>
2021-11-09 17:09:12 -08:00
Patrick Ohly
a8c930ef46
generic ephemeral volume: graduation to GA
...
The feature gate gets locked to "true", with the goal to remove it in two
releases.
All code now can assume that the feature is enabled. Tests for "feature
disabled" are no longer needed and get removed.
Some code wasn't using the new helper functions yet. That gets changed while
touching those lines.
2021-10-11 20:54:20 +02:00
Patrick Ohly
b1ba381ef8
kubelet: also provide filesystem stats for generic ephemeral volumes
...
When checking for a reference to a PVC, the code also needs to consider that a
PVC might be referenced indirectly through an ephemeral volume source.
2021-10-08 12:11:52 +02:00
vikram Jadhav
0de4397490
mockery to mockgen conversion
2021-09-25 16:15:08 +00:00
Stephen Augustus
481cf6fbe7
generated: Run hack/update-gofmt.sh
...
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
Antonio Ojea
0cd75e8fec
run hack/update-netparse-cve.sh
2021-08-20 10:42:09 +02:00
Kubernetes Prow Robot
b559434c02
Merge pull request #103059 from rajaSahil/fix-error
...
Update github.com/pkg/errors to go native errors pkg
2021-08-17 10:29:25 -07:00
Jordan Liggitt
db48793269
Set idle and readheader timeouts
2021-07-27 11:58:45 -04:00
Artyom Lukianov
03830db82d
Implement all necessary methods to provide memory manager data under pod resources metrics
...
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-06-22 13:06:32 +03:00
Sahil Raja
8eee78a61f
Update github.com/pkg/errors to go native errors pkg
...
Signed-off-by: Sahil Raja <sahil.raja@mayadata.io>
2021-06-21 23:03:14 +05:30
Niels de Vos
b997e0e4d6
Add SupportsMetrics() for Block-mode volumes
...
Volumes that are provisioned with `VolumeMode: Block` often have a
MetrucsProvider interface declared in their type. However, the
MetricsProvider should implement a GetMetrics() function. In the cases
where the storage drivers do not implement GetMetrics(), a panic can
occur.
Usual type-assertions are not sufficient in this case. All assertions
assume the interface is present. There is no straight forward way to
verify that a valid GetMetrics() function is provided.
By adding SupportsMetrics(), storage driver implementations require
careful reviewing for metrics support.
2021-05-20 17:10:23 +02:00
Niels de Vos
fb703b4cc1
Include metrics of BlockVolumes in volumeStatCalculator
2021-04-22 18:21:46 +02:00
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
Kubernetes Prow Robot
449e2f1777
Merge pull request #99838 from adisky/s-log-server
...
Migrate pkg/kubelet/server to structured logging
2021-03-08 16:27:36 -08:00
Aditi Sharma
5af10e9828
Migrate to structured logging
...
migrate pkg/kubelet/server to structured logging.
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-03-05 17:55:48 +05:30
Shintaro Murakami
fe7a862c2d
Unify determination of whether a volume is ephemeral
2021-03-05 14:49:09 +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
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -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
chenyw1990
db5de9169f
pkg/kubelet/server: migrate to structured logs
2021-02-09 15:34:52 +08:00
Erik Wilson
a4037d2684
Fix cadvisor machine metrics
...
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
2020-12-04 10:08:05 +08:00
Alexey Perevalov
a8b8995ef2
Implement TopologyInfo and cpu_ids in podresources
...
It covers deviceplugin & cpumanager.
It has drawback, since cpuset and all other structs including cadvisor's keep
cpu as int, but for protobuf based interface is better to have fixed
int.
This patch also introduces additional interface CPUsProvider, while
DeviceProvider might have been extended too.
Checkpoint not covered by unit test.
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com>
2020-11-11 13:50:49 +03:00
Kubernetes Prow Robot
6e95025994
Merge pull request #92165 from RenaudWasTaken/v1-pod-resources
...
Graduate the Pod Resources API to G.A
2020-11-09 18:24:41 -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
Renaud Gaubert
817bf784d2
Kubelet now implements the V1 podresources API
2020-10-26 12:10:18 -07:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
Renaud Gaubert
4eadf40448
Run gofmt
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 06:22:44 -07:00
Renaud Gaubert
ba95a8c641
run hack/update-vendor.sh
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 05:13:33 -07:00
Renaud Gaubert
60304452ff
Move podresources api to k8s.io/kubelet/pkg/apis
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-09-15 05:13:33 -07:00
RainbowMango
3c7caff44d
remove deprecated kubelet endpoint /metrics/resource/v1alpha1
2020-08-28 09:16:56 +08:00
Jordan Liggitt
f33dc28094
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
2020-07-25 16:45:02 -04:00
Renaud Gaubert
34dc785c0b
Add the DisableAcceleratorUsageMetrics feature gate
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
2020-07-13 20:52:06 +00: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
Kubernetes Prow Robot
0e37bcce2c
Merge pull request #88385 from tallclair/node-reviews
...
Remove tallclair from some OWNERS files
2020-05-24 20:23:11 -07:00
Davanum Srinivas
0608e8be25
update bazel BUILD files
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-20 10:57:47 -04: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
b170451caa
Merge pull request #90183 from dims/update-kubernetes-to-klog-v2
...
Update kubernetes to klog v2
2020-05-16 18:59:51 -07:00
Kubernetes Prow Robot
42fa1c081f
Merge pull request #88568 from RainbowMango/pr_cleanup_resource_metrics_ut
...
Clean up duplicate code and remove import cycle.
2020-05-16 16:09:36 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Davanum Srinivas
9006b2db69
Fix for API change in cadvisor
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:53:03 -04:00
Tim Allclair
029a144ae9
Remove tallclair from some OWNERS files
2020-05-11 11:44:38 -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
Kubernetes Prow Robot
423c17d859
Merge pull request #90086 from rvillablanca/fix/handle-error-parseform
...
Handling error returned by request.Request.ParseForm()
2020-05-09 22:07:50 -07:00
Mike Danese
652a48d2e7
wire up proxier in spdy transport
...
and delete useless function
2020-05-07 09:13:58 -07:00
cici37
7f4d19167e
Move pkg/util/configz to k8s.io/component-base
2020-04-29 12:17:25 -07:00
Aaron Crickenberger
a7af20922f
use forbiddenPrefixes instead of allowedPrefixes
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
f306a0dbb4
convert .import-restrictions to yaml
...
yaml has comments, so we can explain why we have certain rules or
certain prefixes
for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
2020-04-28 08:41:36 -07:00
Rodrigo Villablanca
1014d307a5
After run ./hack/update-bazel.sh
2020-04-15 09:24:54 -04:00
Rodrigo Villablanca
ae603b8ef1
Add some testing
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
0972c9ba4d
Improvements
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
a68482290d
Handling error returned by request.Request.ParseForm()
2020-04-13 12:47:07 -04:00
Kubernetes Prow Robot
9441df3aad
Merge pull request #89808 from fuweid/close-resize-chan
...
remotecommand: close resize channel for notification
2020-04-06 13:47:46 -07:00
Wei Fu
d2b59f10c5
remotecommand: close resize channel for notification
...
Remotecommand package should notify executor by closing resizeChan.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2020-04-06 23:32:23 +08: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
Davanum Srinivas
a1bceb8915
add import restrictions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-30 10:45:22 -04:00
Davanum Srinivas
765e926d35
Avoid using internal packages for streaming/ package
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-29 18:42:27 -04:00
RainbowMango
7b7c73bf87
Clean up duplicate code and remove import cycle.
2020-02-26 15:19:29 +08: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
Kubernetes Prow Robot
be26fbc638
Merge pull request #86282 from RainbowMango/pr_refactor_resource_endpoint
...
Refactor kubelet resource metrics
2020-01-14 02:23:09 -08:00
Ted Yu
906adbdfcd
Require client / server protocols
2020-01-06 08:50:04 -08:00
RainbowMango
c394d821fd
Deal with auto-generated files:
...
- Update bazel by hack/update-bazel.sh
2019-12-16 10:27:02 +08:00
RainbowMango
ecf5f7d749
Deprecated metrics under /metrics/resource/v1alpha1
2019-12-16 10:27:02 +08:00
RainbowMango
0db7074e1a
Add new endpoint for resource metrics.
2019-12-16 10:26:54 +08:00
RainbowMango
214228f024
Remove the derprecated API RawRegister from stability framework
2019-11-19 18:56:09 +08:00
RainbowMango
159f56bf9b
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-11-08 20:21:48 +08:00
RainbowMango
2e8dcf7809
Migrate custom collector and mark metrics with ALPHA.
2019-11-08 20:19:37 +08:00
Kubernetes Prow Robot
f7d0e9b3f1
Merge pull request #84393 from wuyafang/remove_promhttp_from_kubelet
...
remove reference to promhttp in kubelet
2019-11-07 13:27:42 -08:00
Jordan Liggitt
297570e06a
hack/update-vendor.sh
2019-11-06 17:42:34 -05:00
wuyafang
78d24f59dd
remove reference to promhttp in kubelet
2019-10-26 09:10:33 +08:00
David Eads
ff689ce3de
set backup value to ensure connections against kubelets eventually close
2019-10-16 13:39:14 -04:00
SataQiu
77f42c8108
eliminate direct references to prometheus
2019-10-04 21:33:34 +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