Skip to main contentCloud-Native Toolkit

OpenShift CRC setup

Provides the instructions to install and setup OpenShift CRC for use with the Cloud-Native Toolkit.

The Cloud-Native Toolkit facilitate development and deployment of cloud-native applications. They can be hosted in any Kubernetes or OpenShift cluster, including the Red Hat CodeReady Containers local OpenShift environment.

These instructions help you install Red Hat CodeReady Containers and explain how to configure and run the Terraform infrastructure-as-code (IasC) scripts to install the Developer Tools into that CodeReady Containers install.

Prerequisites

The following prerequisites are required to support installing CodeReady Containers:

Install the CRC binary

Install and configure CRC as described in Install on Laptop

  • Remember to download the Pull Secret file

  • CRC executable: Copy the crc binary to your $PATH:

    From the directory where you unzipped the download:

    cp crc /usr/local/bin

Configure the CRC instance

Follow these steps to complete the installation:

  • Setup: Run the following command from a terminal session:

    crc setup
  • Add memory: By default, the CRC VM is set to only use 8 GB of RAM. The more RAM you can give it, the better.

    To set the CRC VM to 10 GB of RAM, do this:

    crc config set memory 10240
  • Start the local CRC Cluster

    Run the crc start command in a terminal window:

    crc start -p {pull-secret-file}
  • Wait about 5 minutes for the VM initialization to complete. When complete, the kubeadmin password will be displayed. Make note of this password because you will need it to log into the console.

  • Open the Cluster Admin Console

    crc console
  • Open a web browser and go to the OpenShift console

  • Login with user id kubeadmin and the password that was displayed after the crc start had completed.

Other useful links: