Installation configuration parameters for GCP
Before you deploy an OKD cluster on Google Cloud Platform (GCP), you provide parameters to customize your cluster and the platform that hosts it. When you create the install-config.yaml
file, you provide values for the required parameters through the command line. You can then modify the install-config.yaml
file to customize your cluster further.
Available installation configuration parameters for GCP
The following tables specify the required, optional, and GCP-specific installation configuration parameters that you can set as part of the installation process.
After installation, you cannot modify these parameters in the |
Required configuration parameters
Required installation configuration parameters are described in the following table:
Parameter | Description | Values |
---|---|---|
| The API version for the | String |
| The base domain of your cloud provider. The base domain is used to create routes to your OKD cluster components. The full DNS name for your cluster is a combination of the | A fully-qualified domain or subdomain name, such as |
| Kubernetes resource | Object |
| The name of the cluster. DNS records for the cluster are all subdomains of | String of lowercase letters, hyphens ( |
| The configuration for the specific platform upon which to perform the installation: | Object |
Network configuration parameters
You can customize your installation configuration based on the requirements of your existing network infrastructure. For example, you can expand the IP address block for the cluster network or provide different IP address blocks than the defaults.
Only IPv4 addresses are supported.
Globalnet is not supported with Red Hat OpenShift Data Foundation disaster recovery solutions. For regional disaster recovery scenarios, ensure that you use a nonoverlapping range of private IP addresses for the cluster and service networks in each cluster. |
Parameter | Description | Values | ||
---|---|---|---|---|
| The configuration for the cluster network. | Object
| ||
| The Red Hat OpenShift Networking network plugin to install. | Either | ||
| The IP address blocks for pods. The default value is If you specify multiple IP address blocks, the blocks must not overlap. | An array of objects. For example:
| ||
| Required if you use An IPv4 network. | An IP address block in Classless Inter-Domain Routing (CIDR) notation. The prefix length for an IPv4 block is between | ||
| The subnet prefix length to assign to each individual node. For example, if | A subnet prefix. The default value is | ||
| The IP address block for services. The default value is The OpenShift SDN and OVN-Kubernetes network plugins support only a single IP address block for the service network. | An array with an IP address block in CIDR format. For example:
| ||
| The IP address blocks for machines. If you specify multiple IP address blocks, the blocks must not overlap. | An array of objects. For example:
| ||
| Required if you use | An IP network block in CIDR notation. For example,
|
Optional configuration parameters
Optional installation configuration parameters are described in the following table:
Parameter | Description | Values | ||
---|---|---|---|---|
| A PEM-encoded X.509 certificate bundle that is added to the nodes’ trusted certificate store. This trust bundle may also be used when a proxy has been configured. | String | ||
| Controls the installation of optional core cluster components. You can reduce the footprint of your OKD cluster by disabling optional components. For more information, see the “Cluster capabilities” page in Installing. | String array | ||
| Selects an initial set of optional capabilities to enable. Valid values are | String | ||
| Extends the set of optional capabilities beyond what you specify in | String array | ||
| Enables workload partitioning, which isolates OKD services, cluster management workloads, and infrastructure pods to run on a reserved set of CPUs. Workload partitioning can only be enabled during installation and cannot be disabled after installation. While this field enables workload partitioning, it does not configure workloads to use specific CPUs. For more information, see the Workload partitioning page in the Scalability and Performance section. |
| ||
| The configuration for the machines that comprise the compute nodes. | Array of | ||
| Determines the instruction set architecture of the machines in the pool. Currently, clusters with varied architectures are not supported. All pools must specify the same architecture. Valid values are | String | ||
| Whether to enable or disable simultaneous multithreading, or
|
| ||
| Required if you use |
| ||
| Required if you use |
| ||
| The number of compute machines, which are also known as worker machines, to provision. | A positive integer greater than or equal to | ||
| Enables the cluster for a feature set. A feature set is a collection of OKD features that are not enabled by default. For more information about enabling a feature set during installation, see “Enabling features using feature gates”. | String. The name of the feature set to enable, such as | ||
| The configuration for the machines that comprise the control plane. | Array of | ||
| Determines the instruction set architecture of the machines in the pool. Currently, clusters with varied architectures are not supported. All pools must specify the same architecture. Valid values are | String | ||
| Whether to enable or disable simultaneous multithreading, or
|
| ||
| Required if you use |
| ||
| Required if you use |
| ||
| The number of control plane machines to provision. | The only supported value is | ||
| The Cloud Credential Operator (CCO) mode. If no mode is specified, the CCO dynamically tries to determine the capabilities of the provided credentials, with a preference for mint mode on the platforms where multiple modes are supported. |
| ||
| Sources and repositories for the release-image content. | Array of objects. Includes a | ||
| Required if you use | String | ||
| Specify one or more repositories that may also contain the same images. | Array of strings | ||
| How to publish or expose the user-facing endpoints of your cluster, such as the Kubernetes API, OpenShift routes. |
| ||
| The SSH key to authenticate access to your cluster machines.
| For example, |
Not all CCO modes are supported for all cloud providers. For more information about CCO modes, see the “Managing cloud provider credentials” entry in the Authentication and authorization content.
If you are installing on GCP into a shared virtual private cloud (VPC),
credentialsMode
must be set toPassthrough
orManual
.Setting this parameter to
Manual
enables alternatives to storing administrator-level secrets in thekube-system
project, which require additional configuration steps. For more information, see “Alternatives to storing administrator-level secrets in the kube-system project”.
Additional Google Cloud Platform (GCP) configuration parameters
Additional GCP configuration parameters are described in the following table:
Parameter | Description | Values | ||
---|---|---|---|---|
| Optional. By default, the installation program downloads and installs the Fedora CoreOS (FCOS) image that is used to boot control plane machines. You can override the default behavior by specifying the location of a custom FCOS image that the installation program is to use for control plane machines only. | String. The name of GCP project where the image is located. | ||
| The name of the custom FCOS image that the installation program is to use to boot control plane machines. If you use | String. The name of the FCOS image. | ||
| Optional. By default, the installation program downloads and installs the FCOS image that is used to boot compute machines. You can override the default behavior by specifying the location of a custom FCOS image that the installation program is to use for compute machines only. | String. The name of GCP project where the image is located. | ||
| The name of the custom FCOS image that the installation program is to use to boot compute machines. If you use | String. The name of the FCOS image. | ||
| The name of the existing Virtual Private Cloud (VPC) where you want to deploy your cluster. If you want to deploy your cluster into a shared VPC, you must set | String. | ||
| Optional. The name of the GCP project that contains the shared VPC where you want to deploy your cluster. | String. | ||
| The name of the GCP project where the installation program installs the cluster. | String. | ||
| The name of the GCP region that hosts your cluster. | Any valid region name, such as | ||
| The name of the existing subnet where you want to deploy your control plane machines. | The subnet name. | ||
| The name of the existing subnet where you want to deploy your compute machines. | The subnet name. | ||
| The availability zones where the installation program creates machines. | A list of valid GCP availability zones, such as
| ||
| The size of the disk in gigabytes (GB). | Any size between 16 GB and 65536 GB. | ||
| The GCP disk type. | The default disk type for all machines. Control plane nodes must use the | ||
| Optional. By default, the installation program downloads and installs the FCOS image that is used to boot control plane and compute machines. You can override the default behavior by specifying the location of a custom FCOS image that the installation program is to use for both types of machines. | String. The name of GCP project where the image is located. | ||
| The name of the custom FCOS image that the installation program is to use to boot control plane and compute machines. If you use | String. The name of the RHCOS image. | ||
| Optional. Additional network tags to add to the control plane and compute machines. | One or more strings, for example | ||
| The GCP machine type for control plane and compute machines. | The GCP machine type, for example | ||
| The name of the customer managed encryption key to be used for machine disk encryption. | The encryption key name. | ||
| The name of the Key Management Service (KMS) key ring to which the KMS key belongs. | The KMS key ring name. | ||
| The GCP location in which the KMS key ring exists. | The GCP location. | ||
| The ID of the project in which the KMS key ring exists. This value defaults to the value of the | The GCP project ID. | ||
| The GCP service account used for the encryption request for control plane and compute machines. If absent, the Compute Engine default service account is used. For more information about GCP service accounts, see Google’s documentation on service accounts. | The GCP service account email, for example | ||
| Whether to enable Shielded VM secure boot for all machines in the cluster. Shielded VMs have additional security protocols such as secure boot, firmware and integrity monitoring, and rootkit protection. For more information on Shielded VMs, see Google’s documentation on Shielded VMs. |
| ||
| Whether to use Confidential VMs for all machines in the cluster. Confidential VMs provide encryption for data during processing. For more information on Confidential computing, see Google’s documentation on Confidential computing. |
| ||
| Specifies the behavior of all VMs during a host maintenance event, such as a software or hardware update. For Confidential VMs, this parameter must be set to |
| ||
| The name of the customer managed encryption key to be used for control plane machine disk encryption. | The encryption key name. | ||
| For control plane machines, the name of the KMS key ring to which the KMS key belongs. | The KMS key ring name. | ||
| For control plane machines, the GCP location in which the key ring exists. For more information about KMS locations, see Google’s documentation on Cloud KMS locations. | The GCP location for the key ring. | ||
| For control plane machines, the ID of the project in which the KMS key ring exists. This value defaults to the VM project ID if not set. | The GCP project ID. | ||
| The GCP service account used for the encryption request for control plane machines. If absent, the Compute Engine default service account is used. For more information about GCP service accounts, see Google’s documentation on service accounts. | The GCP service account email, for example | ||
| The size of the disk in gigabytes (GB). This value applies to control plane machines. | Any integer between 16 and 65536. | ||
| The GCP disk type for control plane machines. | Control plane machines must use the | ||
| Optional. Additional network tags to add to the control plane machines. If set, this parameter overrides the | One or more strings, for example | ||
| The GCP machine type for control plane machines. If set, this parameter overrides the | The GCP machine type, for example | ||
| The availability zones where the installation program creates control plane machines. | A list of valid GCP availability zones, such as
| ||
| Whether to enable Shielded VM secure boot for control plane machines. Shielded VMs have additional security protocols such as secure boot, firmware and integrity monitoring, and rootkit protection. For more information on Shielded VMs, see Google’s documentation on Shielded VMs. |
| ||
| Whether to enable Confidential VMs for control plane machines. Confidential VMs provide encryption for data while it is being processed. For more information on Confidential VMs, see Google’s documentation on Confidential Computing. |
| ||
| Specifies the behavior of control plane VMs during a host maintenance event, such as a software or hardware update. For Confidential VMs, this parameter must be set to |
| ||
| The name of the customer managed encryption key to be used for compute machine disk encryption. | The encryption key name. | ||
| For compute machines, the name of the KMS key ring to which the KMS key belongs. | The KMS key ring name. | ||
| For compute machines, the GCP location in which the key ring exists. For more information about KMS locations, see Google’s documentation on Cloud KMS locations. | The GCP location for the key ring. | ||
| For compute machines, the ID of the project in which the KMS key ring exists. This value defaults to the VM project ID if not set. | The GCP project ID. | ||
| The GCP service account used for the encryption request for compute machines. If this value is not set, the Compute Engine default service account is used. For more information about GCP service accounts, see Google’s documentation on service accounts. | The GCP service account email, for example | ||
| The size of the disk in gigabytes (GB). This value applies to compute machines. | Any integer between 16 and 65536. | ||
| The GCP disk type for compute machines. |
| ||
| Optional. Additional network tags to add to the compute machines. If set, this parameter overrides the | One or more strings, for example | ||
| The GCP machine type for compute machines. If set, this parameter overrides the | The GCP machine type, for example | ||
| The availability zones where the installation program creates compute machines. | A list of valid GCP availability zones, such as
| ||
| Whether to enable Shielded VM secure boot for compute machines. Shielded VMs have additional security protocols such as secure boot, firmware and integrity monitoring, and rootkit protection. For more information on Shielded VMs, see Google’s documentation on Shielded VMs. |
| ||
| Whether to enable Confidential VMs for compute machines. Confidential VMs provide encryption for data while it is being processed. For more information on Confidential VMs, see Google’s documentation on Confidential Computing. |
| ||
| Specifies the behavior of compute VMs during a host maintenance event, such as a software or hardware update. For Confidential VMs, this parameter must be set to |
|