Installing a cluster on IBM Cloud in a disconnected environment
In OpenShift Container Platform 4.22, you can install a cluster in a restricted network by creating an internal mirror of the installation release content that is accessible to an existing Virtual Private Cloud (VPC) on IBM Cloud(R).
Prerequisites for installing a cluster on IBM Cloud(R) in a disconnected environment
Before installing an OpenShift Container Platform cluster on IBM Cloud(R) in a disconnected environment, ensure that you have configured your IBM Cloud(R) account, a mirror registry, an existing VPC with access to the mirror registry, and the ccoctl utility.
- You reviewed details about the OpenShift Container Platform installation and update processes.
- You configured an IBM Cloud(R) account to host the cluster.
- You have a container image registry that is accessible to the internet and your restricted network. The container image registry should mirror the contents of the OpenShift image registry and contain the installation media.
- You have an existing Virtual Private Cloud (VPC) on IBM Cloud(R) that meets the following requirements:
- The VPC contains the mirror registry or has firewall rules or a peering connection to access the mirror registry that is hosted elsewhere.
- The VPC can access IBM Cloud(R) service endpoints using a public endpoint. If network restrictions limit access to public service endpoints, evaluate those services for alternate endpoints that might be available. You cannot use the VPC that the installation program provisions by default.
- If you plan on configuring endpoint gateways to use IBM Cloud(R) Virtual Private Endpoints, consider the following requirements:
- Endpoint gateway support is currently limited to the
us-eastandus-southregions. - The VPC must allow traffic to and from the endpoint gateways. You can use the VPC’s default security group, or a new security group, to allow traffic on port 443.
- Endpoint gateway support is currently limited to the
- You configured the
ccoctlutility before you installed the cluster.
Additional resources
- OpenShift Container Platform installation and update
- Configuring an IBM Cloud(R) account
- Mirroring images for a disconnected installation by using the oc-mirror plugin v2
- Access to IBM service endpoints
- Allowing endpoint gateway traffic
- Configuring your firewall
- Configuring IAM for IBM Cloud(R)
About installations in restricted networks
You can install OpenShift Container Platform 4.22 in a restricted network that lacks an active internet connection. These restricted installations use installer-provisioned or user-provisioned infrastructure, depending on your cloud platform.
Required internet access and an installation host
You complete the installation using a bastion host or portable device that can access both the internet and your closed network. You must use a host with internet access to:
- Download the installation program, the OpenShift CLI (
oc), and the CCO utility (ccoctl). - Use the installation program to locate the Red Hat Enterprise Linux CoreOS (RHCOS) image and create the installation configuration file.
- Use
octo extractccoctlfrom the CCO container image. - Use
ocandccoctlto configure IAM for IBM Cloud(R).
Access to a mirror registry
To complete a restricted network installation, you must create a registry that mirrors the contents of the OpenShift image registry and contains the installation media.
You can create this registry on a mirror host, which can access both the internet and your restricted network, or by using other methods that meet your organization’s security restrictions.
For more information on mirroring images for a disconnected installation, see "Additional resources".
Access to IBM service endpoints
The installation program requires access to the following IBM Cloud(R) service endpoints:
- Cloud Object Storage
- DNS Services
- Global Search
- Global Tagging
- Identity Services
- Resource Controller
- Resource Manager
- VPC
If you are specifying an IBM(R) Key Protect for IBM Cloud(R) root key as part of the installation process, the service endpoint for Key Protect is also required.
By default, the public endpoint is used to access the service. If network restrictions limit access to public service endpoints, you can override the default behavior.
Before deploying the cluster, you can update the installation configuration file (install-config.yaml) to specify the URI of an alternate service endpoint. For more information on usage, see "Additional resources".
Additional limits
Clusters in restricted networks have the following additional limitations and restrictions:
- The
ClusterVersionstatus includes anUnable to retrieve available updateserror. - By default, you cannot use the contents of the Developer Catalog because you cannot access the required image stream tags.
Additional resources
- Mirroring images for a disconnected installation by using the oc-mirror plugin v2
- Additional IBM Cloud configuration parameters
About using a custom VPC
You can deploy OpenShift Container Platform into the subnets of an existing IBM(R) Virtual Private Cloud (VPC) to avoid account limit constraints or comply with your company’s infrastructure guidelines.
Because the installation program cannot know what other components are in your existing subnets, it cannot choose subnet CIDRs and so forth. You must configure networking for the subnets to which you will install the cluster.
Requirements for using your VPC
You must correctly configure the existing VPC and its subnets before you install the cluster. The installation program does not create the following components:
- NAT gateways
- Subnets
- Route tables
- VPC network
The installation program cannot:
- Subdivide network ranges for the cluster to use
- Set route tables for the subnets
- Set VPC options like DHCP
The installation program requires that you use the cloud-provided DNS server. Using a custom DNS server is not supported and causes the installation to fail.
VPC validation
The VPC and all of the subnets must be in an existing resource group. The cluster is deployed to the existing VPC.
As part of the installation, specify the following in the install-config.yaml file:
- The name of the existing resource group that contains the VPC and subnets (
networkResourceGroupName) - The name of the existing VPC (
vpcName) - The subnets that were created for control plane machines and compute machines (
controlPlaneSubnetsandcomputeSubnets)
Additional installer-provisioned cluster resources are deployed to a separate resource group (resourceGroupName). You can specify this resource group before installing the cluster. If undefined, a new resource group is created for the cluster.
To ensure that the subnets that you provide are suitable, the installation program confirms the following:
- All of the subnets that you specify exist.
- For each availability zone in the region, you specify:
- One subnet for control plane machines.
- One subnet for compute machines.
- The machine CIDR that you specified contains the subnets for the compute machines and control plane machines.
Subnet IDs are not supported.