Browse Source

Add net creating in install-guide

The launch-instance.rst has no instruction for
external net creating.

Change-Id: I31b2e9092d936ceeb2e7e4f6b17cc5fc392677d0
coldmoment 2 years ago
parent
commit
c1da3bab5d
1 changed files with 72 additions and 0 deletions
  1. 72
    0
      install-guide/source/launch-instance.rst

+ 72
- 0
install-guide/source/launch-instance.rst View File

@@ -8,6 +8,78 @@ service, you can provision container clusters made up of virtual machines
8 8
 or baremetal servers. Then, you can use the appropriate COE client or
9 9
 endpoint to create containers.
10 10
 
11
+Create an external network (Optional)
12
+-------------------------------------
13
+
14
+To create a magnum cluster, you need an external network. If there are no
15
+external networks, create one.
16
+
17
+#. Create an external network with an appropriate provider based on your
18
+   cloud provider support for your case:
19
+
20
+   .. code-block:: console
21
+
22
+      $ openstack network create public --provider-network-type vxlan \
23
+                                        --external \
24
+                                        --project service
25
+      +---------------------------+--------------------------------------+
26
+      | Field                     | Value                                |
27
+      +---------------------------+--------------------------------------+
28
+      | admin_state_up            | UP                                   |
29
+      | availability_zone_hints   |                                      |
30
+      | availability_zones        |                                      |
31
+      | created_at                | 2017-03-27T10:09:04Z                 |
32
+      | description               |                                      |
33
+      | dns_domain                | None                                 |
34
+      | id                        | 372170ca-7d2e-48a2-8449-670e4ab66c23 |
35
+      | ipv4_address_scope        | None                                 |
36
+      | ipv6_address_scope        | None                                 |
37
+      | is_default                | False                                |
38
+      | mtu                       | 1450                                 |
39
+      | name                      | public                               |
40
+      | port_security_enabled     | True                                 |
41
+      | project_id                | 224c32c0dd2e49cbaadfd1cda069f149     |
42
+      | provider:network_type     | vxlan                                |
43
+      | provider:physical_network | None                                 |
44
+      | provider:segmentation_id  | 3                                    |
45
+      | qos_policy_id             | None                                 |
46
+      | revision_number           | 4                                    |
47
+      | router:external           | External                             |
48
+      | segments                  | None                                 |
49
+      | shared                    | False                                |
50
+      | status                    | ACTIVE                               |
51
+      | subnets                   |                                      |
52
+      | updated_at                | 2017-03-27T10:09:04Z                 |
53
+      +---------------------------+--------------------------------------+
54
+      $ openstack subnet create public-subnet --network public \
55
+                                        --subnet-range 192.168.1.0/24 \
56
+                                        --gateway 192.168.1.1 \
57
+                                        --ip-version 4
58
+      +-------------------+--------------------------------------+
59
+      | Field             | Value                                |
60
+      +-------------------+--------------------------------------+
61
+      | allocation_pools  | 192.168.1.2-192.168.1.254            |
62
+      | cidr              | 192.168.1.0/24                       |
63
+      | created_at        | 2017-03-27T10:46:15Z                 |
64
+      | description       |                                      |
65
+      | dns_nameservers   |                                      |
66
+      | enable_dhcp       | True                                 |
67
+      | gateway_ip        | 192.168.1.1                          |
68
+      | host_routes       |                                      |
69
+      | id                | 04185f6c-ea31-4109-b20b-fd7f935b3828 |
70
+      | ip_version        | 4                                    |
71
+      | ipv6_address_mode | None                                 |
72
+      | ipv6_ra_mode      | None                                 |
73
+      | name              | public-subnet                        |
74
+      | network_id        | 372170ca-7d2e-48a2-8449-670e4ab66c23 |
75
+      | project_id        | d9e40a0aff30441083d9f279a0ff50de     |
76
+      | revision_number   | 2                                    |
77
+      | segment_id        | None                                 |
78
+      | service_types     |                                      |
79
+      | subnetpool_id     | None                                 |
80
+      | updated_at        | 2017-03-27T10:46:15Z                 |
81
+      +-------------------+--------------------------------------+
82
+
11 83
 Provision a cluster and create a container
12 84
 ------------------------------------------
13 85
 

Loading…
Cancel
Save