443 Commits

Author SHA1 Message Date
Murali Reddy
9b6bf95bb2
limit disableSrcDstCheck performed on OnNodeUpdate() (#327) v0.1.0 2018-03-17 19:17:57 +05:30
Murali Reddy
d72c41017a
close docker client after use (#343) 2018-03-16 20:23:25 +05:30
Murali Reddy
d7d0223238
[WIP] support for Hostport (#335)
* Support for hostport
- remove the hardcode cni conf file path
- move it to env variable
- keep it backward compatible even if env variable is not present
- support both .conf and .conflist
- daemonset with hostport support

Fixes: #168

* add unit test for InsertPodCidrInCniSpec for .conflist

* add documentation for hostport
2018-03-15 23:06:41 +05:30
JuanJo Ciarlante
c7ce398367 [jjo] add arm cross-compile support (#336)
* [jjo] add arm and arm64 cross compile support

* hint multiarch-setup run

* fix `file` check for arm64`
2018-03-14 17:38:19 +05:30
Andrew Sy Kim
4902a0c2f7 route advertisement should account for services using externalTrafficPolicy=Local (#334) 2018-03-13 11:13:24 +05:30
Raphael Mazelier
4e768b1467 Feature Route Reflector (#325)
* Add Route Reflector feature

* Update documentation for route reflector

* Gofmt fix
2018-03-01 22:05:35 +05:30
Murali Reddy
df6b375f4e
AWS: perform disable src-dst check only if node has necessary IAM. Also introduce delay (#319)
between ec2 api calls, so that requests are not rejected due to API throttling

Fixes: #313
2018-02-23 13:08:52 +05:30
Murali Reddy
31402a5827
fix Pod Toolbox documentation issue (#318)
Fixes #317
2018-02-23 07:02:34 +05:30
kevin.xu
f68372e175 Update network_policy_controller.go (#315)
* Update network_policy_controller.go

typo

* Update network_policy_controller.go

typos
2018-02-20 17:19:13 +05:30
Jeff Schroeder
8c2111160e Adding --version / -V support to print version information (#312)
* Alphabetize options.options.KubeRouterConfig

* Add --version / -V support to kube-router

Fixes #287
2018-02-18 12:08:49 +05:30
Jon Davies
2147b09839 Dockerfile: Updated to alpine:3.7. (#306) 2018-02-14 06:36:06 +05:30
Joakim Karlsson
a466ace4bc Nsc conntrack fix (#305)
* added conntrack exit handling logic

* fixed regex

* regex fix again
v0.1.0-rc2
2018-02-13 16:05:52 +05:30
Murali Reddy
e25c174182
support service.spec externalTrafficPolicy=Local. Takes precedence over kube-router.io/service.local annotation. (#303)
Also dynamically cleanup service endpoints based on the service spec is set for Local only services or not.
2018-02-13 15:04:51 +05:30
Sergey Lanzman
617c773655 code cleanup (#301) 2018-02-08 00:51:15 +01:00
Joakim Karlsson
336989088a
reverted rollingUpdate strategy (#300)
* reverted rollingUpdate strategy & added docs for how to achieve it instead
2018-02-07 15:19:30 +01:00
Joakim Karlsson
a480a51832
Merge pull request #298 from roffe/healthcheck
Healthchecks
2018-02-07 12:42:43 +01:00
Joakim Karlsson
daefc81858 updated help text 2018-02-07 08:55:21 +01:00
Joakim Karlsson
b1f3404960 fixed bool values for if http health is enabled 2018-02-06 23:06:36 +01:00
Joakim Karlsson
38f45a4a1c chnged max unavail to 1 according to #171 2018-02-06 11:45:56 +01:00
Joakim Karlsson
deba3fa2fe mutex on stats 2018-02-06 11:15:09 +01:00
Joakim Karlsson
311d726562 cleanup health checks daemonsets 2018-02-06 11:03:32 +01:00
Joakim Karlsson
bb49531d34 liveness checks 2018-02-06 10:50:55 +01:00
Joakim Karlsson
2c3510d08a Docs 2018-02-05 12:21:41 +01:00
Joakim Karlsson
23f43135a0 Updated daemonsets to include health checks 2018-02-05 12:21:11 +01:00
Joakim Karlsson
258cf2c11e health docs 2018-02-05 11:49:20 +01:00
Joakim Karlsson
f38dc79d48 Docs for healthz 2018-02-05 11:30:50 +01:00
Joakim Karlsson
f2da44590f added startup delay before healthchecks starts 2018-02-05 10:59:49 +01:00
Joakim Karlsson
cf7c66ee7a Adde flag so health controller knows if HTTP is requested or not 2018-02-05 10:07:34 +01:00
Joakim Karlsson
7066d4dd9e change so no http listener starts if port is not in valid range 2018-02-05 09:42:26 +01:00
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