Bryan Boreham
f6fdaf6492
Only expose metrics by default in weave-kube
2018-04-04 15:00:53 +01:00
Bryan Boreham
265bfcf9d7
Raise default connection limit from 30 to 100
2018-01-31 10:48:05 +00:00
Bryan Boreham
e7f30106c0
Pass the WeaveDNS Domain into the proxy
...
instead of obtaining it via the http api
2018-01-29 15:55:36 +00:00
Bryan Boreham
86d2800b59
Make proxy use configured WeaveDNS address
...
rather than assuming it is listening on the weave bridge
2018-01-29 15:55:36 +00:00
Bryan Boreham
e65006042d
Remove obsolete --dns-effective-listen-address parameter
...
it was needed when we ran inside a container network namespace
2018-01-29 15:55:36 +00:00
Martynas Pumputis
a0c8fc2ddb
Pass WEAVE_NO_BRIDGED_FASTDP to weaver
2017-12-17 19:05:12 +01:00
Bryan Boreham
07459f0cec
Merge pull request #3149 from weaveworks/fix-2797-loosing-ipam-ips
...
Fix 2797 on Kubernetes - Cluster goes down because all IPs become unreachable
2017-11-14 15:31:06 +00:00
Bryan Boreham
3501ad45e6
Cope with a Kubernetes node being deleted and coming back
...
Add features to weaver and kube-peers to find the peer name and check
if it is in the list, then in launch.sh delete persisted data if not.
2017-11-14 14:15:31 +00:00
Martynas Pumputis
7ea82204e0
Merge pull request #3089 from weaveworks/improve-flags
...
Improve flag handling
2017-11-13 17:31:33 +02:00
Martynas Pumputis
ade6738789
Handle "weave expose" in weaver
...
The change makes "weave expose" to call the "/expose" HTTP
endpoint implemented in router which exposes the bridge.
Such architectural change required as we need to know whether NPC is
enabled when exposing the bridge and weaver knows this fact the best.
Unfortunately, this change makes impossible to "weave expose"
when weaver is not running.
2017-10-17 12:08:43 +01:00
Bryan Boreham
a02fb753df
Use the configured Docker host for the proxy, not the default one
2017-09-26 09:44:46 +00:00
Bryan Boreham
98b002f7c0
Remove unnecessary 'Version' in proxy
2017-09-26 09:44:46 +00:00
Bryan Boreham
e251bfe807
Move use of command-line params to after we know them
2017-09-26 09:44:46 +00:00
Bryan Boreham
eb88893312
Rename configureProxy to newProxyConfig
2017-09-26 09:44:46 +00:00
Bryan Boreham
608b8f0a06
Supply the weave port number to bridgeConfig
2017-08-18 13:13:18 +00:00
Bryan Boreham
bc4c31e48b
If DNS server is off then disable proxy DNS registration
2017-08-18 10:25:10 +00:00
Martynas Pumputis
f37377264b
Fix fallback to pcap based bridge when odp is not supported
...
The fix ensures that if odp is not supported (usually due to
missing openvswitch, vxlan or vport-vxlan kernel modules),
weaver will create the pcap based bridge instead of crashing.
2017-06-27 18:38:21 +02:00
Bryan Boreham
ea098ac53e
Only retain IP addresses for running containers
2017-06-12 14:03:53 +00:00
Bryan Boreham
5106317e5d
Remove deprecated --init-peer-count option
...
Since this was the last deprecated option, remove all code to generate
deprecation warnings in the weave script.
2017-05-26 15:19:27 +00:00
Bryan Boreham
c617612794
Remove deprecated flag versions
2017-05-23 16:49:13 +00:00
Bryan Boreham
4f485f856b
Factor out Plugin variables into Plugin and plugin.Config structs
2017-05-17 09:27:40 +00:00
Bryan Boreham
b0da4f6b91
Move proxy and plugin status from shell to Go
...
In the process we stop printing out the `PLUGIN_FULL_NAME`, but that
is assumed to be something the user can figure out from `docker plugin ls`
2017-05-17 09:27:22 +00:00
Bryan Boreham
e0bb49aa23
Don't crash on nil proxy in StatusHTTP
2017-05-15 11:32:20 +00:00
Bryan Boreham
bf3ecaf48a
Remove proxy status.sock
2017-05-13 16:31:16 +01:00
Bryan Boreham
9f4030cdb6
Move AWSVPC/IPAM check to Go code
...
The weave script check was broken in an earlier commit.
The Go error message is less specific because it checks more cases.
2017-05-13 14:34:29 +01:00
Bryan Boreham
b1917d909a
Move proxy attach from shell to Go
...
Note we don't need to propagate shell-script env vars now
2017-05-12 06:56:52 +00:00
Bryan Boreham
7611cd963c
Don't return OK from status until all parts are ready
2017-05-11 14:02:45 +00:00
Bryan Boreham
3e0eb4ac1e
Move creation of default network from weaver to plugin
...
This way it is more likely that we create it after the plugin is up
and running.
2017-05-11 13:59:29 +00:00
Bryan Boreham
89d3fedcd4
Qualify some options as applying to the proxy
2017-05-10 10:25:36 +00:00
Bryan Boreham
71ca91db09
Handle --awsvpc implies --no-multicast-route in Go code
2017-05-10 10:25:36 +00:00
Marc CARRE
5cf973f03a
Add --proxy option to enable/disable proxy.
...
Weave Net initially had the ability to start a single component at a time with `launch-proxy` and `launch-router`.
This change enables this again via `--proxy=false` despite the merge of the proxy and the router.
Note that by default:
- `launch` passes `--proxy` which enables the proxy and keeps behaviour consistent with `launch` pre-merge,
- `weaver` defaults `--proxy` to `false` which disables the proxy and keeps behaviour consistent with `weaver` pre-merge (as it was `weaveproxy`'s responsibility).
2017-05-10 10:25:36 +00:00
Marc CARRE
b654ac178c
Merge proxy and router/weaver processes.
...
Note: we no longer need to detect awsvpc when launching.
The "AWS VPC" mode is now set via the `--awsvpc` flag.
Before we had to "detect" it when the proxy was potentially started
later, after the router had started.
We drop WEAVEPROXY_DOCKER_ARGS as obsolete.
2017-05-10 10:25:23 +00:00
Martynas Pumputis
2ebd358aeb
Workaround missing docker.sock in plugin-v2
...
"docker.sock" is used to access Docker API which is required to:
1. subscribe to Docker events to configure-arp,
2. query Docker network info to detect whether multicast should be
enabled.
3. get list of Swarm peers before starting the plugin.
(1) is currently not implemented.
(2) is replaced by WEAVE_MULTICAST env var which
can enable multicast for all Weave networks created by
the plugin (not ideal, but better than nothing).
(3) is fixed by not removing "restart.sentinel".
2017-05-05 17:25:17 +00:00
Marc CARRE
e1ff2197c0
Fix conflict accidentally missed when merging 1.9.
2017-05-04 12:20:26 +01:00
Marc CARRE
507e734d1a
Merge remote-tracking branch 'origin/1.9'
...
- PR #2926 - Branch issues/2808-improve-hairpin-messages - Fixes #2808 .
- PR #2907 - Branch issues/2771-checkpoint-net-modes - Fixes #2771 .
2017-05-03 20:28:31 +01:00
Marc Carré
d128488339
Merge pull request #2926 from weaveworks/issues/2808-improve-hairpin-messages
...
Fixes #2808 . Improve hairpin log messages.
2017-05-03 20:21:20 +01:00
Bryan Boreham
7c8f33f525
Add checkpoint flag per connection type
2017-05-03 16:56:49 +00:00
Bryan Boreham
b19f2df6f8
Improve hairpin log messages
2017-05-03 14:35:20 +00:00
Bryan Boreham
b3ac56e3d2
Update mesh library and check for errors newly returned
2017-05-03 11:08:28 +00:00
Bryan Boreham
d2cbb2749e
Move plugin network creation from shell script to Go
...
In the process, use the default subnet instead of the whole IP
allocation range.
2017-04-27 17:07:59 +00:00
Bryan Boreham
334974472d
Rename router.Bridge to router.InjectorConsumer
...
since what it does it injects and consumes packets, and something else
entirely does bridging.
2017-04-25 11:03:32 +01:00
Bryan Boreham
a731d47d97
Rename bridge detection/creation functions
2017-04-24 16:42:05 +00:00
Bryan Boreham
a7feb41e62
Replace switch statements with Bridge polymorphism
2017-04-20 15:57:49 +00:00
Bryan Boreham
fddb3ee06e
Review feedback
2017-04-20 15:57:49 +00:00
Bryan Boreham
ae625a18c8
Move awsvpc bridge expose from weave script to Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
4ad1c22ef6
Move initial DNS population into Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
ef9f95f653
Let weaver create the bridge in weave-kube
2017-04-17 19:41:47 +00:00
Bryan Boreham
f05bb6c4e0
Don't assume we always run in in host pid space
...
Pass the path to the proc filesystem down
2017-04-17 19:41:47 +00:00
Bryan Boreham
c3a41286fd
Use the bridge name passed in on the command-line more
2017-04-17 19:41:47 +00:00
Bryan Boreham
8297652204
Read our peerName from persistence file if necessary
...
Mount directories for machine ID files into weave container
2017-04-17 19:41:47 +00:00