$ ./openshift-install version
You can use the Agent-based Installer to install a cluster on Oracle® Compute Cloud@Customer, so that you can run cluster workloads on on-premise infrastructure while still using Oracle® Cloud Infrastructure (OCI) services.
The following workflow describes a high-level outline for the process of installing an OpenShift Container Platform cluster on Compute Cloud@Customer using the Agent-based Installer:
Create Compute Cloud@Customer resources and services (Oracle).
Prepare configuration files for the Agent-based Installer (Red Hat).
Generate the agent ISO image (Red Hat).
Convert the ISO image to an Oracle Cloud Infrastructure (OCI) image, upload it to an OCI Home Region Bucket, and then import the uploaded image to the Compute Cloud@Customer system (Oracle).
Disconnected environments: Prepare a web server that is accessible by OCI instances (Red Hat).
Disconnected environments: Upload the rootfs image to the web server (Red Hat).
Configure your firewall for OpenShift Container Platform (Red Hat).
Create control plane nodes and configure load balancers (Oracle).
Create compute nodes and configure load balancers (Oracle).
Verify that your cluster runs on OCI (Oracle).
You must create an Compute Cloud@Customer environment on your virtual machine (VM) or bare-metal shape. By creating this environment, you can install OpenShift Container Platform and deploy a cluster on an infrastructure that supports a wide range of cloud options and strong security policies. Having prior knowledge of OCI components can help you with understanding the concept of OCI resources and how you can configure them to meet your organizational needs.
To ensure compatibility with OpenShift Container Platform, you must set
The |
You configured an OCI account to host the OpenShift Container Platform cluster. See "Access and Considerations" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation).
Create the required Compute Cloud@Customer resources and services.
For more information, see "Terraform Script Execution" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation).
You must create the install-config.yaml
and the agent-config.yaml
configuration files so that you can use the Agent-based Installer to generate a bootable ISO image. The Agent-based installation comprises a bootable ISO that has the Assisted discovery agent and the Assisted Service. Both of these components are required to perform the cluster installation, but the latter component runs on only one of the hosts.
You can also use the Agent-based Installer to generate or accept Zero Touch Provisioning (ZTP) custom resources. |
You reviewed details about the OpenShift Container Platform installation and update processes.
You read the documentation on selecting a cluster installation method and preparing the method for users.
You have read the "Preparing to install with the Agent-based Installer" documentation.
You downloaded the Agent-Based Installer and the command-line interface (CLI) from the Red Hat Hybrid Cloud Console.
If you are installing in a disconnected environment, you have prepared a mirror registry in your environment and mirrored release images to the registry.
Check that your
Example output for a shared registry binary
|
You have logged in to the OpenShift Container Platform with administrator privileges.
Create an installation directory to store configuration files in by running the following command:
$ mkdir ~/<directory_name>
Configure the install-config.yaml
configuration file to meet the needs of your organization and save the file in the directory you created.
install-config.yaml
file that sets an external platform# install-config.yaml
apiVersion: v1
baseDomain: <base_domain> (1)
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
network type: OVNKubernetes
machineNetwork:
- cidr: <ip_address_from_cidr> (2)
serviceNetwork:
- 172.30.0.0/16
compute:
- architecture: amd64 (3)
hyperthreading: Enabled
name: worker
replicas: 0
controlPlane:
architecture: amd64 (3)
hyperthreading: Enabled
name: master
replicas: 3
platform:
external:
platformName: oci (4)
cloudControllerManager: External
sshKey: <public_ssh_key> (5)
pullSecret: '<pull_secret>' (6)
# ...
1 | The base domain of your cloud provider. |
2 | The IP address from the virtual cloud network (VCN) that the CIDR allocates to resources and components that operate on your network. |
3 | Depending on your infrastructure, you can select either arm64 or amd64 . |
4 | Set OCI as the external platform, so that OpenShift Container Platform can integrate with OCI. |
5 | Specify your SSH public key. |
6 | The pull secret that you need for authenticate purposes when downloading container images for OpenShift Container Platform components and services, such as Quay.io. See Install OpenShift Container Platform 4 from the Red Hat Hybrid Cloud Console. |
Create a directory on your local system named openshift
. This must be a subdirectory of the installation directory.
Do not move the |
Configure the Oracle custom manifest files.
Go to "Prepare the OpenShift Master Images" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation).
Copy and paste the oci-ccm.yml
, oci-csi.yml
, and machineconfig-ccm.yml
files into your openshift
directory.
Edit the oci-ccm.yml
and oci-csi.yml
files to specify the compartment Oracle® Cloud Identifier (OCID), VCN OCID, subnet OCID from the load balancer, the security lists OCID, and the c3-cert.pem
section.
Configure the agent-config.yaml
configuration file to meet your organization’s requirements.
agent-config.yaml
file for an IPv4 network.apiVersion: v1beta1
metadata:
name: <cluster_name> (1)
namespace: <cluster_namespace> (2)
rendezvousIP: <ip_address_from_CIDR> (3)
bootArtifactsBaseURL: <server_URL> (4)
# ...
1 | The cluster name that you specified in your DNS record. |
2 | The namespace of your cluster on OpenShift Container Platform. |
3 | If you use IPv4 as the network IP address format, ensure that you set the rendezvousIP parameter to an IPv4 address that the VCN’s Classless Inter-Domain Routing (CIDR) method allocates on your network. Also ensure that at least one instance from the pool of instances that you booted with the ISO matches the IP address value you set for the rendezvousIP parameter. |
4 | The URL of the server where you want to upload the rootfs image. This parameter is required only for disconnected environments. |
Generate a minimal ISO image, which excludes the rootfs image, by entering the following command in your installation directory:
$ ./openshift-install agent create image --log-level debug
The command also completes the following actions:
Creates a subdirectory, ./<installation_directory>/auth directory:
, and places kubeadmin-password
and kubeconfig
files in the subdirectory.
Creates a rendezvousIP
file based on the IP address that you specified in the agent-config.yaml
configuration file.
Optional: Any modifications you made to agent-config.yaml
and install-config.yaml
configuration files get imported to the Zero Touch Provisioning (ZTP) custom resources.
The Agent-based Installer uses Red Hat Enterprise Linux CoreOS (RHCOS). The rootfs image, which is mentioned in a later step, is required for booting, recovering, and repairing your operating system. |
Disconnected environments only: Upload the rootfs image to a web server.
Go to the ./<installation_directory>/boot-artifacts
directory that was generated when you created the minimal ISO image.
Use your preferred web server, such as any Hypertext Transfer Protocol daemon (httpd
), to upload the rootfs image to the location specified in the bootArtifactsBaseURL
parameter of the agent-config.yaml
file.
For example, if the bootArtifactsBaseURL
parameter states http://192.168.122.20
, you would upload the generated rootfs image to this location so that the Agent-based installer can access the image from http://192.168.122.20/agent.x86_64-rootfs.img
. After the Agent-based installer boots the minimal ISO for the external platform, the Agent-based Installer downloads the rootfs image from the http://192.168.122.20/agent.x86_64-rootfs.img
location into the system memory.
The Agent-based Installer also adds the value of the |
Consider that the full ISO image, which is in excess of |
Before you install OpenShift Container Platform, you must configure your firewall to grant access to the sites that OpenShift Container Platform requires. When using a firewall, make additional configurations to the firewall so that OpenShift Container Platform can access the sites that it requires to function.
There are no special configuration considerations for services running on only controller nodes compared to worker nodes.
If your environment has a dedicated load balancer in front of your OpenShift Container Platform cluster, review the allowlists between your firewall and load balancer to prevent unwanted network restrictions to your cluster. |
Set the following registry URLs for your firewall’s allowlist:
URL | Port | Function |
---|---|---|
|
443 |
Provides core container images |
|
443 |
Hosts a signature store that a container client requires for verifying images pulled from |
|
443 |
Hosts all the container images that are stored on the Red Hat Ecosystem Catalog, including core container images. |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
Provides core container images |
|
443 |
The |
You can use the wildcards *.quay.io
and *.openshiftapps.com
instead of cdn.quay.io
and cdn0[1-6].quay.io
in your allowlist.
You can use the wildcard *.access.redhat.com
to simplify the configuration and ensure that all subdomains, including registry.access.redhat.com
, are allowed.
When you add a site, such as quay.io
, to your allowlist, do not add a wildcard entry, such as *.quay.io
, to your denylist. In most cases, image registries use a content delivery network (CDN) to serve images. If a firewall blocks access, image downloads are denied when the initial download request redirects to a hostname such as cdn01.quay.io
.
Set your firewall’s allowlist to include any site that provides resources for a language or framework that your builds require.
If you do not disable Telemetry, you must grant access to the following URLs to access Red Hat Insights:
URL | Port | Function |
---|---|---|
|
443 |
Required for Telemetry |
|
443 |
Required for Telemetry |
|
443 |
Required for Telemetry |
|
443 |
Required for Telemetry and for |
If you use Alibaba Cloud, Amazon Web Services (AWS), Microsoft Azure, or Google Cloud Platform (GCP) to host your cluster, you must grant access to the URLs that offer the cloud provider API and DNS for that cloud:
Cloud | URL | Port | Function |
---|---|---|---|
Alibaba |
|
443 |
Required to access Alibaba Cloud services and resources. Review the Alibaba endpoints_config.go file to find the exact endpoints to allow for the regions that you use. |
AWS |
|
443 |
Used to install and manage clusters in an AWS environment. |
Alternatively, if you choose to not use a wildcard for AWS APIs, you must include the following URLs in your allowlist: |
443 |
Required to access AWS services and resources. Review the AWS Service Endpoints in the AWS documentation to find the exact endpoints to allow for the regions that you use. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. This endpoint is always |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Used to install and manage clusters in an AWS environment. |
|
|
443 |
Required. Used to confirm quotas for deploying the service. |
|
|
443 |
Allows the assignment of metadata about AWS resources in the form of tags. |
|
|
443 |
Used to provide access to CloudFront. If you use the AWS Security Token Service (STS) and the private S3 bucket, you must provide access to CloudFront. |
|
GCP |
|
443 |
Required to access GCP services and resources. Review Cloud Endpoints in the GCP documentation to find the endpoints to allow for your APIs. |
|
443 |
Required to access your GCP account. |
|
Microsoft Azure |
|
443 |
Required to access Microsoft Azure services and resources. Review the Microsoft Azure REST API reference in the Microsoft Azure documentation to find the endpoints to allow for your APIs. |
|
443 |
Required to download Ignition files. |
|
|
443 |
Required to access Microsoft Azure services and resources. Review the Azure REST API reference in the Microsoft Azure documentation to find the endpoints to allow for your APIs. |
Allowlist the following URLs:
URL | Port | Function |
---|---|---|
|
443 |
Required to access the default cluster routes unless you set an ingress wildcard during installation. |
|
443 |
Required both for your cluster token and to check if updates are available for the cluster. |
|
443 |
Required for your cluster token. |
|
443 |
Required to access mirrored installation content and images. This site is also a source of release image signatures, although the Cluster Version Operator needs only a single functioning source. |
|
443 |
Required to access Quay image content in AWS. |
|
443 |
Required to download Red Hat Enterprise Linux CoreOS (RHCOS) images. |
|
443 |
The |
|
443 |
A source of release image signatures, although the Cluster Version Operator needs only a single functioning source. |
Operators require route access to perform health checks. Specifically, the authentication and web console Operators connect to two routes to verify that the routes work. If you are the cluster administrator and do not want to allow *.apps.<cluster_name>.<base_domain>
, then allow these routes:
oauth-openshift.apps.<cluster_name>.<base_domain>
canary-openshift-ingress-canary.apps.<cluster_name>.<base_domain>
console-openshift-console.apps.<cluster_name>.<base_domain>
, or the hostname
that is specified in the spec.route.hostname
field of the
consoles.operator/cluster
object if the field is not empty.
Allowlist the following URLs for optional third-party content:
URL | Port | Function |
---|---|---|
|
443 |
Required for all third-party images and certified operators. |
|
443 |
Provides access to container images hosted on |
|
443 |
Required for Sonatype Nexus, F5 Big IP operators. |
If you use a default Red Hat Network Time Protocol (NTP) server allow the following URLs:
1.rhel.pool.ntp.org
2.rhel.pool.ntp.org
3.rhel.pool.ntp.org
If you do not use a default Red Hat NTP server, verify the NTP server for your platform and allow it in your firewall. |
To run a cluster on Oracle® Compute Cloud@Customer, you must first convert your generated Agent ISO image into an OCI image, upload it to an OCI Home Region Bucket, and then import the uploaded image to the Compute Cloud@Customer system.
Compute Cloud@Customer supports the following OpenShift Container Platform cluster topologies:
|
You generated an Agent ISO image. See the "Creating configuration files for installing a cluster on Compute Cloud@Customer" section.
Convert the agent ISO image to an OCI image, upload it to an OCI Home Region Bucket, and then import the uploaded image to the Compute Cloud@Customer system. See "Prepare the OpenShift Master Images" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation) for instructions.
Create control plane instances on Compute Cloud@Customer. See "Create control plane instances on C3 and Master Node LB Backend Sets" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation) for instructions.
Create a compute instance from the supplied base image for your cluster topology. See "Add worker nodes" in OpenShift Cluster Setup with Agent Based Installer on Compute Cloud@Customer (Oracle documentation) for instructions.
Before you create the compute instance, check that you have enough memory and disk resources for your cluster. Additionally, ensure that at least one compute instance has the same IP address as the address stated under |
Verify that your cluster was installed and is running effectively on Oracle® Cloud Infrastructure (OCI).
You created all the required Oracle® Compute Cloud@Customer resources and services. See the "Creating Oracle Compute Cloud@Customer infrastructure resources and services" section.
You created install-config.yaml
and agent-config.yaml
configuration files. See the "Creating configuration files for installing a cluster on Compute Cloud@Customer" section.
You uploaded the agent ISO image to a default Oracle Object Storage bucket, and you created a compute instance on Compute Cloud@Customer. For more information, see "Running a cluster on Compute Cloud@Customer".
After you deploy the compute instance on a self-managed node in your OpenShift Container Platform cluster, you can monitor the cluster’s status by choosing one of the following options:
From the OpenShift Container Platform CLI, enter the following command:
$ ./openshift-install agent wait-for install-complete --log-level debug
Check the status of the rendezvous
host node that runs the bootstrap node. After the host reboots, the host forms part of the cluster.
Use the kubeconfig
API to check the status of various OpenShift Container Platform components. For the KUBECONFIG
environment variable, set the relative path of the cluster’s kubeconfig
configuration file:
$ export KUBECONFIG=~/auth/kubeconfig
Check the status of each of the cluster’s self-managed nodes. CCM applies a label to each node to designate the node as running in a cluster on OCI.
$ oc get nodes -A
NAME STATUS ROLES AGE VERSION
main-0.private.agenttest.oraclevcn.com Ready control-plane, master 7m v1.27.4+6eeca63
main-1.private.agenttest.oraclevcn.com Ready control-plane, master 15m v1.27.4+d7fa83f
main-2.private.agenttest.oraclevcn.com Ready control-plane, master 15m v1.27.4+d7fa83f
Check the status of each of the cluster’s Operators, with the CCM Operator status being a good indicator that your cluster is running.
$ oc get co
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE MESSAGE
authentication 4.18.0-0 True False False 6m18s
baremetal 4.18.0-0 True False False 2m42s
network 4.18.0-0 True True False 5m58s Progressing: …
…