Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8bce1c28f | ||
|
|
9f0ac3dbe7 | ||
|
|
27178b1c79 | ||
|
|
f6c22ef9b5 | ||
|
|
040cb19fc5 | ||
|
|
928d08fb19 | ||
|
|
f82440f792 | ||
|
|
ad2dc562af | ||
|
|
ab1953e8ca | ||
|
|
a332af3146 | ||
|
|
5e271363cf | ||
|
|
99e360ce3b | ||
|
|
1c855f9bc1 | ||
|
|
6b6580413d | ||
|
|
06669325a7 |
No files matched your search
@@ -1,3 +1,23 @@
|
||||
## Release 2.5.1
|
||||
|
||||
This release fixes bugs reported for 2.5 release and small improvements.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* prevent warnings in kernal logs due to use of physdev model for
|
||||
non-bridged traffic #3449, #3453
|
||||
* Check and report the error occurred while getting the list of Kubernetes
|
||||
peers #3581, #3582
|
||||
|
||||
### Other improvements
|
||||
|
||||
* Update Ruby version to match Weaveworks website #3458
|
||||
* Fix the link to "Troubleshooting the Kubernetes Addon" section in the docs #3461
|
||||
* Document concept of connection limit in Weave #3395, #3413
|
||||
|
||||
[Full list of changes](https://github.com/weaveworks/weave/milestone/77?closed=1)
|
||||
|
||||
|
||||
## Release 2.5.0
|
||||
|
||||
This release adds support for Kubernetes `hostPort` mapping (#3016,#3356)
|
||||
|
||||
@@ -83,6 +83,9 @@ func reclaimRemovedPeers(kube kubernetes.Interface, cml *configMapAnnotations, m
|
||||
return err
|
||||
}
|
||||
nodes, err := getKubePeers(kube, true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
nodeSet := make(map[string]struct{}, len(nodes))
|
||||
for _, node := range nodes {
|
||||
nodeSet[node.name] = struct{}{}
|
||||
@@ -294,9 +297,6 @@ func main() {
|
||||
}
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
common.Log.Fatalf("[kube-peers] Could not get peers: %v", err)
|
||||
}
|
||||
if justReclaim {
|
||||
cml := newConfigMapAnnotations(configMapNamespace, configMapName, c)
|
||||
|
||||
@@ -313,6 +313,9 @@ func main() {
|
||||
return
|
||||
}
|
||||
peers, err := getKubePeers(c, false)
|
||||
if err != nil {
|
||||
common.Log.Fatalf("[kube-peers] Could not get peers: %v", err)
|
||||
}
|
||||
for _, node := range peers {
|
||||
fmt.Println(node.addr)
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error {
|
||||
|
||||
// If the destination address is not any of the local pods, let it through
|
||||
if err := ipt.Append(npc.TableFilter, npc.MainChain,
|
||||
"-m", "physdev", "--physdev-out="+bridgePortName, "-j", "ACCEPT"); err != nil {
|
||||
"-m", "physdev", "--physdev-is-bridged", "--physdev-out="+bridgePortName, "-j", "ACCEPT"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -150,8 +150,8 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error {
|
||||
// Egress rules:
|
||||
//
|
||||
// -A WEAVE-NPC-EGRESS -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
// -A WEAVE-NPC-EGRESS -m physdev --physdev-in=vethwe-bridge -j RETURN
|
||||
// -A WEAVE-NPC-EGRESS -d 224.0.0.0/4 -j RETURN
|
||||
// -A WEAVE-NPC-EGRESS -m physdev --physdev-in vethwe-bridge --physdev-is-bridged -j RETURN
|
||||
// -A WEAVE-NPC-EGRESS -m addrtype --dst-type LOCAL -j RETURN
|
||||
// -A WEAVE-NPC-EGRESS -m state --state NEW -j WEAVE-NPC-EGRESS-DEFAULT
|
||||
// -A WEAVE-NPC-EGRESS -m state --state NEW -m mark ! --mark 0x40000/0x40000 -j WEAVE-NPC-EGRESS-CUSTOM
|
||||
// -A WEAVE-NPC-EGRESS -m state --state NEW -m mark ! --mark 0x40000/0x40000 -j NFLOG --nflog-group 86
|
||||
@@ -171,7 +171,10 @@ func createBaseRules(ipt *iptables.IPTables, ips ipset.Interface) error {
|
||||
|
||||
ruleSpecs := [][]string{
|
||||
{"-m", "state", "--state", "RELATED,ESTABLISHED", "-j", "ACCEPT"},
|
||||
{"-m", "physdev", "--physdev-in=" + bridgePortName, "-j", "RETURN"},
|
||||
// skip running through egress network policies for the traffic not coming from local pods
|
||||
{"-m", "physdev", "--physdev-is-bridged", "--physdev-in=" + bridgePortName, "-j", "RETURN"},
|
||||
// skip running through egress network policies for the traffic bound for IP address assigned for the bridge
|
||||
{"-m", "addrtype", "--dst-type", "LOCAL", "-j", "RETURN"},
|
||||
}
|
||||
if allowMcast {
|
||||
ruleSpecs = append(ruleSpecs, []string{"-d", "224.0.0.0/4", "-j", "RETURN"})
|
||||
|
||||
@@ -142,6 +142,15 @@ is not reachable, then the packet is dropped. For most protocols
|
||||
(for example, TCP), the transmission will be retried a short time later, by
|
||||
which time the topology should have updated.
|
||||
|
||||
#### <a name="connection-limit"></a>Connection Limit
|
||||
|
||||
In a fully connected mesh of N peers, this would mean N^2 connections. To constrain the resource consumption and
|
||||
communication between the peers and complexity of route calculation there is a configurable upper limit on the
|
||||
maximum number of connections that a peer can make to the remote peers. There is safe default value (100) which works
|
||||
for most deployment. However if you would like to increase the number of peers, you should be able to explicitly override the
|
||||
default value by passing the value through `connlimit` flag for e.g.`weave launch --connlimit=100`. If you are using Weave with
|
||||
Kubernetes using [Kubernetes Addon](/site/kubernetes/kube-addon.md) then you can set CONN_LIMIT environment variable to set
|
||||
the connection limit.
|
||||
|
||||
**See Also**
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ The list of variables you can set is:
|
||||
* `CHECKPOINT_DISABLE` - if set to 1, disable checking for new Weave Net
|
||||
versions (default is blank, i.e. check is enabled)
|
||||
* `CONN_LIMIT` - soft limit on the number of connections between
|
||||
peers. Defaults to 30.
|
||||
peers. Defaults to 100.
|
||||
* `HAIRPIN_MODE` - Weave Net defaults to enabling hairpin on the bridge side of
|
||||
the `veth` pair for containers attached. If you need to disable hairpin, e.g. your
|
||||
kernel is one of those that can panic if hairpin is enabled, then you can disable it
|
||||
|
||||
@@ -332,6 +332,6 @@ and the container image versions as git hashes.
|
||||
|
||||
**See Also**
|
||||
|
||||
* [Troubleshooting the Kubernetes Addon](/site/kubernetes/kube-addon/#troubleshooting)
|
||||
* [Troubleshooting the Kubernetes Addon](/site/kubernetes/kube-addon.md#troubleshooting)
|
||||
* [Troubleshooting IPAM](/site/tasks/ipam/troubleshooting-ipam.md)
|
||||
* [Troubleshooting the Proxy](/site/tasks/weave-docker-api/using-proxy.md)
|
||||
Reference in new issue
Block a user