Lucas Käldström
0140c82c16
Updated references from k8s.io/{apiserver,apimachinery} to the new k8s.io/component-base repo. Co-authored-by @Klaven
2019-01-06 14:01:26 +02:00
Steve Sloka
5834f94598
Allow hostname-override flag to be used if specified
...
Signed-off-by: Steve Sloka <steves@heptio.com>
2018-10-02 16:09:01 -04:00
liangwei
152e326722
referencing ClientConnectionConfiguration from k8s.io/apimachinery/pkg/apis/config
2018-08-28 09:10:11 +08:00
liangwei
6a048c3b96
Move pkg/proxy/apis/kubeproxyconfig to pkg/proxy/apis/config
2018-08-27 10:30:42 +08:00
stewart-yu
55251c716a
update the import file for move util/pointer to k8s.io/utils
2018-07-27 19:47:02 +08:00
m1093782566
674a31e4d6
remove ipvs feature gateway
2018-05-30 10:43:16 +08:00
Rohit Ramkumar
056ae4421c
Add --ipvs-exclude-cidrs flag to kube-proxy.
2018-04-13 10:09:14 -07:00
Ryan Hitchman
01a9f83028
Move linux-only getProxyMode tests to a linux-only file.
2018-02-27 13:53:32 -08:00
m1093782566
bc850adce4
add nodeport-addresses flag for kube-proxy
2018-02-26 23:48:46 +08:00
xiangpengzhao
57071d85ee
Migrate FeatureGates type of kube-proxy from string to map[string]bool
2018-02-11 14:40:13 +08:00
Andy Goldstein
fa3fb91a76
kube-proxy: fix field name comments & json tags
...
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2018-01-02 10:20:43 -05:00
m1093782566
1a10652173
test ipvs proxy mode when feature gateway set
2017-11-28 09:33:09 +08:00
m1093782566
7b372143c5
test ipvs proxy mode when feature gateway unset
2017-11-27 20:06:51 +08:00
m1093782566
dc2e57ba74
refactor canUseIPVSMode and test it
2017-11-27 20:06:47 +08:00
Tim Hockin
79778288de
Fix NewProxyServer
...
Different OSes need different args. This is not a great fix, but better
than adding an arg to Windows which doesn't need it.
2017-11-22 14:17:10 -08:00
m1093782566
f3e744b661
add cleanup-ipvs flag
2017-11-21 15:05:23 +08:00
m1093782566
268da85445
fix fakeIPSet ut error
2017-11-19 12:39:43 +08:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Andy Goldstein
ea78586832
Re-allow 0 for kube-proxy conntrack settings
...
When kube-proxy was refactored to use a configuration file, the ability
to use 0 for conntrack min, max, max per core, and tcp timeouts was
inadvertently broken; if you specified 0, it would instead apply the
default value from defaults.go.
This change restores the ability to use 0 to mean 0.
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
2017-11-07 14:45:30 -05:00
xiangpengzhao
291647e6d9
Use "kubeproxy.config.k8s.io" as final group name.
2017-11-04 11:42:36 +08:00
xiangpengzhao
ff36eefd17
Rename kubeproxy config pkg and group.
2017-11-04 11:42:36 +08:00
xiangpengzhao
91ab8fe1e7
NewOptions doesn't need to return error in signature.
2017-11-04 11:38:57 +08:00
xiangpengzhao
2b938b985c
Use const GroupName instead of hard-code.
2017-11-04 11:38:57 +08:00
xiangpengzhao
5c8c1f43fa
move KubeProxyConfiguration out of componentconfig API group
2017-11-04 11:38:57 +08:00
Dane LeBlanc
6d71eb590b
Add check for IPv6 '::' when calculating kube-proxy's node IP
...
kube-proxy currently checks for a bind address of 0.0.0.0 (IPv4 all-zeros)
when calculating kube-proxy's node IP, but it does not check for
an address of '::' (IPv6 all-zeros). For either of those all-zeros
addresses, the node IP should be determined based on the hostname,
rather than using the address directly.
Also added a helpful log message when the kube-proxy protocol is
determined to be IPv6.
fixes #52613
2017-09-25 17:54:57 -04:00
m1093782566
8487b1653e
ut test load ipvs config
2017-09-13 17:03:26 +08:00
m1093782566
5ed2b44ca7
implement ipvs mode of kube-proxy
...
Conflicts:
pkg/util/ipvs/ipvs_unsupported.go
2017-08-30 10:03:02 +08:00
Kubernetes Submit Queue
0c2f816646
Merge pull request #48237 from xiangpengzhao/fix-proxy-test
...
Automatic merge from submit-queue
Add test for kube-proxy running with "--cleanup-iptables=true"
**What this PR does / why we need it**:
Add test to prevent such kube-proxy panic to happen again.
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48177
**Special notes for your reviewer**:
Forgot to add this in last PR #48183 . Should we also add this to v1.7 milestone?
/cc @ncdc @dchen1107
**Release note**:
```release-note
NONE
```
2017-08-03 22:03:31 -07:00
xiangpengzhao
01daf707c5
Refactor: pkg/util into sub-pkgs
2017-07-18 14:34:08 +08:00
xiangpengzhao
c685df7a6a
Add test for kube-proxy running with "--cleanup-iptables=true"
2017-07-17 16:44:46 +08:00
Dane LeBlanc
c2cb2b3c71
Add IPv6 test cases to kube-proxy server test.
...
fixes #47313
2017-06-12 13:05:47 -04:00
Andy Goldstein
032e2f6652
kube-proxy: add --write-config flag
...
Add --write-config flag to kube-proxy to write the default configuration
values to the specified file location.
2017-05-18 10:34:22 -04:00
Andy Goldstein
43cb024402
Add kube-proxy config file support
...
Add support for configuring kube-proxy via a config file instead of
command line flags.
2017-05-01 18:02:47 -04:00
FengyunPan
b95b95dc00
Optimize getProxyMode() to get proxy mode
...
The getProxyMode() does not need nodeGetter args after remove
proxy-mode annotation.
2017-04-13 09:44:30 +08:00
Christoph Blecker
a9dfd254c7
Remove proxy-mode annotation from kube-proxy
...
This removes the net.experimental.kubernetes.io/proxy-mode and net.beta.kubernetes.io/proxy-mode annotations from kube-proxy.
2017-01-28 09:12:28 -08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Wojciech Tyczynski
e8d1cba875
GetOptions in client calls
2016-12-09 09:42:01 +01:00
Tim Hockin
957c85a8fd
Add a lower-bound for conntrack
2016-09-26 20:25:40 -07:00
Angus Salkeld
f785f3d3ef
Clean up IPTables caps i.e.: sed -i "s/Iptables/IPTables/g"
2016-08-29 10:34:42 +10:00
Tim Hockin
1f37281dae
Scale kube-proxy conntrack limits by cores
...
For large machines we want more conntrack entries than smaller machines.
2016-07-15 16:36:40 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Tim Hockin
11f75e61b9
Inject a kernel-compat tester for kube-proxy test
2016-02-02 22:11:39 -08:00
Eric Tune
0bb716d6b2
Stop test spew on non-Linux.
...
Make kube-proxy test not run on non-linux to avoid
error spew.
2016-01-19 06:54:38 -08:00
Nagarjun
c98364e79b
insert space after comment character in cmd folder
2016-01-08 16:25:57 +05:30
Clayton Coleman
715b77cbcd
Split proxy and scheduler arguments
...
Keep options and flags distinct from initialization
2016-01-06 21:34:31 -05:00
Tim Hockin
970c045848
Enable iptables kube-proxy by default in master
2015-11-13 18:38:01 -08:00
Tim Hockin
4a2e64d3eb
Add beta annotation for kube-proxy
2015-10-14 15:31:37 -07:00
Avesh Agarwal
888a488162
Adds new tests and increases code coverage.
2015-10-06 18:24:08 -04:00
Tim Hockin
bd3cd82a12
Change kube-proxy flag: annotation for proxy-mode
...
This changes the --legacy-userspace-proxy flag to be a string flag
--proxy-mode. If specified, the flag will be respected ('userspace' and
'iptables' being valid values). If left blank (default) we will choose the
"best". best means userspace for now UNLESS the user adds an annotation
(net.experimental.kubernetes.io/proxy-mode) to their node, in which case we
will try to use that.
This allows people to try it on a single machine without fear of global failure
and without it getting rolled back on reboots. It is a poor-man's config blob.
2015-09-21 18:06:24 -07:00