33 Commits

Author SHA1 Message Date
Joakim Karlsson
54eedcd049 Issue 572 - Graceful termination + Update to go-1.10.8, alpine-3.9 (#706)
* update netlink

* update libnetwork to get ipvs stats

* update gopkg.lock for libnetwork update

* update libnetwork

* add cli options

* make endpoints delete gracefully

* move conntrack flusher

* get some order in the mainloop

* update to alpine 3.9 & go 1.11.1

* revert to 1.10.3 just update alpine

* and revert travis.yml

* lock version

* test 1.12

* test
2019-04-25 22:57:10 +05:30
Lucas Servén Marín
e2301761a5 docs,pkgs: change 'can not' to 'cannot' (#701)
This commit fixes a grammar mistake in a doc and some log messages.
2019-04-04 10:27:28 +05:30
Lucas Mundim
8f9729a01d Introduces the option --overlay-type={subnet,full}, to be able to always generate IPIP tunnels regardless of node subnets (#666)
* Introduces the option --full-overlay, to always generate IPIP tunnels regardless of node subnets

* Use --overlay-type={subnet,full} instead of --full-overlay={true,false}
2019-03-23 23:31:42 +05:30
Federico Soave
7b20ae9f58 document workaround for cloudnativelabs/kube-router#676 (#677) 2019-03-10 10:58:58 +05:30
Lucas Mundim
00824cd84b Fix typo (#661) 2019-02-09 10:17:09 +05:30
Ivan Kurnosov
10ddc095ff Fixed typo in Global External BGP Peers example (#627)
`peer-router-asns` does not need quotes around
2019-01-11 13:46:51 +05:30
Arvinderpal Wander
4efc6cceae Add documentation on dependency management using dep. (#621) 2018-12-27 08:09:38 +05:30
Murali Reddy
7b9291aa2d fix docs 2018-12-09 10:58:06 +05:30
Steven Armstrong
1a30f9e2e1 implement per-service annotations to control IP advertisment (#575)
* add unit tests for implementing #75

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* integration tests for #75

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* update docs for #75

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* define new kube-router.io/service.advertise.* annotations

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* Implement per service annotations for advertising IPs.

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* more consistent annotation names

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>

* remove redundant tests

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>
2018-12-09 10:38:12 +05:30
Joakim Karlsson
e5d599b14c
Roffe/metrics polish (#595)
* update metrics docs & dashboard
* renamed `namespace` label to `svc_namespace` for service metrics as it would be overwritten by most Prometheus setups
* Made histograms for all the controller sync times for better visualization
* added `controller_routes_sync_time`, `controller_bgp_advertisements_sent` & `controller_policy_chains_sync_time` metrics
2018-12-07 16:22:41 +01:00
Aaron U'Ren
0cdaa4362f docs/bgp.md: change example to use printf (#594)
Using echo places a new-line character at the end of the base64
generated string which will cause peering to fail for most use-cases as
it is unlikely to be present in the configuration of the other peer.
2018-12-07 02:04:52 +01:00
Joakim Karlsson
46f8265e1b
docs: how to configure explicit proxy (#582)
from https://github.com/cloudnativelabs/kube-router/issues/494
2018-11-27 09:26:02 +01:00
Kurochan
3723d82247 fix typo on docs/bgp.md (#568) 2018-11-05 01:35:10 +01:00
Lars Ekman
535fcc5abe Added "--router-id=" parameter. (#563)
For ipv6 it is not possible to use the ip address as router-id
and this parameter is required.
2018-11-02 11:00:02 +05:30
Don Bowman
2a8203559a Add mount of /lib/modules to kube-router kubeadm setup doc (#565)
The 'kube-proxy --cleanup' checks that ip_vs.ko exists/is loaded.
To do this it ends up looking in /lib/modules/... and generates
an error: `Running modprobe ip_vs failed with message...`.
Add -v /lib/modules:/lib/modules to instructions.

Signed-off-by: Don Bowman <db@donbowman.ca>
2018-11-02 10:57:17 +05:30
Lars Ekman
bf636c0cb7 Added ipv6 documentation (#551) 2018-10-12 11:13:12 +05:30
Inju Song
0416e07c5c Change IMAGE_TAG -> IMG_TAG in developing guide (#550)
Signed-off-by: Inju Song <inju.song@navercorp.com>
2018-10-10 13:03:32 +05:30
rjosephwright
77459ddb2c Add CLI option to toggle disabling of source-dest-check in EC2 (#541)
When the number of nodes in a cluster is high enough, the
`disableSourceDestinationCheck()` logic creates a high number
of requests to EC2, resulting in throttling and subsequent
problems, such as the inability to attach EBS volumes. This is
not necessarily mitigated by the `ec2IamAuthorized` attribute
which was added to overcome this issue, as the number of
requests can still be high enough to reach Amazon's request
limits. In addition, it is not necessary to run this multiple
times in a loop for all the nodes in a cluster, as it is
sufficient to set it once when an instance boots.

This CLI option allows an administrator to turn off this
feature for kube-router so they can use some other means of
setting the attribute.
2018-09-23 00:20:37 +05:30
Joakim Karlsson
02eb11ba09
Sponsorship update (#524)
* update sponsors
2018-08-30 10:15:36 +02:00
Johan Thomsen
1db83adfb9 Added support for custom BGP ports with 179 still being default (#492) (#493)
* Introduced new cmdline flag --bgp-port, which controls BGP Server listening port and remote port of in-cluster node peers

    * Introduced new cmdline flag --peer-router-ports, which controls remote BGP port for external peers

    * Introduced new node annotation kube-router.io/peer.ports with same effect as --peer-router-ports
2018-08-15 22:59:47 +05:30
Murali Reddy
86ba7840a6
Introduces the option --override-nexthop, to override the next hop used in advertised routes (#502)
* Introduces the option --override-nexthop, setting it to true will make
advertised next hop for the routers to the peers will be automatically
selected to be appropriate reachable local IP. This will be overrider
any next-hop set for the routes in the RIB. Kube-router by defauly set
the next-hop to `node IP` which is not correct in case of nodes with
multiple interfaces and use differnt interaces for differect external
peers.

Fixes #480

* add next-hop-self documentation
2018-08-13 20:12:55 +05:30
Murali Reddy
624c74f865
issue-385: make it optional on which ip address BGP server listens (#473)
* introduces per node anntation kube-router.io/bgp-local-addresses to configure IP address on which BGP server should lister

* docs
2018-08-13 17:47:23 +05:30
Jimmy Zhang
85d8df425d Improve health check for cache synchronization (#498)
* improve Control flow logic
* drop log,comment,sleep
* update user-guide.md
* set cache-sync-timeout default to 1m
2018-08-10 13:12:11 +02:00
Emil Stolarsky
82410c14d0 Add support for BGP path prepending through node annotations (#476) 2018-07-11 06:48:21 -04:00
Murali Reddy
5c6a24d4d6
Fix NPE when performing cleanup() (#458)
* Fix NPE when performing cleanup()

* update cleanup documentaion
2018-06-05 01:05:34 +07:00
Andrew Sy Kim
1c7866cd91 Allow CNI plugin to be disabled (#443) 2018-06-04 19:17:22 +07:00
Nicolas Perraut
0a9b164c0f Update kubeadm iptables cleanup command (#424)
- Repository URL changed
- Update version
- Update flag (see #278)
2018-05-06 01:29:56 +05:30
Murali Reddy
05b702a94b
[WIP] docs cleanup (#418)
* docs cleanup

* fix unit test

* index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* Update index.md

* docs

* intro

* Update index.md

* docs

* Update index.md

* Update index.md

* Update README.md
2018-05-03 12:32:08 +00:00
Andrew Sy Kim
e13b77141b
Add DigitalOcean Sponsorship (#414) 2018-04-28 09:34:40 -04:00
Murali Reddy
27d51cdd79
add docs/index.md for mkdocs (#416) 2018-04-28 09:34:09 +00:00
Murali Reddy
41332a18b9
Ability to enable/disable node advertising its pod CIDR to external BGP peers (#408)
* Node should advertise its pod CIDR to external BGP peers only if
--advertise-node-pod-cidr is set to true (defaults to true).
This is to enable a case where pod's remain non-routable from out of the
cluster but service VIP's can be routable from out side the cluster.

* fix unit test

* address review comments
2018-04-23 18:32:59 +00:00
Murali Reddy
041c05570a
minimize sync()'s done by the controllers (#399)
* minimize sync() done by the controllers

* deprecate --config-sync-period

* review comments
2018-04-18 10:48:57 +05:30
Murali Reddy
71d16bf4d6
code restructuring as per typical golang projects (#397)
* code restructuring as per typical golang projects

* fix link in docs
2018-04-17 00:18:20 +05:30