264 Commits

Author SHA1 Message Date
Joakim Karlsson
e53aef280c more work on healthchecks 2018-02-04 21:25:49 +01:00
Joakim Karlsson
77cb340cfd missing bracket 2018-02-03 22:53:20 +01:00
Joakim Karlsson
4f8f83d6eb metrics controller ticker 2018-02-03 22:49:57 +01:00
Joakim Karlsson
12aec99844 added heartbeats 2018-02-03 22:43:34 +01:00
Joakim Karlsson
3eb5461fe4 adding output messages 2018-02-03 16:30:11 +01:00
Joakim Karlsson
3469cc182c fixed healthport var 2018-02-03 15:39:50 +01:00
Joakim Karlsson
e6b01d5483 added health controller 2018-02-03 15:01:15 +01:00
Murali Reddy
f1cb675d4b
Update MAINTAINER.md 2018-02-02 10:15:47 +01:00
Murali Reddy
193776c568
prevent calling gobgp AddNeighbour call before GoBGP server is properly started (#296) 2018-02-01 01:56:40 +01:00
Joakim Karlsson
f3e7aced1a Metrics + Logging update (#294)
* - added protocol & port label to metrics
- removed some redundant code

* added example dashboard

* added dashboard screenshot

* updated dashboard json & screenshot

* ammend bad dashboard export

* first new metric

* .

* more metrics: controller_publish_metrics_time & controller_iptables_sync_time

* namespace redeclared

* fix typo in name

* smal fixes

* new metric controller_bgp_peers & controller_bgp_internal_peers_sync_time

* typo fix

* new metric controller_ipvs_service_sync_time

* fix

* register metric

* fix

* fix

* added more metrics

* service controller log levels

* fix

* fix

* added metrics controller

* fixes

* fix

* fix

* fixed more log levels

* server and graceful shutdown

* fix

* fix

* fix

* code cleanup

* docs

* move metrics exporting to controller

* fix

* fix

* fixes

* fix

* fix missing

* fix

* fix

* test

* test

* fix

* fix

* fix

* updated dashboard

* updates to metric controller

* fixed order in newmetricscontroller

* err declared and not used

* updated dashboard

* updated dashboard screenshot

* removed --metrics & changed --metrics-port to enable / disable metrics

* https://github.com/cloudnativelabs/kube-router/issues/271

* cannot use config.MetricsPort (type uint16) as type int in assignment

* cannot use mc.MetricsPort (type uint16) as type int in argument to strconv.Itoa

* updated docs

* changed default metric port to 0, disabled

* added missing newline to .dockerignore

* add lag parse to pickup on -v directives

* test

* test

* test

* fix regression

* syntax error: non-declaration statement outside function body

* fix

* changed nsc to mc

* updated docs

* markdown fix

* moved metrics registration out to respective controller so only metrics for running parts will be exposed

* removed junk that came from visual studio code

* fixed some typos

* Moved the metrics back into each controller and added expose behaviour so only the running components metrics would be published

* removed to much, added back instanciation of metricscontroller

* fixed some invalid  variable names

* fixed last typos on config name

* fixed order in newnetworkservicecontroller

* updated metrics docs & removed the metrics sync period as it will obey the controllers sync period

* forgott to save options.go

* cleanup

* Updated metric name & docs

* updated metrics.md

* fixed a high cpu usage bug in the metrics_controller's wait loop
2018-01-25 22:56:51 +05:30
Murali Reddy
1492f0b279
small update to the metrics documentation 2018-01-20 10:47:07 +05:30
Joakim Karlsson
60f67d893f Metrics updates (#292)
* - added protocol & port label to metrics
- removed some redundant code

* added example dashboard

* added dashboard screenshot

* updated dashboard json & screenshot

* ammend bad dashboard export
2018-01-20 10:44:01 +05:30
Joakim Karlsson
edda2b14af Added more metrics and small bugfix + more docs (#291)
* fixed pps out using the wrong metrics

* adding debug

* name fixes
adding more metrics

* missing mustregister

* missing bracer

* added more metrics docs

* fixed faulty names

* fixed more faulty names
2018-01-18 23:05:33 +05:30
Joakim Karlsson
e36759e014 Documentation updates (#289)
* updated generic docs with some requirements
added draft for metrics docs
updated readme

* more metrics docs

* finishing touches

* small touch to generic docs

* some more touches

* clarification when this function was added

* enriching the doc with usefull links

* last touch
2018-01-18 12:21:52 +05:30
Joakim Karlsson
c8c19e4a31 Added cli config for changing prometheus port & path (#288)
* added prometheus metrics port option

* fix propper config

* added option to change path

* added path config to prometheus

* updated readme

* fixed string that should be int
2018-01-17 18:17:43 +05:30
Joakim Karlsson
42f717774d Updated generic cluster docs & daemonset (#284)
* fixed server adress in generic examples

* updated generic docs

* removed unnecessary mounts

* removed some steps not needed

* some clarification on functionality

* updated description

* updated description

* enriching docs with usefull links

* added note about containerised kubelet

* fixed link

* final touches

* one last link
2018-01-14 17:43:38 +05:30
Jeff Schroeder
8fe06539cb Small docs fixes for setting up a generic cluster (#283)
* Minor doc README update around manually installed clusters

* Documentation spelling fixes for generic clusters

* Documentation update for the generic cluster guide

This reworks things a bit more to read better to native english
speakers. It cleans up some grammar, removes a lot of passive voice,
and re-organizes things a bit.
2018-01-14 15:26:46 +05:30
Joakim Karlsson
1edee933af Documentation how to install kube-router on generic clusters (#281)
* generic deployment work

* better docs

* more docs

* prettify

* more docs

* more docs

* more docs

* more docs

* tidy up

* fixed mount paths

* fixed manifests

* better clarification of scope
2018-01-12 06:43:32 +05:30
GuoyouZhang
e51dfbff2f support node local service without SNAT, so the pod can see client origin IP if the request from external IP (#277) 2018-01-12 01:15:57 +05:30
Young Dou
aeaa703462 Fix typo in document (#276)
Fix typo in CONTRIBUTING.md
2018-01-08 15:55:35 +05:30
Andrew Sy Kim
78588fc3a3 tunnel interface names cannot be longer than 15 characters (#274) 2018-01-07 18:23:13 +05:30
Murali Reddy
5155c8da50
Update README.md 2018-01-05 09:43:17 +05:30
barthoda
862b410118 Make kubeadm install docs clearer (#270)
These docs didn't read well and possibly led the user to do a `kubeadm reset`.
2018-01-04 07:38:40 +05:30
Andrew Sy Kim
c07df49f63 unit tests for syncInternalPeers() (#268) 2018-01-03 23:41:06 +05:30
Murali Reddy
0b739e4d41
project status update (#269) 2018-01-03 22:51:57 +05:30
Andrew Sy Kim
50dcc32dd8 Unit Tests for Node Update Events (#265)
* activeNodes should not be a global variable for better testability

* OnNodeUpdate unit tests
v0.1.0-rc1
2018-01-03 11:54:29 +05:30
Andrew Sy Kim
4eca430b63 route controller unit tests (#264) 2017-12-29 08:55:22 +05:30
Andrew Sy Kim
542680c65d skip build/push if user is not cloudnativelabs since it cannot access dockerhub creds (#263) 2017-12-28 00:20:54 +05:30
Andrew Sy Kim
e27847f833 package utils unit tests and CI fixes (#261)
* package utils unit tests

* add tests to travis CI

* make push needs IMG_TAG in docker push command
2017-12-27 23:38:24 +05:30
Murali Reddy
f822109907
Prevent slice representing ipset growing forver resulting in excessive memory usage (#260)
Use refresh instead which internally used ipset swap

Fixes #228
2017-12-25 19:37:02 +05:30
Murali Reddy
94a2ec7e17
Flush conntrack entry when UDP service endpoint is deleted (#259)
Fixes #157

kubernetes/kubernetes#19029
kubernetes/kubernetes#22573
2017-12-25 02:08:04 +05:30
Murali Reddy
8ce5e4fe3d
Fix potential issues in DSR due to Golang limitations in switching network namespaces and add verbose logging (#258)
Fixes #248

https://www.weave.works/blog/linux-namespaces-and-go-don-t-mix
docker/libnetwork#1113
https://groups.google.com/forum/#!topic/golang-dev/6G4rq0DCKfo/discussion
2017-12-24 22:28:36 +05:30
Murali Reddy
1e1f8b4e05
Update README.md 2017-12-24 19:00:41 +05:30
Murali Reddy
d473f83a7b
Update README.md 2017-12-24 15:18:44 +05:30
Murali Reddy
76ea8c01a2
fix TCP vs 6 string comparision in publishMetrics (#257) 2017-12-24 15:08:44 +05:30
Murali Reddy
22f05e99fd
service prometheus metrics (#255) 2017-12-24 11:32:42 +05:30
Murali Reddy
d87644113d
Update README.md 2017-12-22 23:14:55 +05:30
Murali Reddy
e5bd063e21 maintainers v0.0.20 2017-12-19 17:54:27 +05:30
Murali Reddy
d13339c6fa
IPVS sync services performnce improvement (#253)
During periodic sync of IPVS services there is a check if the required service
already existing in IPVS. For the check the list of currnet IPVS services are
read from IPVS. This is causing performance hit as number of services increases.

With this fix, Kube-router reads once from ipvs and use for further during service sync
2017-12-19 17:24:18 +05:30
Murali Reddy
38e30821a8 take-out kube-proxy IPVS status and add DSR
k8s 1.9 has IPVS Beta, but hey Kube-router has DSR :) now
2017-12-16 16:13:49 +05:30
Murali Reddy
c4830aa4e0
enable Pprof with option --enable-pprof (#245)
* rename to connectExternalBGPPeers

* enable pprof for debug purpose
2017-12-12 12:06:38 +05:30
Colin J. Brigato
fcd1a1aab6 Enable support for eBGP Multihop for external peers (#244) 2017-12-12 08:52:55 +05:30
David Robinson
5323b4b8a9 Fix --hairpin-mode=true (#243)
The option was not plumbed through to the controller.
2017-12-11 17:52:34 -06:00
Murali Reddy
628111c71b
so long gitter 2017-12-11 23:58:49 +05:30
Murali Reddy
de3e178b72
Update README.md 2017-12-10 23:47:58 +05:30
Andrew Sy Kim
2685367ab6 add --enable-ibgp flag (#227) 2017-11-27 21:53:44 +05:30
Andrew Sy Kim
bca422105b --bgp-graceful-restart flag should apply for global peers (#226) 2017-11-23 02:31:57 +05:30
Murali Reddy
7c9db2c721 sync with iBGP peers only after RIB is polulated first 2017-11-23 01:45:15 +05:30
Andrew Sy Kim
0dabd7cf11 Support BGP Graceful Restart (#220) 2017-11-23 01:12:36 +05:30
Murali Reddy
97fb3423f7
explicilty create kube-bridge interface. Earlier when pod is launched on the node (#225)
bridge CNI plug-in was setting up. Which leads to errors when no pod is launched on a node.

Fixes #223
2017-11-21 18:54:07 +05:30