Skip to content

Instantly share code, notes, and snippets.

@navidshaikh
Last active January 30, 2020 16:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navidshaikh/328d8b75e734b13d38a69841eb3da5bf to your computer and use it in GitHub Desktop.
Save navidshaikh/328d8b75e734b13d38a69841eb3da5bf to your computer and use it in GitHub Desktop.
Get CRC running on local machine
1 - Get CRC:
https://github.com/code-ready/crc/releases
excerpts:
Downloads are available at:
https://mirror.openshift.com/pub/openshift-v4/clients/crc/1.4.0/ .
To use these binaries, please follow the instructions at https://cloud.redhat.com/openshift/install/crc/installer-provisioned
to obtain the needed pull-secret.
(download the pull-secret in your machine in a file)
2 - Extract the tar downloaded (there is a crc binary in there, add the extracted dir to your $PATH)
3 - Set crc config (one time)
```
$ crc set cpus 6
$ crc set memory 20480
```
4 - Setup (one time)
```
$ crc setup
```
5 - Start
```
$ crc start -p ~/path-to-pull-secrets-from-step-1
```
6 - login to cluster
```
$ #print credentials
$ crc console --credentials
```
Note:
- If your script has commands for scaling machineset, please comment it out.
- With every new release of CRC, repeat the process to get the latest OCP running)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment