2019-01-09 12:13:17 -05:00
# Cluster Installation
2019-03-12 20:56:09 -04:00
At this point, you are ready to perform the OpenShift installation. You have two choices for installing your cluster on
AWS, Installer-Provided Infrastructure (IPI) or User-Provided Infrastructure (UPI). See below for an example of an
IPI install.
To see a guided example of a UPI install, please see [Install: User-Provided Infrastructure ](install_upi.md )
2019-01-09 12:13:17 -05:00
2019-03-12 20:56:09 -04:00
## Example: Installer-Provided Infrastructure (IPI)
The steps for performing an IPI-based install are outlined [here][cloud-install]. Following this guide you may begin at
Step 3: Download the Installer.
2019-01-09 12:13:17 -05:00
2022-07-04 16:04:38 +02:00
## Fully air-gapped installation
It is not possible to install Openshift on AWS in a fully air-gapped design because the installation process requires Internet access to use the route 53 API, as documented in the [AWS route 53 FAQ][aws-faq]:
```
Do I need connectivity to the outside Internet in order to use Private DNS?
You can resolve internal DNS names from resources within your VPC that do not have Internet connectivity. However, to update the configuration for your Private DNS hosted zone, you need Internet connectivity to access the Route 53 API endpoint, which is outside of VPC.
```
2019-01-09 12:13:17 -05:00
### Create Configuration
```console
2019-05-22 16:56:31 -07:00
$ openshift-install create install-config
2019-01-09 12:13:17 -05:00
? SSH Public Key /home/user_id/.ssh/id_rsa.pub
? Platform aws
? Region us-east-1
2019-03-08 12:49:36 -08:00
? Base Domain example.com
2019-01-09 12:13:17 -05:00
? Cluster Name test
? Pull Secret [? for help]
```
### Create Cluster
```console
2019-05-22 16:56:31 -07:00
$ openshift-install create cluster
2019-03-08 12:49:36 -08:00
INFO Waiting up to 30m0s for the Kubernetes API at https://api.test.example.com:6443...
2019-01-09 12:13:17 -05:00
INFO API v1.11.0+85a0623 up
INFO Waiting up to 30m0s for the bootstrap-complete event...
INFO Destroying the bootstrap resources...
2019-03-08 12:49:36 -08:00
INTO Waiting up to 30m0s for the cluster at https://api.test.example.com:6443 to initialize...
2019-01-09 12:13:17 -05:00
INFO Waiting up to 10m0s for the openshift-console route to be created...
INFO Install complete!
2022-03-17 10:58:50 -04:00
INFO To access the cluster as the system:admin user when using 'oc', run
export KUBECONFIG=/home/user/auth/kubeconfig
2019-03-08 12:49:36 -08:00
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.test.example.com
2019-04-01 14:25:32 -04:00
INFO Login to the console with user: kubeadmin, password: 5char-5char-5char-5char
2019-01-09 12:13:17 -05:00
```
### Running Cluster
In Route53, there will be a new, private hosted zone (for internal lookups):

In EC2, there will be 6 running instances:

2019-03-12 20:56:09 -04:00
The installation creates an encrypted AMI for the bootstrap and control-plane machines.
The encrypted AMI is [copied][encrypted-copy] from the AMI configured in the control-plane machine-API provider spec,
which is RHCOS by default.
The encryption uses the default EBS key for your target account and region
(`aws kms describe-key --key-id alias/aws/ebs` ).
The encrypted AMI is deregistered by `destroy cluster` .
2019-04-17 15:13:28 -04:00
An architecture diagram for the AWS elements created by the full installation is as depicted:
2019-01-09 12:13:17 -05:00
2019-04-17 15:13:28 -04:00

2019-01-09 12:13:17 -05:00
The nodes within the VPC utilize the internal DNS and use the Router and Internal API load balancers. External/Internet
access to the cluster use the Router and External API load balancers. Nodes are spread equally across 3 availability
zones.
The OpenShift console is available via the kubeadmin login provided by the installer:

2021-08-06 10:58:13 +02:00
[cloud-install]: https://console.redhat.com/openshift/create
2019-02-22 09:18:00 -08:00
[encrypted-copy]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html#create -ami-encrypted-root-snapshot
2022-07-04 16:04:38 +02:00
[aws-faq]: https://aws.amazon.com/route53/faqs/