mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
74 lines
3.0 KiB
Plaintext
74 lines
3.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * installing/installing_vsphere/ipi/ipi-vsphere-installation-reqs.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
|
|
[id="installation-vsphere-installer-infra-static-ip-nodes_{context}"]
|
|
== Static IP addresses for vSphere nodes
|
|
|
|
You can provision bootstrap, control plane, and compute nodes to be configured with static IP addresses in environments where Dynamic Host Configuration Protocol (DHCP) does not exist. To configure this environment, you must provide values to the `platform.vsphere.hosts.role` parameter in the `install-config.yaml` file.
|
|
|
|
:FeatureName: Static IP addresses for vSphere nodes
|
|
include::snippets/technology-preview.adoc[leveloffset=+1]
|
|
|
|
By default, the installation program is configured to use the DHCP for the network, but this network has limited configurable capabilities.
|
|
|
|
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.
|
|
|
|
.Example network configuration that specifies different roles
|
|
[source,yaml]
|
|
----
|
|
# ...
|
|
platform:
|
|
vsphere:
|
|
hosts:
|
|
- role: bootstrap # <1>
|
|
networkDevice:
|
|
ipAddrs:
|
|
- 192.168.204.10/24 # <2>
|
|
gateway: 192.168.204.1 # <3>
|
|
nameservers: # <4>
|
|
- 192.168.204.1
|
|
- role: control-plane
|
|
networkDevice:
|
|
ipAddrs:
|
|
- 192.168.204.11/24
|
|
gateway: 192.168.204.1
|
|
nameservers:
|
|
- 192.168.204.1
|
|
- role: control-plane
|
|
networkDevice:
|
|
ipAddrs:
|
|
- 192.168.204.12/24
|
|
gateway: 192.168.204.1
|
|
nameservers:
|
|
- 192.168.204.1
|
|
- role: control-plane
|
|
networkDevice:
|
|
ipAddrs:
|
|
- 192.168.204.13/24
|
|
gateway: 192.168.204.1
|
|
nameservers:
|
|
- 192.168.204.1
|
|
- role: compute
|
|
networkDevice:
|
|
ipAddrs:
|
|
- 192.168.204.14/24
|
|
gateway: 192.168.204.1
|
|
nameservers:
|
|
- 192.168.204.1
|
|
# ...
|
|
----
|
|
<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.
|
|
<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.
|
|
<3> The default gateway for the network interface.
|
|
<4> Lists up to 3 DNS nameservers.
|
|
+
|
|
[IMPORTANT]
|
|
====
|
|
To enable the Technology Preview feature of static IP addresses for vSphere nodes for your cluster, you must include `featureSet:TechPreviewNoUpgrade` as the initial entry in the `install-config.yaml` file.
|
|
====
|
|
|
|
After you deployed your cluster to run nodes with static IP addresses, you can scale a machine to use one of these static IP addresses. Additionally, you can use a machine set to configure a machine to use one of the configured static IP addresses.
|