第 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.
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>注意Depending 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.