Ziqi Zhao
be4535bd34
convert k8s.io/kubernetes/pkg/proxy to contextual logging, part 1
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com >
2024-04-22 13:08:41 +08:00
Daman Arora
4b40299133
pkg/proxy/nftables: handle traffic to cluster ip
...
NFTables proxy will now drop traffic directed towards unallocated
ClusterIPs and reject traffic directed towards invalid ports of
Cluster IPs.
Signed-off-by: Daman Arora <aroradaman@gmail.com >
2024-01-21 19:58:37 +05:30
Daman Arora
d23483dd7c
pkg/proxy/config: rename import aliases
...
* coreinformers -> v1informers
* discovery -> discoveryv1
* discoveryinformers -> discoveryv1informers
Signed-off-by: Daman Arora <aroradaman@gmail.com >
2024-01-21 12:36:39 +05:30
Daman Arora
212c5dd216
pkg/proxy/config: use blank identifier instead of ignoring error
...
Signed-off-by: Daman Arora <aroradaman@gmail.com >
2024-01-21 12:28:52 +05:30
Dan Winship
2ea105df63
Drop unused EndpointsHandler / EndpointsConfig from pkg/proxy/config
...
(Also NoopEndpointSliceHandler since it's no longer possible for a
proxy implementation to no-op EndpointSlice handling.)
2023-01-01 16:57:27 -05:00
jyz0309
6344d6b26d
rebuild msg and rename namespace
...
Signed-off-by: jyz0309 <45495947@qq.com >
2021-09-20 19:04:21 +08: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
Dan Winship
7f6fbc4482
Drop broken/no-op proxyconfig.EndpointsHandler implementations
...
Because the proxy.Provider interface included
proxyconfig.EndpointsHandler, all the backends needed to
implement its methods. But iptables, ipvs, and winkernel implemented
them as no-ops, and metaproxier had an implementation that wouldn't
actually work (because it couldn't handle Services with no active
Endpoints).
Since Endpoints processing in kube-proxy is deprecated (and can't be
re-enabled unless you're using a backend that doesn't support
EndpointSlice), remove proxyconfig.EndpointsHandler from the
definition of proxy.Provider and drop all the useless implementations.
2021-09-13 09:32:38 -04:00
Swetha Repakula
03b7a699c2
Kubeproxy uses V1 EndpointSlice
2021-06-30 18:41:57 -07: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
SataQiu
64a496e645
kube-proxy: some code cleanup
2020-03-17 21:46:54 +08:00
SataQiu
c4f7308e11
kube-proxy: fix incorrect log information
2020-01-22 16:35:58 +08:00
SataQiu
134c545b96
proxy: add some interface type assertions
2019-12-27 18:30:25 +08:00
Roc Chan
c9cf3f5b72
Service Topology implementation
...
* Implement Service Topology for ipvs and iptables proxier
* Add test files
* API validation
2019-11-15 13:36:43 +08:00
Rob Scott
a7e589a8c6
Promoting EndpointSlices to beta
2019-11-13 14:20:19 -08:00
Rob Scott
9665c590c7
Adding EndpointSlice support for kube-proxy ipvs and iptables proxiers
2019-08-29 01:06:52 -07:00
Yassine TIJANI
7e4c3096fe
move WaitForCacheSync to the sharedInformer package
...
Signed-off-by: Yassine TIJANI <ytijani@vmware.com >
2019-08-22 16:13:41 +01:00
xigang
4ac81d7508
Update the CleanupAndExit field for the Options and the OnServiceSynced for the ServiceHandler comment
2019-07-24 09:40:29 +08:00
Haosdent Huang
7ce6e71891
Fix typos.
2019-06-11 01:52:14 +08:00
Shintaro Murakami
bc76a18d83
Clean up code in proxy/config
2019-05-09 10:58:26 +09: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
x00416946 fisherxu
79e17e6cd7
use versioned api in kube-proxy
2018-08-16 09:59:33 +08:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Wojciech Tyczynski
ce752e3fc9
Remove no-longer used code in proxy/config
2017-05-10 12:16:35 +02:00
Wojciech Tyczynski
7a647f9d1a
Event-based iptables proxy for services
2017-04-18 13:30:59 +02:00
Wojciech Tyczynski
e22476fd42
Introduce event handlers for Services in KubeProxy.
2017-04-18 11:14:07 +02:00
Andy Goldstein
e63fcf708d
Make controller Run methods consistent
...
- startup/shutdown logging
- wait for cache sync logging
- defer utilruntime.HandleCrash()
- wait for stop channel before exiting
2017-04-14 07:27:45 -04:00
Wojciech Tyczynski
af710835fa
Remove deprecated code from proxy/config
2017-04-12 11:17:49 +02:00
Wojciech Tyczynski
f7c06ad23c
Support endpoints event handlers in kube-proxy
2017-04-10 11:59:21 +02:00
Andy Goldstein
d2bc4d0b2e
Use shared informers for proxy endpoints and service configs
...
Use shared informers instead of creating local controllers/reflectors
for the proxy's endpoints and service configs. This allows downstream
integrators to pass in preexisting shared informers to save on memory &
cpu usage.
This also enables the cache mutation detector for kube-proxy for those
presubmit jobs that already turn it on.
2017-04-04 12:51:41 -04:00
Tim Hockin
adf30aa2e1
kube-proxy: OnServiceUpdate takes pointers
...
This signature is more consistent with OnEndpointsUpdate and removes a
copy loop. This is part on ongoing cleanup to rate-limit iptables
calls.
2017-04-03 17:19:39 -07:00
Wojciech Tyczynski
142c5a963d
Cleanup proxy/config
2017-03-26 11:07:36 +02:00
Wojciech Tyczynski
7ce368ccd2
Simplify proxy config for Services by removing Mux.
2017-03-26 11:07:36 +02:00
Wojciech Tyczynski
596527dafa
Simplify proxy config for Endpoints by removing Mux.
2017-03-26 11:07:36 +02:00
Wojciech Tyczynski
2a6083c3e7
Avoid copying endpoints object in kube-proxy
2017-03-25 17:41:42 +01:00
Wojciech Tyczynski
df9cc0a59f
Sync ipttables only when reflectors are fully synced
2017-02-28 16:53:03 +01:00
Wojciech Tyczynski
c789704e8e
Switch kube-proxy to informers
2017-02-27 16:16:26 +01:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
LouZhengwei
9fe0b88f92
fix bug of closing the same channel multiple times
2016-11-24 23:41:48 +08:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Prashanth Balasubramanian
f9b96d2c71
Make sure at least one interrupt is buffered before dropping.
2016-02-03 19:23:17 -08:00
Prashanth Balasubramanian
e1fa6e9fb8
kube-proxy applies latest snapshot of endpoints and services.
2016-02-03 12:58:37 -08:00
Tim Hockin
f1a48574a6
Clean up logging, make initial sync faster
2015-08-17 20:52:06 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
BenTheElder
6bbf2aaab7
Refactor pkg/proxy/config's ServiceConfigHandler and EndpointsConfigHandler to have different update methods.
...
Refactor `pkg/proxy/config`’s ServiceConfigHandler.OnUpdate and
EndpointsConfigHandler.OnUpdate to different method names as they have
different signatures.
This will let the new proxy
(https://github.com/GoogleCloudPlatform/kubernetes/issues/3760 )
implement both interfaces.
Since we won’t need a separate loadbalancer structure (load balancing
is handled in the proxy rules), we will simply handle both event types
from the same object.
2015-08-08 15:16:55 -04:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Eric Paris
6b3a6e6b98
Make copyright ownership statement generic
...
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Quinton Hoole
cc72eaec3a
Fix services namespace clash.
...
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00