Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 1. Prerequisites checklist for deploying Red Hat OpenShift Service on AWS
This is a high level checklist of prerequisites needed to create a Red Hat OpenShift Service on AWS cluster.
The machine that you run the installation process from must have access to the following:
- Amazon Web Services API and authentication service endpoints
-
Red Hat OpenShift API and authentication service endpoints (
api.openshift.comandsso.redhat.com) - Internet connectivity to obtain installation artifacts during deployment
1.1. Accounts and permissions Link kopierenLink in die Zwischenablage kopiert!
Ensure that you have the following accounts, credentials, and permissions.
1.1.1. AWS account Link kopierenLink in die Zwischenablage kopiert!
You must have an AWS account with certain permissions before creating your cluster.
- Create an AWS account if you do not already have one.
- Gather the credentials required to log in to your AWS account.
- Ensure that your AWS account has sufficient permissions to use the ROSA CLI.
Enable Red Hat OpenShift Service on AWS for your AWS account on the AWS console.
-
If your account is the management account for your organization (used for AWS billing purposes), you must have
aws-marketplace:Subscribepermissions available on your account. See Service control policy (SCP) prerequisites for more information, or see the AWS documentation for troubleshooting: AWS Organizations service control policy denies required AWS Marketplace permissions.
-
If your account is the management account for your organization (used for AWS billing purposes), you must have
- Ensure you have not enabled restrictive tag policies. For more information, see Tag policies in the AWS documentation.
1.1.2. Red Hat account Link kopierenLink in die Zwischenablage kopiert!
Create your Red Hat account to maintain your Red Hat resources.
- Create a Red Hat account for the Red Hat Hybrid Cloud Console if you do not already have one.
- Gather the credentials required to log in to your Red Hat account.
1.2. CLI requirements Link kopierenLink in die Zwischenablage kopiert!
You need to download and install several CLI (command-line interface) tools to be able to deploy a cluster.
1.2.1. AWS CLI (aws) Link kopierenLink in die Zwischenablage kopiert!
The AWS CLI tool allows you to interact with AWS resources directly.
Procedure
- Install the AWS Command Line Interface.
- Log in to your AWS account using the AWS CLI: Sign in through the AWS CLI
Verify your account identity:
$ aws sts get-caller-identityCheck whether the service role for ELB (Elastic Load Balancing) exists:
$ aws iam get-role --role-name "AWSServiceRoleForElasticLoadBalancing"If the role does not exist, create it by running the following command:
$ aws iam create-service-linked-role --aws-service-name "elasticloadbalancing.amazonaws.com"
1.2.2. ROSA command-line interface (CLI) (rosa) Link kopierenLink in die Zwischenablage kopiert!
Install the ROSA CLI on in your local environment.
Procedure
- Install the ROSA CLI from the web console.
Log in to your Red Hat account by running
rosa loginand following the instructions in the command output:$ rosa login To login to your Red{nbsp}Hat account, get an offline access token at https://console.redhat.com/openshift/token/rosa ? Copy the token and paste it here:Alternatively, you can copy the full
$ rosa login --token=abc…command and paste that in the terminal:$ rosa login --token=<abc..>Confirm you are logged in using the correct account and credentials:
$ rosa whoami
1.2.3. OpenShift CLI (oc) Link kopierenLink in die Zwischenablage kopiert!
The OpenShift CLI (oc) is not required to deploy a Red Hat OpenShift Service on AWS cluster, but is a useful tool for interacting with your cluster after it is deployed.
Procedure
-
Download and install
ocfrom the OpenShift Cluster Manager Command-line interface (CLI) tools page, or follow the instructions in the Additional resources. Verify that the OpenShift CLI has been installed correctly by running the following command:
$ rosa verify openshift-client
1.3. AWS infrastructure prerequisites Link kopierenLink in die Zwischenablage kopiert!
Before you create your cluster, you need to have sufficient AWS quota.
Procedure
To verify that your AWS account has sufficient quota available to deploy a cluster, run the following command:
$ rosa verify quotaThis command only checks the total quota allocated to your account; it does not reflect the amount of quota already consumed from that quota. Running this command is optional because your quota is verified during cluster deployment. However, Red Hat recommends running this command to confirm your quota ahead of time so that deployment is not interrupted by issues with quota availability.
1.4. Service Control Policy (SCP) prerequisites Link kopierenLink in die Zwischenablage kopiert!
Red Hat OpenShift Service on AWS clusters are hosted in an AWS account within an AWS organizational unit. A service control policy (SCP) is created and applied to the AWS organizational unit that manages what services the AWS sub-accounts are permitted to access.
- Ensure that your organization’s SCPs are not more restrictive than the roles and policies required by the cluster.
- When you create a Red Hat OpenShift Service on AWS cluster, an associated AWS OpenID Connect (OIDC) identity provider is created.
1.5. Networking prerequisites Link kopierenLink in die Zwischenablage kopiert!
1.5.1. Firewall Link kopierenLink in die Zwischenablage kopiert!
You must configure your firewall so that your cluster can access the required domains and ports.
- Configure your firewall to allow access to the domains and ports listed in AWS firewall prerequisites.
1.5.2. Create VPC before cluster deployment Link kopierenLink in die Zwischenablage kopiert!
Red Hat OpenShift Service on AWS clusters must be deployed into an existing AWS Virtual Private Cloud (VPC).
Installing a new Red Hat OpenShift Service on AWS cluster into a VPC that was automatically created by the installer for a different cluster is not supported.
Your VPC must meet the requirements shown in the following table.
| Requirement | Details |
|---|---|
| VPC name | You need to have the specific VPC name and ID when creating your cluster. |
| CIDR range | Your VPC CIDR range should match your machine CIDR. |
| Availability zone | You need one availability zone for a single zone, and you need three for availability zones for multi-zone. |
| Public subnet | You must have one public subnet with a NAT gateway for public clusters. Private clusters do not need a public subnet. |
| DNS hostname and resolution | You must ensure that the DNS hostname and resolution are enabled. |
1.5.3. Additional custom security groups Link kopierenLink in die Zwischenablage kopiert!
During cluster creation, you can add additional custom security groups to a cluster that has an existing non-managed VPC. To do so, complete these prerequisites before you create the cluster:
- Create the custom security groups in AWS before you create the cluster.
- Associate the custom security groups with the VPC that you are using to create the cluster. Do not associate the custom security groups with any other VPC.
-
You may need to request additional AWS quota for
Security groups per network interface.
1.5.4. Custom DNS and domains Link kopierenLink in die Zwischenablage kopiert!
You can configure a custom domain name server and custom domain name for your cluster.
Prerequisites
-
By default, Red Hat OpenShift Service on AWS clusters require you to set the
domain name serversoption toAmazonProvidedDNSto ensure successful cluster creation and operation. - To use a custom DNS server and domain name for your cluster, the Red Hat OpenShift Service on AWS installer must be able to use VPC DNS with default DHCP options so that it can resolve internal IPs and services. This means that you must create a custom DHCP option set to forward DNS lookups to your DNS server, and associate this option set with your VPC before you create the cluster.
Procedure
Confirm that your VPC is using VPC Resolver by running the following command:
$ aws ec2 describe-dhcp-options