Install ROSA

Install ROSA

Install ROSA through Red Hat Hybrid Cloud Console

  1. Make settings ROSA

ROSA

Install ROSA with Red Hat Official Guide

  1. Install ROSA

    • To install ROSA, you need to have a Red Hat account, enable ROSA service on the AWS console
    • Visit the following link to install ROSA according to the official Red Hat instructions: [https://docs.openshift.com/rosa/rosa_install_access_delete_clusters/rosa_getting_started_iam/rosa-installing-rosa.html](https:// docs.openshift.com/rosa/rosa_install_access_delete_clusters/rosa_getting_started_iam/rosa-installing-rosa.html)
    • Check the installation by running the command
rosa

ROSA

You will see the following results:

$ rosa 
Command line tool for Red Hat OpenShift Service on AWS.
For further documentation visit https://access.redhat.com/documentation/en-us/red_hat_openshift_service_on_aws

Usage:
  rosa [command]

Available Commands:
  completion  Generates completion scripts
  create      Create a resource from stdin
  delete      Delete a specific resource
  describe    Show details of a specific resource
  download    Download necessary tools for using your cluster
  edit        Edit a specific resource
  grant       Grant role to a specific resource
  help        Help about any command
  init        Applies templates to support Red Hat OpenShift Service on AWS
  install     Installs a resource into a cluster
  list        List all resources of a specific type
  login       Log in to your Red Hat account
  logout      Log out
  logs        Show installation or uninstallation logs for a cluster
  revoke      Revoke role from a specific resource
  uninstall   Uninstalls a resource from a cluster
  upgrade     Upgrade a resource
  verify      Verify resources are configured correctly for cluster install
  version     Prints the version of the tool
  whoami      Displays user account information

Flags:
      --color string   Surround certain characters with escape sequences to display them in color on the terminal. Allowed options are [auto never always] (default "auto")
      --debug          Enable debug mode.
  -h, --help           help for rosa

Use "rosa [command] --help" for more information about a command.
  1. Enter the following command to verify that your AWS account has the required permissions
rosa verify permissions

ROSA

  • Result:
I: Validating SCP policies...
I: AWS SCP policies ok

Install Openshift CLI (oc)

  1. Install ROSA through Red Hat Hybrid Cloud Console

    • Similar to ROSA, you can also go to the Red Hat Hybrid Cloud Console and log into your Red Hat account: [https://console.redhat.com/openshift/downloads](https:// console.redhat.com/openshift/downloads)
    • Download the OpenShift command-line interface for your platform

ROSA

  1. Install OpenShift CLI with Red Hat Official Guide

oc

ROSA

  • Result:
$ oc

OpenShift Client

This client helps you develop, build, deploy, and run your applications on any
OpenShift or Kubernetes cluster. It also includes the administrative
commands for managing a cluster under the 'adm' subcommand.

To familiarize yourself with OpenShift, login to your cluster and try creating a
sample application:

    oc login mycluster.mycompany.com
    oc new-project my-example
    oc new-app django-psql-example
    oc logs -f bc/django-psql-example

To see what has been created, run:

    oc status

and get a command shell inside one of the created containers with:

    oc rsh dc/postgresql

To see the list of available toolchains for building applications, run:

    oc new-app -L

Since OpenShift runs on top of Kubernetes, your favorite kubectl commands are
also present in oc,
allowing you to quickly switch between development and debugging. You can also
run kubectl directly
against any OpenShift cluster using the kubeconfig file created by 'oc login'.

For more on OpenShift, see the documentation at https://docs.openshift.com.

To see the full list of commands supported, run 'oc --help'.