Localhost dev cluster
This section describes how install localhost OpenShift cluster for test OpenShift deploy.
Create crc (CodeReady Containers cluster)
- Create RedHat account. https://www.redhat.com/
- Login
- Go to : https://console.redhat.com/openshift/create/local
- Download required version of CodeReady Containers.
- Download and save pull secret
- Extract files to folder and install if required (for Windows)
- Add crc path to system PATH
Start OpenShift cluster use console commands :
There is not enough default memory (9 Gb) / vCpus (4) / disk-size (35 Gb). Use commands for set new values :
crc config viewcrc config set memory 40crc config set cpus 12crc config set disk-size 50
Then start cluster
crc setupcrc start
On crc start on first call will require pull secret.
Issues
On windows crc version I have problem with increase disk size. On crc start I got default value 35 Gb. For increase size I have to stop running container, set new value and start container again:
- crc setup
- crc start
- crc stop
- crc config set disk-size 50
- crc start