Bryan Boreham
d2ed91ccc8
Clean up log messages a bit
2017-12-01 14:20:39 +00:00
Bryan Boreham
333f4a1d3c
Make sure Annotation names conform to Kubernetes requirements.
...
E.g. replace "26:c6:0b:ba:fd:31" with "26_c6_0b_ba_fd_31"
2017-12-01 14:20:39 +00:00
Bryan Boreham
832fe2f0b0
Update local copy of annotations even after error
...
e.g. if we get a clash because someone else has updated the data, it
returns the new data so we should work off that next time.
Also re-fetch the Annotations every time round the main loop for safety.
2017-12-01 14:20:39 +00:00
Bryan Boreham
f07238c8bb
Move info log to after error check
2017-11-16 14:31:40 +00:00
Bryan Boreham
214cf6cb2e
Flip result code when checking for new peer
...
This avoids mistaking an error condition for the result we should act on
2017-11-15 10:11:02 +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
Bryan Boreham
70a13c9c12
Make kube-peers logging consistent and add -log-level flag
...
Also tag kube-peer log messages with "[kube-peers]": in a standard
deployment they end up interspersed with weaver log messages so this
makes it easier to pick them out.
2017-11-14 14:06:34 +00:00
Brice Fernandes
3afb8d3ddf
Add log messages to detect dying peer edge case
2017-11-14 14:06:34 +00:00
Brice Fernandes
fd2f91e2ee
Refactor: Improve naming
2017-11-14 14:06:33 +00:00
Brice Fernandes
cb0c9e5fba
Document: Add file-level docstrings for kube-peers
2017-11-14 14:06:33 +00:00
Brice Fernandes
6a0e39e5ee
Minor refactor for clarity
2017-11-14 14:06:33 +00:00
Bryan Boreham
a552f194b4
Code to reclaim IP address space from removed peers
2017-11-14 14:06:33 +00:00
Bryan Boreham
267bd8b51d
Pseudo-code to clean up dead peers
2017-11-14 14:06:33 +00:00
Brice Fernandes
497dddabc1
Improve config locking by using optimistic locking strategy
...
Loop using jitter until the update succeeds
2017-11-14 14:06:33 +00:00
Bryan Boreham
71b39489da
Maintain a list of peers in a Kubernetes annotation
...
This is prework for a feature which will remove 'dead' peers
2017-11-14 14:06:33 +00:00
Bryan Boreham
f431ee289b
Refactor: create config in main function
2017-11-14 14:06:33 +00:00
Ayodele Abejide
1ac543aba7
Upgrading client go and vendoring it's extra dependencies.
2017-10-10 16:48:35 +00:00
Bryan Boreham
28ea18d3a6
Remove localhost:8080 fallback for Kubernetes api-server
...
It was a hack for a badly-configured Kubernetes install: it shouldn't
be necessary, it will only work on an unsecured install, and it
generates confusing error messages when something is really wrong.
2017-07-19 22:59:34 +00:00
Bryan Boreham
24c2743a58
Check addresses are IPv4 in kube-peers
2017-04-28 11:05:38 +00:00
Mike Bryant
e78be1fc35
fix(kube-peers): Add support for ExternalIP addresses
...
Why:
* In some environments Nodes have an ExternalIP but no InternalIP
This change addresses the need by:
* Falling back to ExternalIP addresses if there isn't an InternalIP for a node
2017-04-27 13:56:23 +01: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
Bryan Boreham
4e7a3b1805
Add kube-peers program
2016-10-31 10:59:15 +00:00