forked from pivotal-cf/docs-pks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nsxt-create-objects.html.md.erb
62 lines (48 loc) · 3.64 KB
/
nsxt-create-objects.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: Creating NSX-T Objects for PKS
owner: PKS
---
<strong><%= modified_date %></strong>
Installing PKS on vSphere with NSX-T requires the creation of NSX IP blocks for Kubernetes node and pod networks, as well as a Floating IP Pool from which you can assign routable IP addresses to cluster resources.
Create separate NSX-T [IP Blocks](https://docs.vmware.com/en/VMware-NSX-T/2.2/com.vmware.nsxt.admin.doc/GUID-46C7B20D-4BE4-400E-AF39-1ADFE945DE38.html) for the [node networks](#nodes-ip-block) and the [pod networks](#pods-ip-block). The subnets for both nodes and pods should have a size of 256 (/16). For more information, see [Plan IP Blocks](#plan-ip-blocks) and [Reserved IP Blocks](#reserved-ip-blocks).
* **NODE-IP-BLOCK** is used by PKS to assign address space to Kubernetes master and worker nodes when new clusters are deployed or a cluster increases its scale.
* **POD-IP-BLOCK** is used by the NSX-T Container Plug-in (NCP) to assign address space to Kubernetes pods through the Container Networking Interface (CNI).
In addition, create a Floating IP Pool from which to assign routable IP addresses to components. This network provides your load balancing address space for each Kubernetes cluster created by PKS. The network also provides IP addresses for Kubernetes API access and Kubernetes exposed services. For example, `10.172.2.0/24` provides 256 usable IPs. This network is used when creating the virtual IP pools, or when the services are deployed. You enter this network in the **Floating IP Pool ID** field in the **Networking** pane of the PKS tile.
Complete the following instructions to create the required NSX-T network objects.
##<a id='create-pods-ipb'></a> Create the Pods IP Block
1. In NSX Manager, go to **Networking > IPAM**.
<img src="images/nsxt/nsx-objects/create-pod-ipb-01.png">
1. Add a new IP Block for Pods. For example:
* **Name**: PKS-PODS-IP-BLOCK
* **CIDR**: 172.16.0.0/16
<img src="images/nsxt/nsx-objects/create-pod-ipb-02.png">
1. Verify creation of the Pods IP Block.
<img src="images/nsxt/nsx-objects/create-pod-ipb-03.png">
1. Get the UUID of the Pods IP Block object. You use this UUID when you install PKS with NSX-T.
<img src="images/nsxt/nsx-objects/create-pod-ipb-04.png">
##<a id='create-nodes-ipb'></a> Create the Nodes IP Block
1. In NSX Manager, go to **Networking > IPAM**.
<img src="images/nsxt/nsx-objects/create-node-ipb-01.png">
1. Add a new IP Block for Nodes. For example:
* **Name**: PKS-NODES-IP-BLOCK
* **CIDR**: 192.168.0.0/16
<img src="images/nsxt/nsx-objects/create-node-ipb-02.png">
1. Verify creation of the Nodes IP Block.
<img src="images/nsxt/nsx-objects/create-node-ipb-03.png">
1. Get the UUID of the Nodes IP Block object. You use this UUID when you install PKS with NSX-T.
<img src="images/nsxt/nsx-objects/create-node-ipb-04.png">
##<a id='create-float-ipp'></a> Create Floating IP Pool
1. In NSX Manager, go to **Inventory > Groups > IP Pool**.
<img src="images/nsxt/nsx-objects/create-float-ipp-01.png">
1. Add a new Floating IP Pool. For example:
* **Name**: PKS-FLOATING-IP-POOL
* **IP Ranges**: 10.40.14.10 - 10.40.14.253
* **Gateway**: 10.40.14.254
* **CIDR**: 10.40.14.0/24
<img src="images/nsxt/nsx-objects/create-float-ipp-02.png">
1. Verify creation of the Nodes IP Block.
<img src="images/nsxt/nsx-objects/create-float-ipp-03.png">
1. Get the UUID of the Floating IP Pool object. You use this UUID when you install PKS with NSX-T.
<img src="images/nsxt/nsx-objects/create-float-ipp-04.png">
##<a id='next'></a> Next Step
After you complete this procedure, follow the instructions in <a href="./installing-nsx-t.html">Installing PKS on vSphere with NSX-T</a>.