Bryan Boreham
608b8f0a06
Supply the weave port number to bridgeConfig
2017-08-18 13:13:18 +00:00
Bryan Boreham
bc4c31e48b
If DNS server is off then disable proxy DNS registration
2017-08-18 10:25:10 +00:00
Martynas Pumputis
462033dc99
net-plugin: bind mount /lib/modules
...
Otherwise, the plugin is not able to load kernel modules
(openvswitch, vxlan, vport_vxlan) required by fastdp which
makes weave to fallback to sleeve.
CAP_SYS_MODULE is required in order to load kernel modules.
2017-08-04 14:14:55 +02: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
Matthias Radestock
cf1a1116f4
label weavedb image
...
Fixes weaveworks/scope#2610
2017-07-14 15:00:46 +01:00
Bryan Boreham
6b4c6c84b4
Add back HOSTNAME env var for weave-npc container
2017-07-03 16:41:07 +00:00
Marc Carré
fb7aa9298d
Merge pull request #3044 from weaveworks/check-disco-blank-token
...
Don't contact peer discovery back-end unless we have a token
2017-06-28 17:30:03 +01:00
Marc Carré
b79cc948b3
Merge pull request #3043 from weaveworks/issues/fastdp-enosupport-fallback
...
Fix fallback to pcap based bridge when odp is not supported
2017-06-28 17:25:45 +01:00
Bryan Boreham
15c512388d
Don't contact peer discovery back-end unless we have a token
2017-06-28 13:34:49 +00:00
Martynas Pumputis
f37377264b
Fix fallback to pcap based bridge when odp is not supported
...
The fix ensures that if odp is not supported (usually due to
missing openvswitch, vxlan or vport-vxlan kernel modules),
weaver will create the pcap based bridge instead of crashing.
2017-06-27 18:38:21 +02:00
Marc CARRE
a0064f7535
Update YAMLs to be what the Launch Generator serves.
...
See also:
- https://github.com/weaveworks/launch-generator/issues/133
- https://github.com/weaveworks/launch-generator/pull/134
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "http://localhost:8080/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "http://localhost:8080/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-26 17:54:17 +01:00
Marc Carré
79c9eff2b9
Merge pull request #3033 from weaveworks/put-namespace-back-in-yaml
...
Put kube-system namespace back in the weave-kube yaml
2017-06-26 15:09:18 +01:00
Matthias Radestock
c256daceb0
don't panic when TestMain is invoked as a regular test
...
Just no-op instead.
This change is necessary because previously a recent build-tools
change no longer excludes prog/* from unit testing since other
projects actually do have genuine tests under there.
2017-06-25 20:49:19 +01:00
Bryan Boreham
d958cff58e
Put kube-system namespace back in the weave-kube yaml
...
Save people getting in to trouble when they don't know to add `-n kube-system`
2017-06-23 16:07:55 +00:00
Bryan Boreham
b5e6d235ba
Merge pull request #3019 from unitymind/plugin-v2-ipalloc-range
...
Ability to set IPALLOC_RANGE via plugin-v2 configuration parameters
2017-06-23 10:40:04 +01:00
Marc CARRE
0d083077ab
Update YAMLs to be what the Launch Generator serves.
...
See also:
- weaveworks/launch-generator/pull/130
- weaveworks/launch-generator/pull/125
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "https://localhost:8080/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "https://localhost:8080/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-21 14:41:59 +01:00
Bryan Boreham
70f004cc62
Merge pull request #3018 from Shimi/patch-2
...
modify tolerations to match any taint
2017-06-20 12:02:56 +01:00
Vitaliy V. Shopov
c02cb45c6c
Ability to set IPALLOC_RANGE via plugin-v2 configuration parameters
2017-06-17 10:36:02 +10:00
Bryan Boreham
8dccc88613
Merge pull request #3000 from weaveworks/issues/2990-empty-selinuxoptions-by-default
...
Kubernetes' seLinuxOptions are empty by default
2017-06-16 15:44:44 +01:00
Bryan Boreham
28aa181480
Move setting up addresses for a container, into weaveutil-invoked function
...
This means we only change netns by execing nsenter: changing netns in
Go is unsafe for long-running processes like the proxy.
2017-06-16 13:19:08 +00:00
Bryan Boreham
97e0fcb765
Refactor: move SetupIface code from weaveutil to net package
2017-06-16 13:19:08 +00:00
Marc CARRE
666631134c
Update YAMLs to be what the Launch Generator serves.
...
See also: weaveworks/launch-generator/pull/117
Command used:
```
$ curl -fsSo prog/weave-kube/weave-daemonset-k8s-1.6.yaml "https://cloud.weave.works/k8s/v1.6/net?v=latest "
$ curl -fsSo prog/weave-kube/weave-daemonset.yaml "https://cloud.weave.works/k8s/v1.5/net?v=latest "
```
Annotations then removed.
2017-06-16 09:06:26 +00:00
Shimi Kiviti
66a569fc40
modify tolerations to match any node
...
Currently weave doesn't run on nodes with tolerations except the master
The suggested code change it to run on all nodes
2017-06-15 15:32:50 +03:00
Bryan Boreham
640b417b39
Merge branch '1.9'
2017-06-14 13:57:08 +00:00
Bryan Boreham
2584335b11
Allow any non-local traffic onto the weave bridge
...
If it's destined for a pod on another node it will be checked again
when it reaches that other node. The previous version was rejecting
traffic coming in from outside the cluster.
2017-06-12 17:00:57 +00:00
Bryan Boreham
ea098ac53e
Only retain IP addresses for running containers
2017-06-12 14:03:53 +00:00
Bryan Boreham
7871a0b7a4
Merge branch 1.9
2017-06-01 15:03:59 +00:00
Maxim Filatov
cb3b858df6
Weave-NPC should get hostname from K8s Downward API.
...
It is necessary in case when kubelet's args includes `--hostname_override=`.
Without this change, pods on hostname overriding kubelets will never be local,
and all pod's traffic will be blocked.
2017-05-31 18:06:17 +03:00
Bryan Boreham
2d3e070288
Let through connections from local pods to non-local pods
...
This means we only filter connections at the destination end,
which is a better match for the ingress-only rules.
2017-05-30 14:11:35 +00:00
Bryan Boreham
138141ac9b
Ignore updates for pods on other nodes
2017-05-30 14:11:34 +00:00
Bryan Boreham
fa56ad8bc3
Refactor: move logging of ipset entries down to ipset package
2017-05-30 14:11:33 +00:00
Bryan Boreham
9d29da8d27
Refactor creation of base iptables rules
2017-05-30 14:11:31 +00:00
Bryan Boreham
37526728e0
Merge branch '1.9'
2017-05-30 13:55:49 +00:00
Avi Deitcher
c05955d598
First cut of adding hairpin functionality to weave
2017-05-30 10:30:49 +00:00
Bryan Boreham
5106317e5d
Remove deprecated --init-peer-count option
...
Since this was the last deprecated option, remove all code to generate
deprecation warnings in the weave script.
2017-05-26 15:19:27 +00:00
Marc CARRE
067ce6de9f
Update Weave-Kube daemonset YAML files using Launch Generator.
...
Note that given the YAML's structure is different from previous version, indentation of `COVERAGE_ARGS` had to change (+4 whitespaces to each line).
Commands used:
```
$ curl -fsS https://frontend.dev.weave.works/k8s/v1.5/net?v=latest > prog/weave-kube/weave-daemonset.yaml
$ curl -fsS https://frontend.dev.weave.works/k8s/v1.6/net?v=latest > prog/weave-kube/weave-daemonset-k8s-1.6.yaml
```
Annotations removed from Launch Generator's files:
```
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-050965d",
"original-request": {
"url": "/k8s/v1.6/net?v=latest",
"date": "Thu May 25 2017 13:16:43 GMT+0000 (UTC)"
},
"email-address": "support@weave.works "
}
```
and
```
annotations:
cloud.weave.works/launcher-info: |-
{
"server-version": "master-050965d",
"original-request": {
"url": "/k8s/v1.5/net?v=latest",
"date": "Thu May 25 2017 13:16:43 GMT+0000 (UTC)"
},
"email-address": "support@weave.works "
}
```
2017-05-26 14:19:26 +01:00
Marc Carré
4f20f545dc
Merge pull request #2989 from weaveworks/remove-deprecated-options
...
Remove deprecated flag versions
2017-05-23 18:27:12 +01:00
Bryan Boreham
c617612794
Remove deprecated flag versions
2017-05-23 16:49:13 +00:00
Marc Carré
0c89bbb8df
Merge pull request #2967 from weaveworks/issues/2610-host-volume
...
Change weavedb from an emptyDir to a hostPath volume
2017-05-23 17:19:04 +01:00
Bryan Boreham
8a1f8d549e
Let through connections from local pods to non-local pods
...
This means we only filter connections at the destination end,
which is a better match for the ingress-only rules.
2017-05-19 15:17:20 +00:00
Bryan Boreham
a2b674e094
Ignore updates for pods on other nodes
2017-05-19 15:17:20 +00:00
Bryan Boreham
c4796dcdf5
Refactor: move logging of ipset entries down to ipset package
2017-05-19 15:17:20 +00:00
Bryan Boreham
992b4a65df
Refactor creation of base iptables rules
2017-05-19 15:17:20 +00:00
Bryan Boreham
bebaa48520
Change weavedb from an emptyDir to a hostPath volume
...
EmptyDir has the same lifetime as the pod, whereas we want our
persistence to extend past that, e.g. when Weave Net is upgraded.
`weave reset` cleans out the file.
We assume that /var/lib is writable.
2017-05-17 12:38:24 +00:00
Martynas Pumputis
582a792c71
Merge pull request #2966 from weaveworks/issues/2956-simplify-running
...
Simplify checks for plugin running
Fixes #2956 #2709
2017-05-17 12:56:31 +03:00
Bryan Boreham
933b395de4
Report plugin version status via the Config object
2017-05-17 09:28:34 +00:00
Bryan Boreham
4f485f856b
Factor out Plugin variables into Plugin and plugin.Config structs
2017-05-17 09:27:40 +00:00
Bryan Boreham
a36fc867d1
Formatting of status message
2017-05-17 09:27:39 +00:00
Bryan Boreham
b0da4f6b91
Move proxy and plugin status from shell to Go
...
In the process we stop printing out the `PLUGIN_FULL_NAME`, but that
is assumed to be something the user can figure out from `docker plugin ls`
2017-05-17 09:27:22 +00:00
Marc Carré
71d6e881f2
Merge pull request #2954 from weaveworks/issues/2953-reorg-images
...
Issues/2953 reorg images
2017-05-15 16:25:58 +01:00