Skip to content

Commit 5bdabe9

Browse files
authored
Merge pull request #78381 from abrennan89/OSDOCS-8209
OSDOCS-8209: Add more details to vSphere nodes example
2 parents 524c0a6 + e455b28 commit 5bdabe9

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

modules/installation-vsphere-installer-infra-static-ip-nodes.adoc

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,49 @@ By default, the installation program is configured to use the DHCP for the netwo
1313

1414
After you define one or more machine pools in your `install-config.yaml` file, you can define network definitions for nodes on your network. Ensure that the number of network definitions matches the number of machine pools that you configured for your cluster.
1515

16-
The following example shows a network configuration for a node with the role `compute`:
17-
16+
.Example network configuration that specifies different roles
1817
[source,yaml]
1918
----
20-
---
19+
# ...
2120
platform:
2221
vsphere:
2322
hosts:
24-
- role: compute <1>
23+
- role: bootstrap # <1>
24+
networkDevice:
25+
ipAddrs:
26+
- 192.168.204.10/24 # <2>
27+
gateway: 192.168.204.1 # <3>
28+
nameservers: # <4>
29+
- 192.168.204.1
30+
- role: control-plane
31+
networkDevice:
32+
ipAddrs:
33+
- 192.168.204.11/24
34+
gateway: 192.168.204.1
35+
nameservers:
36+
- 192.168.204.1
37+
- role: control-plane
38+
networkDevice:
39+
ipAddrs:
40+
- 192.168.204.12/24
41+
gateway: 192.168.204.1
42+
nameservers:
43+
- 192.168.204.1
44+
- role: control-plane
45+
networkDevice:
46+
ipAddrs:
47+
- 192.168.204.13/24
48+
gateway: 192.168.204.1
49+
nameservers:
50+
- 192.168.204.1
51+
- role: compute
2552
networkDevice:
2653
ipAddrs:
27-
- 192.168.204.10/24 <2>
28-
gateway: 192.168.204.1 <3>
54+
- 192.168.204.14/24
55+
gateway: 192.168.204.1
2956
nameservers:
30-
- 192.168.204.1 <4>
31-
---
57+
- 192.168.204.1
58+
# ...
3259
----
3360
<1> Valid network definition values include `bootstrap`, `control-plane`, and `compute`. You must list at least one `bootstrap` network definition in your `install-config.yaml` configuration file.
3461
<2> Lists IPv4, IPv6, or both IP addresses that the installation program passes to the network interface. The machine API controller assigns all configured IP addresses to the default network interface.

0 commit comments

Comments
 (0)