A few edits to improve awsvpc docs.
Fixed up the notes with spaces and bolding Fixed some awkwardness in first paragraph Fixed a couple of other sentences
This commit is contained in:
1 parent
c41ca708f3
commit
3c45ba09f9
1 file changed
+32
-31
+32
-31
@@ -3,25 +3,25 @@ title: Using IP Routing on an Amazon Web Services Virtual Private Cloud
|
|||||||
menu_order: 110
|
menu_order: 110
|
||||||
---
|
---
|
||||||
|
|
||||||
If you are running your container infrastructure entirely within
|
If your container infrastructure is running entirely within Amazon Web Services (AWS)
|
||||||
Amazon Web Services (AWS) Elastic Compute Cloud (EC2), then you can
|
Elastic Compute Cloud (EC2), then you can enable AWS-VPC mode with Weave Net. In AWS-VPC mode,
|
||||||
choose AWS-VPC mode to connect your containers without any overlay, so
|
containers are networked without using an overlay and allows network speeds
|
||||||
they can operate very close to the full speed of the underlying
|
close to that of the underlying network.
|
||||||
network.
|
|
||||||
|
|
||||||
In this mode, Weave Net still manages IP addresses and connects
|
With AWS-VPC enabled, Weave Net manages IP addresses and connects
|
||||||
containers to the network, but instead of wrapping up each packet and
|
containers to the network as usual, but instead of wrapping each packet and
|
||||||
sending it to its destination, Weave Net instructs the AWS network
|
sending it to its destination, Weave Net instructs the AWS network
|
||||||
router which ranges of container IP addresses live on which instance.
|
router with the ranges of container IP addresses and the instances
|
||||||
|
on which they live.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
###Configuring your EC2 instances to use Weave AWS-VPC mode
|
###Configuring EC2 Instances to use Weave AWS-VPC Mode
|
||||||
|
|
||||||
First, your AWS instances need to be given access to change the route
|
First, your AWS instances need to be given write access to the route
|
||||||
table. Give them an IAM Role which has this access; if you have an
|
table. Give them an IAM Role which has the following access, or if you have an
|
||||||
existing role then extend it or create a new one with a policy
|
existing role, then extend it or create a new role with a policy
|
||||||
allowing the necessary actions:
|
that allows the necessary actions:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
@@ -44,46 +44,47 @@ allowing the necessary actions:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Your Security Group must allow network traffic between instances: you
|
Secondly, your Security Group must allow network traffic between instances.
|
||||||
must open TCP port 6783 which Weave Net uses to manage the network,
|
You must open TCP port 6783 which is the port that Weave Net uses to manage the network and also
|
||||||
and you must allow any ports which your own containers use. Remember:
|
allow any ports which your own containers use.
|
||||||
there is no network overlay in this mode so IP packets with container
|
|
||||||
|
>>**Remember:** There is no network overlay in this mode, and so, IP packets with container
|
||||||
addresses will flow over the AWS network unmodified.
|
addresses will flow over the AWS network unmodified.
|
||||||
|
|
||||||
Also, you must disable the "Source/Destination check" on each machine,
|
Finally, since Weave will be operating with IP addresses outside of the
|
||||||
because Weave will be operating with IP addresses outside of the range
|
range allocated by Amazon, you must disable "Source/Destination check" on each machine.
|
||||||
allocated by Amazon.
|
|
||||||
|
|
||||||
###Using AWS-VPC mode
|
###Using AWS-VPC Mode
|
||||||
|
|
||||||
Launch Weave Net, adding the `--awsvpc` flag:
|
Launch Weave Net with the `--awsvpc` flag:
|
||||||
|
|
||||||
$ weave launch --awsvpc [other hosts]
|
$ weave launch --awsvpc [other hosts]
|
||||||
|
|
||||||
You still need to supply the names or IP addresses of other hosts in
|
>>**Note:** You will still need to supply the names or IP addresses of other hosts in
|
||||||
your cluster.
|
your cluster.
|
||||||
|
|
||||||
###Limitations
|
###Present Limitations
|
||||||
|
|
||||||
- AWS-VPC mode does not inter-operate with other Weave Net modes; it
|
- AWS-VPC mode does not inter-operate with other Weave Net modes; it
|
||||||
is all or nothing. In this mode, all hosts in a cluster must be AWS
|
is all or nothing. In this mode, all hosts in a cluster must be AWS
|
||||||
instances. We hope to ease this limitation in future.
|
instances. (We hope to ease this limitation in future.)
|
||||||
- The AWS network does not support multicast.
|
- The AWS network does not support multicast.
|
||||||
- The number of hosts in a cluster is limited by the maximum size of
|
- The number of hosts in a cluster is limited by the maximum size of
|
||||||
your AWS route table. This is limited to 50 entries though you
|
your AWS route table. This is limited to 50 entries though you
|
||||||
can request an increase to 100 by contacting Amazon.
|
can request an increase to 100 by contacting Amazon.
|
||||||
- All your containers must be on the same network, with no subnet
|
- All of your containers must be on the same network, with no subnet
|
||||||
isolation. We hope to ease this limitation in future.
|
isolation. (We hope to ease this limitation in future.)
|
||||||
|
|
||||||
###Packet size (MTU)
|
###Packet size (MTU)
|
||||||
|
|
||||||
The Maximum Transmission Unit, or MTU, is the technical term for the
|
The Maximum Transmission Unit, or MTU, is the technical term for the
|
||||||
limit on how big a single packet can be on the network. Weave Net
|
limit on how big a single packet can be on the network. Weave Net
|
||||||
defaults to 1410 bytes which works across almost all networks, but you
|
defaults to 1410 bytes. This default works across almost all networks, but for better
|
||||||
can set a larger size for better performance.
|
performance you can set it to a larger MTU size.
|
||||||
|
|
||||||
The AWS network supports packets of 9000 bytes, so in AWS-VPC mode you
|
The AWS network supports packets of up to 9000 bytes.
|
||||||
can run:
|
|
||||||
|
In AWS-VPC mode you can run the following:
|
||||||
|
|
||||||
$ WEAVE_MTU=9000 weave launch --awsvpc host2 host3
|
$ WEAVE_MTU=9000 weave launch --awsvpc host2 host3
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user