Raj Chaudhuri
c1d3107418
Changed module name, edited default manifests in prog/weave-kube
...
* Module name changed to `github.com/rajch/weave`
* Added environment variable `CHECKPOINT_DISABLE=1` to default manifests, to bypass weaveworks telemetry
2024-03-01 18:05:19 +05:30
Bryan Boreham
ad621c807e
Move Kubernetes API calls into kube-utils program
...
This reduces the size of the 'weaver' binary.
2021-01-19 17:22:47 +00:00
Bryan Boreham
b3d387fb86
Update Kubernetes client packages to 0.18.6
...
Lots of functions need Context parameters added
2020-08-04 10:11:30 +00:00
Bryan Boreham
d14502e071
Update Prometheus client to latest version
...
Also let Prometheus export process and Go metrics
2020-08-04 10:11:28 +00:00
Bryan Boreham
4592758e48
Merge pull request #3789 from hairyhenderson/add-connection-type-label-to-weave-connection-metric-3788
...
Add new 'type' and 'encryption' labels to weave_connections metric
2020-08-03 11:40:16 +01:00
Bryan Boreham
b0274e11be
Fetch DNS listen address from daemon
...
instead of assuming it's on the Docker bridge
Also move DNS address validation into NewDNSServer(),
so we only do it once.
2020-07-31 11:58:56 +00:00
Bryan Boreham
00623be8a7
Merge pull request #3624 from weaveworks/trim-tools
...
Remove some unused tools from the Weave docker containers
2020-07-30 14:14:49 +01:00
Bryan Boreham
2cc5c635c9
Add 'encrypted' label to connections metric
...
Extend tests to check it shows up.
Tests assume that metrics are published with metrics in alphabetical
order, which appears to be the case for now.
2020-07-30 11:07:33 +00:00
Bryan Boreham
865e2b726f
Ensure maps for connection counts are created before use
...
We know all the expected states, so can pre-create maps
2020-07-30 10:25:14 +00:00
Dave Henderson
2deb7e2e48
Add new 'type' label to weave_connections metric
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com >
2020-07-30 10:24:38 +00:00
Simon Howe
341bac9968
Rename Monitor -> MonitorForIptablesFlush
...
- Makes it all a bit more explicit
2020-07-24 15:04:28 +02:00
Simon Howe
899490c3f9
Removes disabling iptable canary
...
- Should always be on. Simpler.
2020-07-15 11:37:53 +02:00
Simon Howe
709b434f55
Clean up the Monitor go routine
2020-07-15 11:37:53 +02:00
Simon Howe
66eb80d841
Adds a CANARY chain and Monitor loop instead of reapplying iptables
2020-07-15 11:37:16 +02:00
Simon Howe
94e75e45af
Make ConfigureIPTables idempotent and poll it
...
- Instead of EnsureBridge
- Adds ipset.ExistEntry method
- Refactor ipset method names Exist <-> EntryExists
- Turn on iptable-refresh by default (10s)
- Adds a test that checks iptables are refreshed, check EXPOSE recovers
2020-07-15 11:35:41 +02:00
Bryan Boreham
a46d18da0c
Use a more targeted iptables rule to block access to control port
...
Only block the specific port Weave Net is listening on.
Add a comment so users know what the rule is for.
Remove the rule added in v2.6.3 because it was too coarse.
2020-05-29 19:58:41 +00:00
Bryan Boreham
6ad3e69faf
Plumb through /proc path config to Docker plugin
2020-05-18 14:47:26 +00:00
Bryan Boreham
b0d05f5e37
Increase default connection limit to 200
...
Improvements in resource consumption in larger clusters mean we can
raise this limit.
2019-11-05 14:21:24 +00:00
Bryan Boreham
fdf881420c
Remove some unused tools from the Weave docker containers
...
Use of `ethtool` was removed in #1958
`util-linux` was needed for `nsenter` which was removed in #3291
2019-03-26 18:42:14 +00:00
Murali Reddy
d3c5241f12
addressing review comments
2018-10-31 17:26:55 +05:30
Murali Reddy
427d694e1b
add checkpoint to include Kubernetes cluster information
...
Fixes #3324
2018-10-30 13:33:12 +05:30
Aaron Hurt
4b9c533b94
add the ability to skip creation of MASQUERADE rules via iptables when executing weave expose command
2018-08-31 11:46:31 -05:00
Martynas Pumputis
d15439aeac
Merge remote-tracking branch 'origin/2.3'
2018-06-11 16:39:03 +02: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
Martynas Pumputis
b6115f0147
Address the PR comments
...
- Track only local changes.
- Add comment to the iptables rule which prevents SNAT'ing.
- Rename the ipset to weaver-no-masq-local to prevent NPC from destroying it.
- Fix comment about create/flush WEAVE-EXPOSE.
- Add comment about reexpose being no-op if bridge hasn't been exposed.
- Add comment that the feature is not only for Kubernetes.
- Reuse the ipset instance.
2018-06-04 19:22:48 +02:00
Martynas Pumputis
ebf4b4b48a
Implement and start using NoMasqLocalTracker
...
The tracker updates the "no-masq-local" ipset with CIDR ranges allocated
by IPAM.
2018-06-04 14:08:24 +02:00
Martynas Pumputis
62c30d9130
Extern LocalRangeTracker interface with String method
...
Cleaner approach than passing a tracker name to ipam/http.
2018-06-04 14:08:24 +02:00
Martynas Pumputis
21fb953d0f
Create weave-no-masq-local ipset
...
The ipset is used to track locally allocated CIDRs. If requested,
external traffic sent to pods within these CIDR ranges will
avoid SNAT'ing (NYI).
2018-06-04 14:08:24 +02:00
Martynas Pumputis
6dce685105
Merge remote-tracking branch 'origin/2.3'
2018-05-22 17:21:03 +02:00
Marc Carré
9f207f161a
Add org.opencontainers.image.* labels to Dockerfiles
...
- This should ultimately help for image-to-code back references.
- `org.label-schema.*` labels are now deprecated, in favour of `org.opencontainers.image.*` labels.
See also: https://github.com/opencontainers/image-spec/blob/master/annotations.md#back-compatibility-with-label-schema
- Git revision is now injected at `docker build` time.
2018-05-14 11:51:40 +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
f6fdaf6492
Only expose metrics by default in weave-kube
2018-04-04 15:00:53 +01: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
Martynas Pumputis
0268aeb25f
Install ca-certificates instead of copying them
...
There is a package for alpine:
https://pkgs.alpinelinux.org/packages?name=ca-certificates&branch=v3.6
2018-02-01 14:44:00 +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
df688cfb53
Added weave_ipam_unreachable_percentage metric
2017-09-26 15:55:38 +00:00
Carlos Alexandro Becker
ab1cbcbbf8
prometheus: export count of unreachable peers ( #3119 )
...
* prometheus: export count of unreachable peers
* extracted part of printIPAMRanges
2017-09-26 16:50:10 +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