Bryan Boreham
93dcc4550a
Merge pull request #2712 from luxaslabs/deprecate_maintainer_dockerfile
...
Remove the deprecated MAINTAINER field in Dockerfiles and change to "LABEL maintainer" instead
2016-12-23 16:06:41 +00:00
Bryan Boreham
ab55da47b6
Check if we have secrets before decrypting or running smoke tests
...
And enable running CircleCI on forked pull requests
2016-12-23 16:06:20 +00:00
Bryan Boreham
1e7afe3bec
Merge branch '1.8'
2016-12-23 11:35:53 +00:00
Bryan Boreham
48508044d6
Merge pull request #2703 from weaveworks/issues/2700-ip-link
...
Docs: improve IP route links
2016-12-23 11:26:52 +00:00
Bryan Boreham
a4ad66f1c8
Mount /etc under a different path for weave-kube
...
So we don't accidentally read or write the hosts's /etc.
Also move the other volumes under /host to be more consistent with
what the weave script expects.
2016-12-22 10:35:47 +00:00
Bryan Boreham
0f85a959bb
Merge branch '1.8'
2016-12-21 11:15:04 +00:00
Bryan Boreham
d9a8adda1d
Merge pull request #2706 from weaveworks/issues/2638-segfault-dp
...
Do not segfault if the datapath exists
2016-12-21 11:12:19 +00:00
Bryan Boreham
1239fca567
Docs: improve IP route links
2016-12-19 12:34:05 +00:00
Bryan Boreham
6592a9afc7
Merge branch '1.8'
2016-12-14 11:57:11 +00:00
Bryan Boreham
906d9a47b1
Merge pull request #2696 from weaveworks/2647-import-using-absolute-paths
...
Scripts now source dependencies using relative paths
2016-12-13 17:00:58 +00:00
Bryan Boreham
9261d17dbe
Fix option name
2016-12-13 14:59:45 +00:00
Bryan Boreham
7d8a18bd20
Change rest of npc to weave common logging
2016-12-13 13:52:48 +00:00
Bryan Boreham
29cb13cba6
Merge branch '1.8'
2016-12-13 13:34:03 +00:00
Bryan Boreham
73f184df7e
Fix quotes in anchors
2016-12-13 11:42:20 +00:00
Bryan Boreham
bbd631f08f
weave-kube no longer needs to supply the peer address
2016-12-09 15:34:31 +00:00
Bryan Boreham
cf315fb6ba
Take peerName from weave bridge if not specified
2016-12-09 15:34:31 +00:00
Bryan Boreham
9c2bc0b825
Add MTU to connection status
2016-12-09 13:59:49 +00:00
Bryan Boreham
bb1cca713d
Merge branch '1.8'
2016-12-08 12:27:40 +00:00
Bryan Boreham
1d80a8d676
Merge pull request #2674 from weaveworks/issues/2650-fix-looping-flows
...
Detect looping flows
2016-12-08 12:27:15 +00:00
Bryan Boreham
71bf040715
Add --log-level option, default to debug
2016-12-07 11:53:40 +00:00
Bryan Boreham
6a04c6c7bd
Change to weave common logging
2016-12-07 11:53:31 +00:00
Bryan Boreham
8530528dd5
Drop pod log messages to Debug level
2016-12-07 11:51:53 +00:00
Bryan Boreham
8a45292e24
Log objects via JSON for better debugging
2016-12-06 17:40:17 +00:00
Bryan Boreham
d1712e9589
Re-add expose to ensure it gets run on all nodes
...
Previous change in a07e3301b1 meant that if there are no pods on
this node then the 'expose' never gets run.
2016-12-06 14:58:31 +00:00
Bryan Boreham
ec21afb426
Unify weave and launch.sh CNI setup
...
Test 830 has to run CNI plugin under sudo now
2016-12-06 11:52:09 +00:00
Bryan Boreham
882bff292e
Fix test invocation of weave again
...
Previous fix in b4a43f1b85 did not work
when built with code coverage.
Running a test script with -v causes `weave_on` to output progress
messages, so we don't want to use those commands inside `$()`
2016-12-06 11:48:48 +00:00
Bryan Boreham
8a292fd9f3
Merge pull request #2678 from weaveworks/issues/2593-remove-cni-from-plugin
...
Remove CNI support from Docker plugin
2016-12-06 02:51:23 -08:00
Bryan Boreham
f34936d9be
Merge branch '1.8'
2016-12-06 10:39:50 +00:00
Bryan Boreham
d4367457a9
Merge pull request #2671 from weaveworks/document-env-vars
...
Document env-var configuration for weave-kube
2016-12-06 02:39:20 -08:00
Bryan Boreham
b4a43f1b85
Fix test running with -v flag
...
Running a test script with -v causes `weave_on` and `docker_on` to
output progress messages, so we don't want to use those commands
inside `$()`
2016-12-05 16:12:15 +00:00
Bryan Boreham
3674808244
Remove weave bridge and associated devices if something goes wrong when creating it
...
Otherwise it is left in a half-created state and the user has to run `weave reset` to continue.
2016-12-05 15:11:47 +00:00
Bryan Boreham
44cc978a94
Update CNI information
2016-12-05 14:29:07 +00:00
Bryan Boreham
f441ec2644
Document env-var configuration for weave-kube
...
E.g. how to configure the IP allocation range
2016-12-05 13:55:33 +00:00
Bryan Boreham
ee6596e21c
Run iptables commands in a loop
...
in case they get "temporarily unavailable" exit
2016-12-05 11:11:20 +00:00
Bryan Boreham
d501c78795
Merge pull request #2659 from weaveworks/issues/2581-optional-bridge-nf
...
Optional bridge-nf detection
2016-11-28 18:09:40 -08:00
Bryan Boreham
d6544302d3
Check whether Weave's IP range overlaps something on the host already
2016-11-25 14:43:23 +00:00
Bryan Boreham
fd34dda6c1
Run test instances on a locked-down network
...
and open up a rule from the specific IP running the tests
2016-11-24 17:17:12 +00:00
Bryan Boreham
16fca913de
Merge branch '1.8'
2016-11-24 15:27:36 +00:00
Bryan Boreham
f989a82eb0
Merge pull request #2573 from weaveworks/2546-clarify-npc-packet-drop-no-link
...
Clarified and documented Weave NPC packet drops (w/o short URL).
2016-11-24 15:26:49 +00:00
Bryan Boreham
ad43acf843
Merge branch '1.8'
2016-11-24 10:53:59 +00:00
Bryan Boreham
71782a6aa5
Merge pull request #2661 from weaveworks/fix-700-again
...
Wait up to 30s for version check error in logs
2016-11-24 10:52:47 +00:00
Bryan Boreham
dff14c19f8
Don't remove base CNI plugins in test
2016-11-23 10:38:23 +00:00
Bryan Boreham
937036aa64
Simplify default version string
2016-11-22 15:43:17 +00:00
Bryan Boreham
47cdf2b755
Simplify version sed
2016-11-22 15:42:53 +00:00
Bryan Boreham
4219c2c2ab
Only look at IP addresses on pods that haven't finished
2016-11-22 13:49:28 +00:00
Bryan Boreham
4785de1a34
Merge branch '1.8'
2016-11-22 09:59:27 +00:00
Bryan Boreham
cbec624cd8
Remove CNI files when tearing down Kubernetes
2016-11-21 16:08:50 +00:00
Bryan Boreham
e7bde18f71
Merge pull request #2656 from weaveworks/add-jq-to-vagrantfile
...
Include jq in the build VM
2016-11-21 11:53:03 +00:00
Bryan Boreham
e9eeaee520
Warn user on unknown gce util command
2016-11-21 09:49:41 +00:00
Bryan Boreham
d5ec9fb38d
Fix test 700 to use resolver override
...
instead of /etc/hosts override that didn't work in netgo mode
2016-11-18 20:42:15 +00:00
Bryan Boreham
d5f1c233bf
Remove punctuation from the end of error messages
...
to placate the linter
2016-11-18 10:40:41 +00:00
Bryan Boreham
af732d0495
Merge pull request #2529 from weaveworks/use-golang-171
...
Build container FROM golang:1.7.3
2016-11-17 15:04:12 +00:00
Bryan Boreham
9cc98919fa
Adjust CNI smoke-test to cope with new plugin behaviour
2016-11-14 19:53:54 +00:00
Bryan Boreham
e42600632f
Don't release dead container's IP addresses if not asked to check it is alive.
2016-11-14 19:53:54 +00:00
Bryan Boreham
93aa3fed16
Merge branch '1.8'
2016-11-14 19:47:05 +00:00
Bryan Boreham
49e76d1486
Merge pull request #2645 from weaveworks/fix-test-700
...
Replace iptables block with resolver override
2016-11-14 19:44:26 +00:00
Bryan Boreham
317c6ba04c
Better value for --ipalloc-range in attach-router
...
The previous regex matched a blank --ipalloc-range and the following
parameter, which defeated the whole point of the check.
2016-11-14 16:11:42 +00:00
Bryan Boreham
15d91c558b
Quote version string which may contain spaces, etc
2016-11-14 12:49:00 +00:00
Bryan Boreham
ffc5a78139
Add code-coverage options to weaver version call
2016-11-14 12:42:17 +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
1629f4f3f0
Loop round iptables commands on EAGAIN
2016-11-14 12:37:42 +00:00
Bryan Boreham
10baab38d3
Extend smoke-test to include pinging
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
Bryan Boreham
2b4d13c5b1
Don't error on bridge address already there
2016-11-14 12:37:42 +00:00
Bryan Boreham
755e42836c
Merge branch '1.8'
2016-11-14 11:29:34 +00:00
Bryan Boreham
ad743b0e96
Merge pull request #2577 from weaveworks/2548-fix-reclaim-after-using-cni
...
Fix reclaim after using CNI; Fixes #2548 .
2016-11-14 11:28:42 +00:00
Bryan Boreham
03d9e3db69
weaveutil now depends on plugin code
2016-11-10 17:04:10 +00:00
Bryan Boreham
6dde5e5ee9
Add code-coverage options to weaver start
2016-11-04 10:52:36 +00:00
Bryan Boreham
494df21bdf
Disable imagePullPolicy so we test the image we just built
2016-11-04 10:52:36 +00:00
Bryan Boreham
e44bbbec63
Add smoke-test for weave-kube
2016-11-04 10:52:36 +00:00
Bryan Boreham
c19f49a284
Install Kubernetes packages and pre-pull images
...
Bump template version too
Note that we disable kubelet in the image, so you have to start it if
you want to use it.
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
Bryan Boreham
e117a6bd04
Have 'weave reset' remove NPC rules
2016-11-03 14:24:26 +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
Bryan Boreham
eb60f68df2
Report metrics on all connection states
2016-11-02 09:51: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
Bryan Boreham
afed9e9646
Merge pull request #2574 from pondohva/fix_weave_static_pod
...
allow to not run NPC: do not create iptables rules for NPC
2016-11-01 15:35:49 +00:00
Bryan Boreham
bf74c8f108
Add dependency of weave-kube on launch.sh
2016-11-01 10:46:25 +00:00
Bryan Boreham
04c7f5283e
Reconfigure and restart docker for systemctl
2016-10-31 17:33:33 +00:00
Bryan Boreham
d1d53ba45c
Pre-install more stuff in the image.
...
Install bc and jq in the image rather than on every build.
Also pre-pull some Docker images
2016-10-31 17:33:33 +00:00
Bryan Boreham
dfadb8f189
Upgrade to Ubuntu 16.04 and Docker 1.11
...
Using Docker 1.11 since there isn't a Docker-supplied package for 1.10 on Xenial
2016-10-31 17:33:33 +00:00
Bryan Boreham
5335c133a3
Update deprecated gcloud syntax
2016-10-31 17:33:33 +00:00
Bryan Boreham
23056cbb45
Temporarily release weave-daemonset.yaml to weave-kube repo
2016-10-31 10:59:15 +00:00
Bryan Boreham
29e9e70ac9
Add weave-kube to release script
2016-10-31 10:59:15 +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
Bryan Boreham
e50f5c52c5
Make templating of Dockerfiles more generic
2016-10-31 10:56:18 +00:00
Bryan Boreham
baf91658d6
Fix static linking flags
2016-10-28 14:51:26 +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
Bryan Boreham
a53d1e00ee
Recompute targets immediately after 'weave forget'
2016-10-21 18:02:25 +01:00
Bryan Boreham
4d8a40c0b5
Reduce metrics mechanism to just support fastdp
2016-10-21 14:44:12 +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