openshift
OpenShift from scratch - Part 2 > Basic Configuration for CRC on Windows
Commands for the local CRC VM from part one. Easy enough to remember until I haven’t touched it for a month.
Start / Stop / Delete:
crc start
crc stop
crc delete
View Configuration:
Show options: crc config
Show memory: crc config get memory
Show CPU: crc config get cpus
Show nameservers: crc config get nameserver
crc config view will show pretty much blank if you’ve accepted defaults. It only shows deviations from default settings.
Set Configuration:
CPU: crc config set cpus 4
Nameserver: crc config set nameserver 1.1.1.1
crc stop keeps the VM for next time. crc delete removes it, including the cluster state inside it; that isn’t a more thorough version of stop.
Configuration changes aren’t necessarily live changes to the running cluster. Check the setting’s help and restart or recreate the instance where required. Also, a public nameserver like 1.1.1.1 won’t resolve private corporate names just because it resolves public ones. That matters if the lab sits behind a VPN.
The CRC configuration reference is the place to check the requirements for the version you’ve installed.