이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Installing a Red Hat OpenShift Service on AWS cluster in AWS GovCloud
To install a Red Hat OpenShift Service on AWS cluster in AWS GovCloud you must:
- Meet the requirements to access AWS GovCloud.
Complete the steps in Getting started with Red Hat OpenShift Service on AWS in AWS GovCloud:
- Preparing to access Red Hat OpenShift Service on AWS in AWS GovCloud.
- Signing up for a Red Hat FedRAMP account following.
3.1. Preparing to deploy a Red Hat OpenShift Service on AWS cluster in AWS GovCloud 링크 복사링크가 클립보드에 복사되었습니다!
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 in order to log into the service.rosa login --govcloud --token=<TOKEN>
$ rosa login --govcloud --token=<TOKEN>Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteDepending on your AWS CLI configuration, you may need to add a government region to the end of the command string like
--region us-gov-west-1.Run
rosa whoamito confirm all information is correct ensuring that you are using the AWS Gov region and the OCM API is “https://api.openshiftusgov.com”..rosa whoami
$ rosa whoamiCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- 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 링크 복사링크가 클립보드에 복사되었습니다!
You can create an AWS PrivateLink cluster 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
Creating a cluster can take up to 40 minutes.
With AWS PrivateLink, you can create a cluster with a single availability zone (Single-AZ) or multiple 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 autogenerated 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>
$ rosa create cluster --private-link --cluster-name=<cluster-name> [--machine-cidr=<VPC CIDR>/16] --subnet-ids=<private-subnet-id>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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>
$ 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>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Enter the following command to check the status of your cluster. During cluster creation, the
Statefield from the output will transition frompendingtoinstalling, and finally toready.rosa describe cluster --cluster=<cluster_name>
$ rosa describe cluster --cluster=<cluster_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
$ rosa logs install --cluster=<cluster_name> --watchCopy to Clipboard Copied! Toggle word wrap Toggle overflow