Bryan Boreham
db697fdaa5
Merge pull request #3435 from weaveworks/issues/fix-golint-import-path
...
Fix and improve build/Dockerfile
2018-10-29 16:37:53 +00:00
Bryan Boreham
53fd33044a
Merge pull request #3412 from weaveworks/gke
...
add rbac prerequisite for using weave net on GKE
2018-09-26 14:41:59 +01:00
Bryan Boreham
427e7a6868
Merge pull request #3408 from weaveworks/issues/3405-tracker-nil-deref
...
ipam: Do not deref nil in GET /ipinfo/tracker if tracker doesn't exist
2018-09-25 12:29:03 +01:00
Bryan Boreham
1fcd521f67
Add release v2.4.1
2018-09-13 15:25:47 +00:00
Bryan Boreham
008eeb03ad
Improve comments and error checking
2018-09-12 14:11:09 +00:00
Bryan Boreham
41c48dc678
Update test to call reclaimPeer()
2018-09-12 14:11:09 +00:00
Bryan Boreham
09be35dee0
Fetch stored peer list every time round the retry loop
...
This ensures we take account of other peers' updates and closes a race
condition whereby another peer's changes can be overwritten.
2018-09-12 14:11:09 +00:00
Bryan Boreham
c3ad641d94
Refactor: extract reclaimPeer() function
2018-09-12 14:11:09 +00:00
Bryan Boreham
bacb3952a3
Fetch Kubernetes node list every time round reclaim loop
...
If we retain the Kubernetes list for a long time we might see a peer
appear in the Weave list and conclude it has been deleted. We must
always fetch the Kubernetes list after fetching the Weave list, during
deletion.
2018-09-12 14:10:59 +00:00
Bryan Boreham
70257a6c19
Add test for kube-utils peer list
...
- In parallel on several goroutines, randomly add and remove peers.
- Maintain the test's own idea of current state.
- Check that the test's state and kube-utils' state are consistent.
2018-09-12 12:37:16 +00:00
Bryan Boreham
bfe9f00e55
Fake kubernetes API which implements optimistic locking
...
Mostly copied from kubernetes/client-go files
2018-09-12 12:37:16 +00:00
Bryan Boreham
591be2d08f
Refactor: Introduce an interface so weave client can be mocked
2018-09-12 12:37:16 +00:00
Bryan Boreham
c3ce052cc5
Refactor: use Kubernetes.Interface instead of *Clientset
...
So we can call with a mock for testing
2018-09-12 12:35:34 +00:00
Bryan Boreham
7dcd4bdf47
Refactor: extract peerlist fns to new file
2018-09-12 12:35:34 +00:00
Bryan Boreham
2d8373249a
Vendor mock Kubernetes APIs for testing
2018-09-12 12:35:33 +00:00
Bryan Boreham
4979ce1f5f
Update to dep v5
...
This adds more metadata to Gopkg.lock, and seems to have deleted a few
more files.
2018-09-12 12:35:33 +00:00
Bryan Boreham
2ff0bbe150
Reclaim IPs when node name is re-used
...
Change the map used to reclaim peers so it is indexed by PeerName
which should be unique over time, rather than NodeName which can be
re-used. Create an auxilliary set of NodeNames to help.
This way, if we can see that a different peer was previously running
with the same node name, it can be included for reclaim.
2018-09-10 15:10:51 +00:00
Bryan Boreham
a6e1165e71
Merge pull request #3369 from dholbach/fix-3338
...
docs: update ECS references
2018-09-06 14:24:15 +00:00
Bryan Boreham
fc211b15e9
Merge pull request #3393 from weaveworks/issues/3392-get-peers-with-no-ip
...
Do not exclude k8s node without any IP addr in reclaim
2018-09-06 15:20:33 +01:00
Bryan Boreham
612e265123
Merge pull request #3391 from weaveworks/debug-log
...
add documentation to enable debug logging
2018-09-06 12:45:58 +01:00
Bryan Boreham
8fb3da6fc8
Merge pull request #3371 from weaveworks/parse-labels
...
Parse labels
2018-08-10 13:33:22 +01:00
Bryan Boreham
1814bbd2f2
Test container args-parsing code
...
Extract function just to parse args, so we can call it separately and
test it.
2018-08-08 13:24:53 +00:00
Bryan Boreham
374fed4699
Support --label flag on run-container command
2018-08-08 13:24:53 +00:00
Bryan Boreham
90a81ce736
Merge pull request #3319 from weaveworks/weave-reset-err
...
Make error "Weave is not running" less confusing when running on Kubernetes
2018-07-24 10:18:24 +01:00
Bryan Boreham
9cf0dd1b87
Merge pull request #3313 from weaveworks/issues/2624-egress-npc
...
Implement Egress NPC
2018-07-24 10:17:45 +01:00
Bryan Boreham
88616007b0
Merge pull request #3353 from louismunro/fix_xtables_lock
...
Fix xtables.lock race condition between weave and kube-proxy.
2018-07-23 13:35:26 +01:00
Bryan Boreham
b8ce722a2c
Merge pull request #3346 from murali-reddy/issue-3206
...
3206: Protect against CNI plugin being called with the host namespace
2018-07-19 12:02:49 +01:00
Bryan Boreham
b8fa4af06a
Merge branch '2.3'
2018-07-17 12:25:49 +01:00
Bryan Boreham
7f1945f06e
Remove mention of Kubernetes 1.6 from docs: it's very old now
2018-07-17 12:24:20 +01:00
Bryan Boreham
ea8f041a20
Fix indentation of TOC
2018-07-17 11:38:09 +01:00
Bryan Boreham
52e8cdb011
Merge pull request #3348 from weaveworks/check-running
...
Add instructions to check weave-kube logs
2018-07-17 11:35:29 +01:00
Bryan Boreham
ac9f47783c
Review feedback
2018-07-17 10:24:26 +01:00
Bryan Boreham
08dc649b9a
Merge branch '2.3'
2018-07-12 08:58:54 +00:00
Bryan Boreham
bb1a373272
Add instructions to check weave-kube logs
...
"Check it is running" and "check the logs" are important steps when
troubleshooting.
2018-07-12 08:53:02 +00:00
Bryan Boreham
26792283ab
Merge pull request #3328 from weaveworks/minikube-docs
...
Add minikube caveat to docs
2018-07-05 13:39:06 +01:00
Bryan Boreham
32a92a4695
Add --force flag to kubeadm reset
2018-06-28 10:26:09 +00:00
Bryan Boreham
3bea2ae419
Bump to Kubernetes 1.11
2018-06-28 09:25:56 +00:00
Bryan Boreham
d513e68fab
Add permissions to set node status
...
This is needed to update the node NetworkUnavailable conditon
see https://github.com/weaveworks/weave/issues/3249
2018-06-21 11:08:27 +00:00
Bryan Boreham
cf66c8d507
Don't remove myself when reclaiming
...
Some logs from users show an entry of X with annotation X, which
suggests we have gone down the path of removing ourselves. This change
avoids that possibility.
2018-06-12 11:52:03 +00:00
Bryan Boreham
318bb767a5
Merge pull request #3320 from weaveworks/manifest-tool-make
...
Fix manifest-tool cmd in Makefile
2018-06-12 10:48:30 +01:00
Bryan Boreham
ad6148f0f6
Break out of kube rm peers loop if nothing changes
...
Avoid getting into an infinite loop if some of the logic or underlying
data is bad
2018-06-12 08:31:35 +00:00
Bryan Boreham
62c949df6e
Merge pull request #3316 from weaveworks/fix-makefile
...
Fix $HOME usage in Makefile
2018-06-11 16:39:36 +01:00
Bryan Boreham
8e374d9416
D'oh
2018-06-11 13:52:15 +00:00
Bryan Boreham
812c58297f
Merge pull request #3298 from weaveworks/issues/2924-preserve-src-ip-on-local
...
2924: Preserve the client source IP
2018-06-11 13:21:12 +01:00
Bryan Boreham
2a04df1049
Rename "kube-peers" to "kube-utils"
...
It's now doing things like network status that are outside of the
scope of "peers".
2018-06-11 11:22:07 +00:00
Bryan Boreham
5ff22a1a77
Review feedback: tidied up function names
2018-06-04 13:28:28 +00:00
Bryan Boreham
9b0d1bd054
Set Kubernetes NodeNetworkUnavailable to false when starting
2018-05-26 14:06:57 +00:00
Bryan Boreham
4c1c2a5661
Add --max-list-size option for ipset lists
...
and default it to 1024 for cases where the size is fixed by the kernel
2018-05-25 17:24:22 +00:00
Bryan Boreham
791d9aecfc
Extend k8s test to cover namespaceSelector and >10 Namespaces
2018-05-25 17:24:22 +00:00
Bryan Boreham
48aaac90fb
Merge pull request #3277 from weaveworks/ml-release-docs
...
Add instruction for validating whether imgs were pushed for all platforms
2018-05-23 13:51:38 +01:00
Bryan Boreham
1ee4039681
Add build constraint for go1.10 onwards
2018-05-03 07:15:36 +01:00
Bryan Boreham
3203814940
Merge pull request #3283 from weaveworks/note-ip-forward
...
Add note about ip forward setting
2018-05-02 13:58:32 +02:00
Bryan Boreham
acc8c33260
Merge pull request #3284 from weaveworks/docs-k8s-src-ip
...
Add docs/k8s-src-ip.md
2018-05-02 13:58:15 +02:00
Bryan Boreham
22ecf505e3
Added note about security implications of enabling IP forwarding
2018-05-02 06:06:58 +01:00
Bryan Boreham
c2c14410d2
Remove subprocess for changing netns
...
Now that Go 1.10 has removed the issue which made us do this.
2018-04-30 23:40:59 +01:00
Bryan Boreham
7b46391e30
Add vendor instructions
2018-04-27 14:34:49 +01:00
Bryan Boreham
ae551cafea
Run manifest-tool from a container image
...
The source code has incompatible dependencies so we can't build it.
2018-04-27 14:34:49 +01:00
Bryan Boreham
672c770dbe
Rework /report handler to pull format from URL
...
Otherwise test 150 would fail - Gorilla mux was not handling a newline
in the format parameter. This way you also get a better error if you
have an error in the parameter - instead of a 404.
2018-04-27 14:34:49 +01:00
Bryan Boreham
847046a225
Update to match upstream changes
2018-04-27 14:34:48 +01:00
Bryan Boreham
4da998ab45
Move to lower-case logrus import
2018-04-27 14:34:48 +01:00
Bryan Boreham
b534ea60f5
Copy dependencies into vendor dir, using dep
2018-04-27 14:34:48 +01:00
Bryan Boreham
549ccff5eb
Don't need to update submodules to build exes
2018-04-27 14:34:47 +01:00
Bryan Boreham
9cf6749b2e
Remove vendor submodules
2018-04-27 14:34:47 +01:00
Bryan Boreham
391b55ceaf
Add note about ip forward setting
2018-04-23 14:24:44 +01:00
Bryan Boreham
e05345d3bb
Add instructions for 'seeded by different peers' message
2018-04-17 10:24:00 +01:00
Bryan Boreham
fcb6f762a9
Review feedback
2018-04-09 13:42:09 +01:00
Bryan Boreham
5645f31934
Update docs for metrics endpoints
2018-04-09 13:11:29 +01:00
Bryan Boreham
a7295e2d03
Mention metrics and status addresses in the docs
2018-04-09 11:55:50 +01:00
Bryan Boreham
c3e6ac2cac
Merge pull request #3273 from weaveworks/go1.10.1
...
Use go1.10.1 for building
2018-04-09 11:40:11 +01:00
Bryan Boreham
81b2f2e15a
Merge pull request #3266 from weaveworks/test-k8s-1-10
...
Update tests to run against Kubernetes 1.10
2018-04-04 15:17:42 +01:00
Bryan Boreham
f6fdaf6492
Only expose metrics by default in weave-kube
2018-04-04 15:00:53 +01:00
Bryan Boreham
519c5d686a
Remove test for k8s 1.6 which breaks on 1.10
2018-04-04 12:26:18 +01:00
Bryan Boreham
f7e62ccbcc
Bump Kubernetes to 1.10
2018-04-04 12:26:09 +01:00
Bryan Boreham
19161c0c92
Merge branch '2.2'
2018-03-30 19:17:18 +00:00
Bryan Boreham
c528303841
Merge pull request #3265 from weaveworks/raise-kube-conn-limit
...
Raise weave-kube default connection limit from 30 to 100
2018-03-28 10:20:30 +01:00
Bryan Boreham
a439288765
Raise weave-kube default connection limit from 30 to 100
...
This was missed from 265bfcf
2018-03-27 21:06:41 +00:00
Bryan Boreham
416410912d
Merge pull request #3263 from weaveworks/faq-unique-peers
...
Add 'peer names collision' to FAQ
2018-03-23 15:14:21 +00:00
Bryan Boreham
b3f26f00e2
Add some hints how to set the unique ID
2018-03-23 14:55:54 +00:00
Bryan Boreham
90e6ecdd11
Add 'peer names collision' to FAQ
2018-03-23 14:10:05 +00:00
Bryan Boreham
8afc6f208d
Merge pull request #3253 from NathanHaim/issues/3245_change_golang_version
...
Update golang version to 1.10
2018-03-12 12:11:30 +00:00
Bryan Boreham
20eee3818e
Merge pull request #3236 from weaveworks/apk-ca-certs
...
Install ca-certificates instead of copying them
2018-02-28 17:00:31 +00:00
Bryan Boreham
94cd6226ea
Merge branch '2.2'
2018-02-28 16:58:22 +00:00
Bryan Boreham
5534ecf1b1
Merge pull request #3237 from weaveworks/issues/3222-dst-selector
...
Fix bug when dstSelector is overwritten by srcSelector
2018-02-28 16:56:07 +00:00
Bryan Boreham
d498df3933
Merge branch '2.2'
2018-02-28 10:32:45 +00:00
Bryan Boreham
75bf62ca80
Merge pull request #3234 from weaveworks/raise-conn-limit
...
Raise default connection limit from 30 to 100
2018-02-26 17:15:56 +00:00
Bryan Boreham
ce9c5162bd
Merge pull request #3238 from weaveworks/fix-k8s-weave-passwd-howto
...
Fix HOWTO for setting weave-kube passwd
2018-02-04 16:29:14 +00:00
Bryan Boreham
ea3aba8971
Wait 5 seconds to let pod connect before rolling next pod
2018-01-31 10:54:07 +00:00
Bryan Boreham
265bfcf9d7
Raise default connection limit from 30 to 100
2018-01-31 10:48:05 +00:00
Bryan Boreham
7a9fae5892
Add release v2.2
2018-01-30 12:10: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
Bryan Boreham
65efc89b78
Merge pull request #3227 from weaveworks/issues/3223-update-miekgdns
...
Update miekg/dns to 1.0.4
2018-01-29 15:49:45 +00:00
Bryan Boreham
ae38834507
Merge pull request #3229 from weaveworks/k8s-1.9
...
Update k8s in CI to 1.9.2 and fix flaky tests
2018-01-29 15:49:06 +00:00
Bryan Boreham
d528196033
Merge pull request #3224 from weaveworks/fix-ipt-rules-order
...
Fix subnet isolation and bump build-tools to latest
2018-01-29 15:19:13 +00:00
Bryan Boreham
bb961489b0
Merge branch '2.1'
2018-01-12 10:47:29 +00:00
Bryan Boreham
d6ae1f8375
Add CONN_LIMIT to kube-addon docs
2018-01-12 09:48:30 +00:00
Bryan Boreham
5a1361167e
Move our rules to the top of the FORWARD chain
...
We want our DROP rule to be executed ahead of any ACCEPT rules which
might have been added by another program on the system.
2018-01-11 15:35:19 +00:00
Bryan Boreham
4d5172f67e
Run test with Kubernetes 1.8.5 and --cluster-cidr
2018-01-11 15:24:25 +00:00
Bryan Boreham
6f01c31458
Extend kubernetes test to nodePort and virtual IP
2018-01-11 15:24:25 +00:00