20 Commits

Author SHA1 Message Date
Joakim Karlsson
5bfab47145
unified function to set sysctl values (#580)
* unified function to set sysctl values and Enable arp_ignore and arp_announce
2018-11-22 21:11:57 +01:00
Joakim Karlsson
4dce4b7c1d
fix typo (#579) 2018-11-19 18:24:19 +01:00
Joakim Karlsson
87718c971d make NSC set net.ipv4.vs.conn_reuse_mode=0 (#577)
* make IPVS proxier set net/ipv4/vs/conn_reuse_mode to 0 by default, which will fix the IPVS low throughput issue

* better error message

* check and inform if to old kernel to use feature
2018-11-19 22:31:24 +05:30
Inju Song
cf9bf47d52 Integrate ip_vs_mh scheduler into kube-router (#564)
* Add to set ip_vs_mh scheduler and flags

Signed-off-by: Inju Song <inju.song@navercorp.com>

* Use scheduler flags when adding or updating service

Signed-off-by: Inju Song <inju.song@navercorp.com>

* Refactor with gofmt, generate moq file and fix test source

Signed-off-by: Inju Song <inju.song@navercorp.com>
2018-11-12 14:13:07 +01:00
Murali Reddy
827bbbcd4d
infer endpoint is local from endpoints "subset.addresses.nodeName" (#560)
Fixes #557
2018-10-27 09:19:24 +05:30
JuanJo Ciarlante
b76d22f0d8 [jjo] ipAddrDel(): also delete VIP local rt addition (#514) 2018-08-13 18:21:30 +05:30
Joe Conti
e2ee6a7659 Fix blackholing of traffic when using local traffic policy / annotation (#495) 2018-07-29 19:53:17 +05:30
Murali Reddy
f340218fba
fix case where 1 min unintended delay is added when checking for tunnel interface to come ip in pod (#472) 2018-07-14 20:15:21 +05:30
Andor Uhlár
7c21815b43 Report delay metrics as seconds, not nanos (#465)
* Report delay metrics as seconds, not nanos
* "ns" -> "s" labels in example dashboard
2018-06-13 16:29:41 +02:00
Murali Reddy
21075348a3
Fixes regression, where adding service VIP to the tunnel interface inside the pods when DSR is used was failing (#462) 2018-06-08 14:09:54 +05:30
Murali Reddy
327a46d5ba
fix race condition issues with health checks (#460)
* fix race condition issues with health checks

* better log meesage when skipping heartbeat
2018-06-07 17:29:19 +05:30
Joakim Karlsson
0809548716 closes https://github.com/cloudnativelabs/kube-router/issues/413 (#457) 2018-06-04 18:52:46 +07:00
Michal Rostecki
d63c23a5f5 proxy: Fix ineffassign error (#447)
`out` variable content after executing `ip route list table` was
never used.
2018-05-24 22:59:45 +05:30
Dan LaMotte
abfb705b62 services: correct check for inactive service endpoints (#430)
* services: correct check for inactive service endpoints

* services: avoid creating ipvs services that would later get deleted
2018-05-17 19:04:35 +05:30
steigr
5421068656 Print output of ip route command as string. (#439)
`Cmd.CombinedOutput()` returns `[]byte` for the command output which, at least for `ip` commands should be a printable string. The output is now printed as string.

Furthermore the constant `KUBE_DUMMY_IF` is used for the interface name to reduce multiple definitions of the interface name.

Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-05-16 01:53:19 +05:30
Murali Reddy
0538a2a93e
perform clean-up of external ip from custom route table for external ip only if the table is not empty (#437) 2018-05-13 12:38:25 +05:30
Murali Reddy
725bff6b87
use node ip as source when accessing service VIP's from the node (#433) 2018-05-12 09:16:09 +05:30
Dan LaMotte
2f39f9833b cleanup routing table 79 (external IPs) (#431) 2018-05-11 03:19:45 +05:30
Dan LaMotte
dfca917c16 proxy: cleanup stale IPs on kube-dummy-if (#417)
Relates to #411
2018-05-02 01:09:49 +00:00
Murali Reddy
05bec8b385
break controller package to independent packages (#405) 2018-04-22 13:25:58 +00:00