Commit Graph

7656 Commits

Author SHA1 Message Date
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
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
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