Adam Harrison
915638d17a
Address linter failures
2016-11-14 15:13:19 +00:00
Bryan Boreham
f8693074a3
Move CNI config file to the end of launch script
...
So something waiting for the config (e.g. Kubernetes) doesn't try to
talk to Weave before then (this only helps on first install, but that
tends to be when things are busiest).
2016-11-14 12:37:42 +00:00
Bryan Boreham
e458c11e66
Weave script calls Go implementation of expose_nat
2016-11-14 12:37:42 +00:00
Bryan Boreham
a07e3301b1
Add 'weave expose' NAT iptables rules inside CNI plugin
...
This avoids a race between the plugin and the script
2016-11-14 12:37:42 +00:00
Marc CARRE
b03b3fccc7
Fixes 2537: status now prints 'failed to check latest version' when the checkpoint API is not available (+test).
2016-11-09 17:46:52 +00:00
Adam Harrison
ea82a6715f
Merge pull request #2569 from weaveworks/weave-kube-smoke-test
...
weave-kube smoke test
2016-11-04 12:58:20 +00:00
Adam Harrison
9d05ed41b2
Change default NPC metrics port
2016-11-04 12:31:01 +00:00
Marc CARRE
da2f0803ce
Add support for atomic and versioned upgrades of CNI plugin.
2016-11-04 11:54:22 +00:00
Bryan Boreham
6dde5e5ee9
Add code-coverage options to weaver start
2016-11-04 10:52:36 +00:00
Bryan Boreham
09628178e4
Weave-kube doesn't need to depend on plugin repo any more
2016-11-03 17:42:39 +00:00
Bryan Boreham
5630a01a8c
Implement CNI plugin via weaveutil
2016-11-03 17:42:39 +00:00
Adam Harrison
ac44fa63c8
Fix breakage caused by #2574
2016-11-03 11:52:58 +00:00
Martynas Pumputis
bb639dbf32
Merge pull request #2585 from weaveworks/merge-weave-npc
...
Merge weave npc
2016-11-02 11:58:43 +00:00
Bryan Boreham
64c890005a
Merge pull request #2583 from damoon/fixup-74b477ac82e1ae267cf8501519f52e1f71a782dc
...
weaveworks/weave-kube:latest broken - fixup! allow to not run NPC: do not create iptables rules for NPC
2016-11-02 11:58:02 +00:00
Adam Harrison
19088ba8bc
Import from weave-npc repo
2016-11-02 11:28:59 +00:00
Martynas Pumputis
ec5f7033a4
Merge pull request #2579 from weaveworks/issues/2557-improve-metric-naming
...
Improve metric naming
2016-11-02 11:02:23 +00:00
Bryan Boreham
eb60f68df2
Report metrics on all connection states
2016-11-02 09:51:13 +00:00
David Sauer
d72e671d8b
fixup! allow to not run NPC: do not create iptables rules for NPC
2016-11-02 10:10:33 +01:00
Martynas Pumputis
3462357481
Merge pull request #2578 from weaveworks/issues/2576-metrics-on
...
Serve metrics by default, on port 6782
2016-11-02 09:08:13 +00:00
Bryan Boreham
2b4da35b1c
Remove 'total' DNS entries; let the caller add them up
2016-11-01 18:03:35 +00:00
Bryan Boreham
86d68c9875
Move total IPs in range from a state to a separate metric
2016-11-01 18:03:35 +00:00
Bryan Boreham
cfff8ee8be
Merge pull request #2568 from weaveworks/rename-conn-term-prom-metric
...
Rename weave_connection_termination_count metric
2016-11-01 18:02:55 +00:00
Bryan Boreham
af10cef5f0
Set --status-addr for metrics by default
2016-11-01 17:04:04 +00:00
Bryan Boreham
a1a42736ed
Fix hard-coded http address
2016-11-01 16:53:37 +00:00
Adam Harrison
b533a11bee
Update client-go
...
weave-npc needs some fixes from client-go master (specifically the
unversioned.LabelSelector change)
2016-11-01 16:19:43 +00:00
Artur Gadelshin
74b477ac82
allow to not run NPC: do not create iptables rules for NPC
2016-11-01 17:32:41 +03:00
Martynas Pumputis
ede70a78d6
Rename weave_connection_termination_count metric
...
To make it follow the Prometheus naming conventions:
https://prometheus.io/docs/practices/naming/
2016-10-31 13:23:12 +00:00
Bryan Boreham
d0b711513e
Add weave-daemonset.yaml
2016-10-31 10:59:15 +00:00
Bryan Boreham
7dbee74e85
Add weave-kube image
2016-10-31 10:59:15 +00:00
Bryan Boreham
4e7a3b1805
Add kube-peers program
2016-10-31 10:59:15 +00:00
Bryan Boreham
3c7b244f18
Change image layering - plugin builds on weaver & weaver builds on weaveexec
2016-10-31 10:59:13 +00:00
Adam Harrison
4b77662e3b
Merge pull request #2561 from weaveworks/issues/2560-fix-dns-ipam-metrics
...
Do not expose IPAM or DNS metrics if weave does not run IPAM or DNS
2016-10-26 14:24:43 +01:00
Adam Harrison
a5ff7ab8df
Merge pull request #2475 from weaveworks/issues/2419-withnetns
...
Add a safer version of WithNetNS*
2016-10-26 13:50:34 +01:00
Martynas Pumputis
5c2e878c64
Do not expose IPAM or DNS metrics when weave does not run IPAM or DNS
...
Otherwise, GET /metrics will crash weaver.
2016-10-25 16:54:35 +01:00
Martynas Pumputis
b1d6605e8f
Remove inaccurate Prometheus metrics
...
The metrics include:
- weave_packets_total
- weave_bytes_total
The problem with those metrics is that fastdp periodically flushes
flows including their stats thus makes the current implementation
of the metrics unreliable.
2016-10-24 11:23:10 +01:00
Bryan Boreham
f2454775b9
Merge pull request #2552 from weaveworks/issues/2550-fix-make-dockerhub-user
...
Ensure Dockerfiles obey DOCKERHUB_USER
2016-10-24 09:59:38 +01:00
Adam Harrison
f8cf7a1054
Ensure Dockerfiles obey DOCKERHUB_USER
2016-10-21 14:45:10 +01:00
Bryan Boreham
4d8a40c0b5
Reduce metrics mechanism to just support fastdp
2016-10-21 14:44:12 +01:00
Martynas Pumputis
9754da15d6
Encode "list-netdevs" output in JSON
2016-10-20 18:18:57 +01:00
Bryan Boreham
0458d32089
Serve metrics on a different socket to the main API
...
Serve metrics+status on status socket and api+status+metrics on api
socket; the reasoning is that metrics or status are read-only hence
may be scraped from an off-machine connection, while we don't want to
open the control port up unprotected.
2016-10-20 16:25:16 +01:00
Bryan Boreham
b8d619dde7
Add Prometheus http handler for metrics
...
Metrics are: connection counts, active IP addresses, DNS addresses,
FastDP flow metrics, connection termination count
2016-10-20 16:25:16 +01:00
Bryan Boreham
6d5af85eee
Report count of active IP addresses in status
2016-10-20 14:04:41 +01:00
Bryan Boreham
71d550260f
Extract countDNSEntries function
2016-10-20 13:54:42 +01:00
Bryan Boreham
1092bae05c
Refactor: move 'unreachable' logic out of printing function
2016-10-20 13:54:42 +01:00
Martynas Pumputis
e611f04f41
Move NetDev utils from common/ to net/
2016-10-19 17:03:30 +01:00
Martynas Pumputis
3492cd93d0
Use safe version of WithNetNS
2016-10-19 16:15:59 +01:00
Martynas Pumputis
947ae11fee
Refactor NetDev utilities
...
- Make them safe by using the safe version of WithNetNS.
- Improve naming.
2016-10-19 16:07:53 +01:00
Martynas Pumputis
cdd6ed548c
Add netdev subcommands to weaveutil
...
The subcommands are going to be used with WithNetNS wrapper.
2016-10-19 16:07:53 +01:00
Adam Harrison
264e5c9979
Merge pull request #2541 from weaveworks/issues/2540-withnetns
...
Change namespace via nsenter, for plugin arp-config step
2016-10-07 12:20:47 +01:00
Martynas Pumputis
4a49ff3083
Replace usage of WithNetNSUnsafe in plugin/net/watcher.go with safer version
...
Unsafe version was in ConfigureARPforVeths; replacement is via `weaveutil configure-arp`
2016-10-06 15:25:05 +01:00