|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// *nodes/nodes/nodes-nodes-adding-node-iso.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: REFERENCE |
| 6 | +[id="adding-node-iso-configs_{context}"] |
| 7 | += Cluster configuration reference |
| 8 | + |
| 9 | +When creating the ISO image, configurations are retrieved from the target cluster and are applied to the new nodes. |
| 10 | +Any configurations for your cluster are applied to the nodes unless you override the configurations in either the `nodes-config.yaml` file or any flags you add to the `oc adm node-image create` command. |
| 11 | + |
| 12 | +[id="adding-node-iso-yaml-config_{context}"] |
| 13 | +== YAML file parameters |
| 14 | + |
| 15 | +Configuration parameters that can be specified in the `nodes-config.yaml` file are described in the following table: |
| 16 | + |
| 17 | +.`nodes-config.yaml` parameters |
| 18 | +[cols=".^4l,.^3,.^2",options="header"] |
| 19 | +|==== |
| 20 | +|Parameter|Description|Values |
| 21 | + |
| 22 | +|hosts: |
| 23 | +|Host configuration. |
| 24 | +|An array of host configuration objects. |
| 25 | + |
| 26 | +|hosts: |
| 27 | + hostname: |
| 28 | +|Hostname. |
| 29 | +Overrides the hostname obtained from either the Dynamic Host Configuration Protocol (DHCP) or a reverse DNS lookup. |
| 30 | +Each host must have a unique hostname supplied by one of these methods, although configuring a hostname through this parameter is optional. |
| 31 | +|String. |
| 32 | + |
| 33 | +|hosts: |
| 34 | + interfaces: |
| 35 | +|Provides a table of the name and MAC address mappings for the interfaces on the host. |
| 36 | +If a `NetworkConfig` section is provided in the `nodes-config.yaml` file, this table must be included and the values must match the mappings provided in the `NetworkConfig` section. |
| 37 | +|An array of host configuration objects. |
| 38 | + |
| 39 | +|hosts: |
| 40 | + interfaces: |
| 41 | + name: |
| 42 | +|The name of an interface on the host. |
| 43 | +|String. |
| 44 | + |
| 45 | +|hosts: |
| 46 | + interfaces: |
| 47 | + macAddress: |
| 48 | +|The MAC address of an interface on the host. |
| 49 | +|A MAC address such as the following example: `00-B0-D0-63-C2-26`. |
| 50 | + |
| 51 | +|hosts: |
| 52 | + rootDeviceHints: |
| 53 | +|Enables provisioning of the {op-system-first} image to a particular device. |
| 54 | +The node-adding tool examines the devices in the order it discovers them, and compares the discovered values with the hint values. |
| 55 | +It uses the first discovered device that matches the hint value. |
| 56 | +|A dictionary of key-value pairs. |
| 57 | +For more information, see "Root device hints" in the "Setting up the environment for an OpenShift installation" page. |
| 58 | + |
| 59 | +|hosts: |
| 60 | + rootDeviceHints: |
| 61 | + deviceName: |
| 62 | +|The name of the device the {op-system} image is provisioned to. |
| 63 | +|String. |
| 64 | + |
| 65 | +|hosts: |
| 66 | + networkConfig: |
| 67 | +|The host network definition. |
| 68 | +The configuration must match the Host Network Management API defined in the link:https://nmstate.io/[nmstate documentation]. |
| 69 | +|A dictionary of host network configuration objects. |
| 70 | + |
| 71 | +|==== |
| 72 | + |
| 73 | + |
| 74 | +[id="adding-node-iso-flags-config_{context}"] |
| 75 | +== Command flag options |
| 76 | + |
| 77 | +You can use command flags with the `oc adm node-image create` command to configure the nodes you are creating. |
| 78 | + |
| 79 | +The following table describes command flags that are not limited to the single-node use case: |
| 80 | + |
| 81 | +.General command flags |
| 82 | +[cols=".^4,.^3,.^2",options="header"] |
| 83 | +|==== |
| 84 | +|Flag|Description|Values |
| 85 | + |
| 86 | +|`--certificate-authority` |
| 87 | +|The path to a certificate authority bundle to use when communicating with the managed container image registries. |
| 88 | +If the `--insecure` flag is used, this flag is ignored. |
| 89 | +|String |
| 90 | + |
| 91 | +|`--dir` |
| 92 | +|The path containing the configuration file, if provided. |
| 93 | +This path is also used to store the generated artifacts. |
| 94 | +|String |
| 95 | + |
| 96 | +|`--insecure` |
| 97 | +|Allows push and pull operations to registries to be made over HTTP. |
| 98 | +|Boolean |
| 99 | + |
| 100 | +|`-o`, `--output-name` |
| 101 | +|The name of the generated output image. |
| 102 | +|String |
| 103 | + |
| 104 | +|`-a`, `--registry-config` |
| 105 | +|The path to your registry credentials. |
| 106 | +Alternatively, you can specify the `REGISTRY_AUTH_FILE` environment variable. |
| 107 | +The default paths are `${XDG_RUNTIME_DIR}/containers/auth.json`, `/run/containers/${UID}/auth.json`, `${XDG_CONFIG_HOME}/containers/auth.json`, `${DOCKER_CONFIG}`, `~/.docker/config.json`, `~/.dockercfg.` |
| 108 | +The order can be changed through the deprecated `REGISTRY_AUTH_PREFERENCE` environment variable to a "docker" value, in order to prioritize Docker credentials over Podman. |
| 109 | +|String |
| 110 | + |
| 111 | +|`--skip-verification` |
| 112 | +|An option to skip verifying the integrity of the retrieved content. |
| 113 | +This is not recommended, but might be necessary when importing images from older image registries. |
| 114 | +Bypass verification only if the registry is known to be trustworthy. |
| 115 | +|Boolean |
| 116 | + |
| 117 | +|==== |
| 118 | + |
| 119 | +The following table describes command flags that can be used only when creating a single node: |
| 120 | + |
| 121 | +.Single-node only command flags |
| 122 | +[cols=".^4,.^3,.^2",options="header"] |
| 123 | +|==== |
| 124 | +|Flag|Description|Values |
| 125 | + |
| 126 | +|`-c`, `--cpu-architecture` |
| 127 | +|The CPU architecture to be used to install the node. |
| 128 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 129 | +|String |
| 130 | + |
| 131 | +|`--hostname` |
| 132 | +|The hostname to be set for the node. |
| 133 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 134 | +|String |
| 135 | + |
| 136 | +|`-m`, `--mac-address` |
| 137 | +|The MAC address used to identify the host to apply configurations to. |
| 138 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 139 | +|String |
| 140 | + |
| 141 | +|`--network-config-path` |
| 142 | +|The path to a YAML file containing NMState configurations to be applied to the node. |
| 143 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 144 | +|String |
| 145 | + |
| 146 | +|`--root-device-hint` |
| 147 | +|A hint for specifying the storage location for the image root filesystem. The accepted format is `<hint_name>:<value>`. |
| 148 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 149 | +|String |
| 150 | + |
| 151 | +|`-k`, `--ssh-key-path` |
| 152 | +|The path to the SSH key used to access the node. |
| 153 | +This flag can be used to create only a single node, and the `--mac-address` flag must be defined. |
| 154 | +|String |
| 155 | +|==== |
| 156 | + |
| 157 | +//// |
| 158 | +Content to be added here. If the nodes-config.yaml has similar configuration options to the agent-config.yaml, is there a chance that we can duplicate or reuse some of the configuration reference we have for the Agent Installer? |
| 159 | +
|
| 160 | +Here's the reference doc for agent-config.yaml: https://docs.openshift.com/container-platform/4.16/installing/installing_with_agent_based_installer/installation-config-parameters-agent.html#agent-configuration-parameters_installation-config-parameters-agent |
| 161 | +//// |
0 commit comments