Skip to content

Instantly share code, notes, and snippets.

@noseka1
Last active February 23, 2021 16:23
Show Gist options
  • Save noseka1/1656c047fc2b227cadcb47614a99101f to your computer and use it in GitHub Desktop.
Save noseka1/1656c047fc2b227cadcb47614a99101f to your computer and use it in GitHub Desktop.

CodeReady Containers

Configuring CRC

$ ./crc config set consent-telemetry yes
$ ./crc config set disable-update-check false
$ ./crc config set cpus 10
$ ./crc config set memory 47104
$ ./crc config set disk-size 120
$ ./crc config set pull-secret-file /home/anosek/.mysecrets/ocp-pull-secret.json

Running CRC

$ ./crc setup
$ ./crc start

Logging into CRC

Log in as kubeadmin:

$ oc login -u kubeadmin -p $(cat ~/.crc/cache/crc_libvirt_*/kubeadmin-password) api.crc.testing:6443

Log in as developer:

$ oc login -u developer -p developer api.crc.testing:6443

SSH into CRC virtual machine

$ ssh -i ~/.crc/machines/crc/id_ecdsa core@api.crc.testing

Clean up

Delete the CRC virtual machine:

$ virsh destroy crc
$ virsh undefine crc

Delete CRC network:

$ virsh net-destroy crc
$ virsh net-undefine crc

Delete CRC volume pool:

$ virsh pool-destroy crc
$ virsh pool-undefine crc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment