highlight the need for weave expose in CNI/k8s (#2411)
* highlight the need for `weave expose` in CNI/k8s Fixes #2405 * Extend error message * rearranged the sentences weave launch <peer hosts> seems a bit orphaned here maybe include the weave connect command as well, since it's being mentioned.
This commit is contained in:
1 parent
4424e877f0
commit
0635ed1854
2 files changed
+11
-8
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ func findBridgeIP(bridgeName string, subnet net.IPNet) (net.IP, error) {
|
|||||||
return nil, fmt.Errorf("Could not find %q bridge", bridgeName)
|
return nil, fmt.Errorf("Could not find %q bridge", bridgeName)
|
||||||
}
|
}
|
||||||
if len(netdevs[0].CIDRs) == 0 {
|
if len(netdevs[0].CIDRs) == 0 {
|
||||||
return nil, fmt.Errorf("Bridge %q has no IP addresses", bridgeName)
|
return nil, fmt.Errorf("Bridge %q has no IP addresses; did you forget to run 'weave expose'?", bridgeName)
|
||||||
}
|
}
|
||||||
for _, cidr := range netdevs[0].CIDRs {
|
for _, cidr := range netdevs[0].CIDRs {
|
||||||
if subnet.Contains(cidr.IP) {
|
if subnet.Contains(cidr.IP) {
|
||||||
|
|||||||
+10
-7
@@ -11,8 +11,8 @@ manager built by Google.
|
|||||||
|
|
||||||
###Installing the Weave Net CNI plugin
|
###Installing the Weave Net CNI plugin
|
||||||
|
|
||||||
The Weave Net CNI plugin is installed when you run `weave setup`, if
|
If your machine has the directories normally used to host CNI plugins,
|
||||||
your machine has the directories normally used to host CNI plugins.
|
then the Weave Net CNI plugin is installed when you run `weave setup`.
|
||||||
|
|
||||||
To create those directories, run (as root):
|
To create those directories, run (as root):
|
||||||
|
|
||||||
@@ -25,15 +25,18 @@ Then run:
|
|||||||
|
|
||||||
###Launching Weave Net
|
###Launching Weave Net
|
||||||
|
|
||||||
To create a network which can span multiple hosts, the Weave peers must be connected to each other, by specifying the other hosts during `weave launch` or via
|
To create a network that spans multiple hosts, the Weave peers must be connected to each other.
|
||||||
|
This is accomplished by specifying the other hosts during `weave launch` or via
|
||||||
[`weave connect`](/site/using-weave/finding-adding-hosts-dynamically.md).
|
[`weave connect`](/site/using-weave/finding-adding-hosts-dynamically.md).
|
||||||
|
|
||||||
See [Using Weave Net](/site/using-weave.md#peer-connections) for a discussion on peer connections.
|
See [Creating Peer Connections Between Hosts](/site/using-weave.md#peer-connections)
|
||||||
|
for a discussion on peer connections.
|
||||||
As well as launching Weave Net, you have to run an extra command to
|
|
||||||
perform some additional configuration of the Weave bridge:
|
|
||||||
|
|
||||||
weave launch <peer hosts>
|
weave launch <peer hosts>
|
||||||
|
|
||||||
|
Next, assign an IP address to the Weave bridge and [enable access to containers from the host](/site/using-weave/host-network-integration.md),
|
||||||
|
which is required by Kubernetes, by running the following:
|
||||||
|
|
||||||
weave expose
|
weave expose
|
||||||
|
|
||||||
###Configuring Kubernetes to use the CNI Plugin
|
###Configuring Kubernetes to use the CNI Plugin
|
||||||
|
|||||||
Reference in new issue
Block a user