Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Installing a Red Hat OpenShift Service on AWS cluster in AWS GovCloud
You can install a Red Hat OpenShift Service on AWS cluster in AWS GovCloud with or without AWS PrivateLink. Before you begin, ensure that you meet the requirements to access AWS GovCloud, you have prepared to access Red Hat OpenShift Service on AWS in AWS GovCloud, and you have signed up for a Red Hat FedRAMP account.
3.1. Preparing to deploy a Red Hat OpenShift Service on AWS cluster in AWS GovCloud Copia collegamentoCollegamento copiato negli appunti!
To deploy a Red Hat OpenShift Service on AWS cluster in AWS GovCloud, you must be logged in to your Red Hat FedRAMP account.
Prerequisites
- You have configured your AWS CLI to use GovCloud.
- You are logged into your government region.
Procedure
- Navigate to https://console.openshiftusgov.com/openshift/token.
- Sign in with your Red Hat FedRAMP account credentials where you will see a screen with your token.
- Copy your token for the next step.
In your terminal:
Run
rosa loginand paste your copied token to log in to the service.$ rosa login --govcloud --token=<TOKEN>NoteDepending on your AWS CLI configuration, you might need to add a government region to the end of the command string, such as
--region us-gov-west-1.Run
rosa whoamito confirm all information is correct ensuring that you are using the AWS Gov region and the Red Hat OpenShift Cluster Manager API is “https://api.openshiftusgov.com”..$ rosa whoamiExample output
AWS ARN: arn:aws-us-gov:iam::00000000000:user/rosa-gov-user AWS Account ID: 00000000000 AWS Default Region: us-gov-east-1 OCM API: https://api.openshiftusgov.com OCM Account Email: rosa-gov-user@redhat.com OCM Account ID: 3ZXXXXXXXXXXXXXXXXXXXXXXXXX OCM Account Name: Rosa Gov OCM Account Username: rosa-gov-user OCM Organization External ID: rosa-gov-user OCM Organization ID: 3ZXXXXXXXXXXXXXXXXXXXXXXXXX OCM Organization Name: rosa-gov-user
- You must create a VPC where Red Hat OpenShift Service on AWS will be deployed. For instructions on setting up a VPC, see Amazon VPC architecture for the AWS PrivateLink use case.
3.2. Creating an AWS PrivateLink cluster Copia collegamentoCollegamento copiato negli appunti!
You can create an AWS PrivateLink cluster by using the ROSA command-line interface (CLI) (rosa).
AWS PrivateLink is supported on existing VPCs only.
Prerequisites
- You have available AWS service quotas.
- You have enabled the Red Hat OpenShift Service on AWS service in the AWS Console.
- You have installed and configured the latest ROSA CLI, on your installation host.
- For GovCloud, you have enabled the Red Hat OpenShift Service on AWS service in the AWS Console on the linked commercial account because it is inside the commercial account that you enable Red Hat OpenShift Service on AWS for GovCloud. For more information, see Enable ROSA and configure AWS prerequisites.
- For Private Marketplace, you have enabled the Red Hat OpenShift Service on AWS service in the AWS Console. For more information, see AWS Marketplace listings for ROSA.
Procedure
With AWS PrivateLink, you can create a cluster with a single availability zone (Single-AZ) or many availability zones (Multi-AZ). In either case, your machine’s classless inter-domain routing (CIDR) must match your virtual private cloud’s CIDR. See Requirements for using your own VPC and VPC validation for more information.
ImportantIf you use a firewall, you must configure it so that Red Hat OpenShift Service on AWS can access the sites that it requires to function.
For more information, see the AWS PrivateLink firewall prerequisites section.
NoteIf your cluster name is longer than 15 characters, it will contain an automatically generated domain prefix as a sub-domain for your provisioned cluster on
*.openshiftapps.com.To customize the subdomain, use the
--domain-prefixflag. The domain prefix cannot be longer than 15 characters, must be unique, and cannot be changed after cluster creation.To create a Single-AZ cluster:
$ rosa create cluster --private-link --cluster-name=<cluster-name> [--machine-cidr=<VPC CIDR>/16] --subnet-ids=<private-subnet-id>To create a Multi-AZ cluster:
$ rosa create cluster --private-link --multi-az --cluster-name=<cluster-name> [--machine-cidr=<VPC CIDR>/16] --subnet-ids=<private-subnet-id1>,<private-subnet-id2>,<private-subnet-id3>
Enter the following command to check the status of your cluster. During cluster creation, the
Statefield from the output changesfrompendingtoinstalling, and finally toready.$ rosa describe cluster --cluster=<cluster_name>NoteIf installation fails or the
Statefield does not change toreadyafter 40 minutes, check the installation troubleshooting documentation for more details.Enter the following command to follow the OpenShift installer logs to track the progress of your cluster:
$ rosa logs install --cluster=<cluster_name> --watch