Quan Tian
8a73e79777
Fix outdated code comments of proxierHealthServer
...
Signed-off-by: Quan Tian <qtian@vmware.com>
2022-09-21 23:21:19 +08:00
cyclinder
3fa4705aea
kube-proxy: fix healthz return unexpect code 200
2022-05-04 14:05:24 +08:00
Nikhil Sharma
c58fec6ccf
removed unnecessary log line
2022-01-09 11:48:03 +05:30
Shivanshu Raj Shrivastava
d3350f45e5
Migrated proxier_health.go , proxier.go to structured logging ( #105767 )
...
* fixed improperly migrated logs
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
2021-10-21 10:17:48 -07:00
Shivanshu Raj Shrivastava
81636f2158
Fixed improperly migrated logs ( #105763 )
...
* fixed improperly migrated logs
* small fixes
* small fix
* Update pkg/proxy/iptables/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/healthcheck/service_health.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/iptables/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/iptables/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/iptables/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/iptables/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/ipvs/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/ipvs/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/ipvs/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* Update pkg/proxy/winkernel/proxier.go
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
* refactoring
* refactoring
* refactoring
* reverted some files back to master
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
2021-10-20 03:55:58 -07:00
Kubernetes Prow Robot
acbeaf8b8e
Merge pull request #104944 from jyz0309/migrate-log
...
Migrate `cmd/proxy/{config, healthcheck, winkernel}` to structured logging
2021-09-20 15:02:37 -07:00
Kubernetes Prow Robot
353f0a5eab
Merge pull request #105095 from wojtek-t/migrate_clock_3
...
Unify towards k8s.io/utils/clock - part 3
2021-09-20 12:46:45 -07:00
jyz0309
6344d6b26d
rebuild msg and rename namespace
...
Signed-off-by: jyz0309 <45495947@qq.com>
2021-09-20 19:04:21 +08:00
Shivanshu Raj Shrivastava
bbd809cbd0
Fixing incorrectly migrated structured logs ( #105122 )
...
* added keys for structured logging
* used KObj
2021-09-19 12:28:08 -07:00
wojtekt
d9b08c611d
Migrate to k8s.io/utils/clock
2021-09-17 15:19:08 +02:00
jyz0309
615c69643b
migrate to struct log for proxy
...
Signed-off-by: jyz0309 <45495947@qq.com>
remove useless str
Signed-off-by: jyz0309 <45495947@qq.com>
fix comment
Signed-off-by: jyz0309 <45495947@qq.com>
fix comment
Signed-off-by: jyz0309 <45495947@qq.com>
2021-09-16 18:01:22 +08:00
Khaled (Kal) Henidak
784c31cca1
change health checkport to listen to node port addresses
2021-09-13 18:27:06 +00:00
Yuan-Junliang
2e06066bab
Migrate kube-proxy to use v1 Event API
2021-06-13 18:57:52 +08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08: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
Tim Hockin
15632b10cb
Clean up kube-proxy metrics startup
2020-03-30 10:29:14 -07:00
Tim Hockin
8747ba9370
Clean up kube-proxy healthz startup
...
Make the healthz package simpler, move retries back to caller.
2020-03-30 10:29:14 -07:00
Ted Yu
7a0690cd59
Use ProxierHealthUpdater directly to avoid panic
2020-02-10 09:41:09 -08:00
SataQiu
134c545b96
proxy: add some interface type assertions
2019-12-27 18:30:25 +08:00
Mark Janssen
a54e5cec54
Fix staticcheck failures for pkg/proxy/...
...
Errors from staticcheck:
pkg/proxy/healthcheck/proxier_health.go:55:2: field port is unused (U1000)
pkg/proxy/healthcheck/proxier_health.go:162:20: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
pkg/proxy/healthcheck/service_health.go:166:20: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)
pkg/proxy/iptables/proxier.go:737:2: this value of args is never used (SA4006)
pkg/proxy/iptables/proxier.go:737:15: this result of append is never used, except maybe in other appends (SA4010)
pkg/proxy/iptables/proxier.go:1287:28: this result of append is never used, except maybe in other appends (SA4010)
pkg/proxy/userspace/proxysocket.go:293:3: this value of n is never used (SA4006)
pkg/proxy/winkernel/metrics.go:74:6: func sinceInMicroseconds is unused (U1000)
pkg/proxy/winkernel/metrics.go:79:6: func sinceInSeconds is unused (U1000)
pkg/proxy/winuserspace/proxier.go:94:2: field portMapMutex is unused (U1000)
pkg/proxy/winuserspace/proxier.go:118:2: field owner is unused (U1000)
pkg/proxy/winuserspace/proxier.go:119:2: field socket is unused (U1000)
pkg/proxy/winuserspace/proxysocket.go:620:4: this value of n is never used (SA4006)
2019-12-22 21:32:06 +01:00
Dan Winship
f83474916e
Fix kube-proxy healthz server for proxier sync loop changes
...
The proxy healthz server assumed that kube-proxy would regularly call
UpdateTimestamp() even when nothing changed, but that's no longer
true. Fix it to only report unhealthiness when updates have been
received from the apiserver but not promptly pushed out to
iptables/ipvs.
2019-10-04 13:37:09 -04:00
Dan Winship
0f10102c16
Better distinguish the two kinds of proxy health check servers
...
Kube-proxy runs two different health servers; one for monitoring the
health of kube-proxy itself, and one for monitoring the health of
specific services. Rename them to "ProxierHealthServer" and
"ServiceHealthServer" to make this clearer, and do a bit of API
cleanup too.
2019-10-04 10:37:58 -04:00
Tim Allclair
ef6cba0b36
Always set content-type & nosniff
2019-09-11 15:01:43 -07:00
Dan Williams
91716989b6
pkg/proxy: add sig-network-approvers/sig-network-reviewers to OWNERS files
...
This PR also adds m1093782566 (Jun Du) to sig-network-reviewers in
recognition of his contributions to the proxy.
2019-05-13 10:30:29 -05:00
Ted Yu
9fb6a100c8
Use read lock in ServeHTTP
2019-04-18 11:40:29 -07:00
Kubernetes Prow Robot
808f2cf0ef
Merge pull request #72525 from justinsb/owners_should_not_be_executable
...
Remove executable file permission from OWNERS files
2019-02-14 23:55:45 -08:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Sascha Grunert
ba7aaa911d
Update dedent to latest release
...
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-01-17 08:30:07 +01:00
Justin SB
dd19b923b7
Remove executable file permission from OWNERS files
2019-01-11 16:42:59 -08: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
tanshanshan
8598c9dceb
remove unused format log print
2018-08-27 17:10:24 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Di Xu
48388fec7e
fix all the typos across the project
2018-02-11 11:04:14 +08:00
Jeff Grafton
efee0704c6
Autogenerate BUILD files
2017-12-23 13:12:11 -08:00
Dr. Stefan Schimanski
bec617f3cc
Update generated files
2017-11-09 12:14:08 +01:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
Zihong Zheng
db379de778
Emit event and retry when fail to start healthz server on kube-proxy.
2017-07-27 20:54:51 -07:00
supereagle
adc0eef43e
remove duplicated import and wrong alias name of api package
2017-07-25 10:04:25 +08:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f2d3220a11
run root-rewrite-import-client-go-api-types
2017-06-22 11:30:59 -07:00
Zihong Zheng
41c4e965c3
Fix potential nil pointer dereference for kube-proxy healthcheck
2017-05-25 10:26:51 -07:00
Clayton Coleman
3e095d12b4
Refactor move of client-go/util/clock to apimachinery
2017-05-20 14:19:48 -04:00
Zihong Zheng
e5db5dc3a1
Autogenerated files
2017-05-05 14:44:38 -07:00
Zihong Zheng
eed08362d8
Add healthz server support to healthcheck package
2017-05-05 14:42:27 -07:00
Chao Xu
958903509c
bazel
2017-04-27 09:41:53 -07:00