A little story about RedHat CodeReady Containers
First of all, RedHat is not my favorite company in the FOSS world. many love the strict security policies of RedHat but I am not that security freak guy. I am always
setenforce 0 SELinux guy.
as you know I’m currently living in Tehran, and many of the tech industry companies due to the law of sanction or whatever didn’t allow Iranian to even pull their little shiny tiny docker images.
so, let’s talk about the main reason we are here.
the RedHat OpenShift is a Kubernetes distribution similar to rancher and vanilla Kubernetes and other k8s distribution. installing the RedHat openshift despite the big name of RedHat is painful so RedHat introduces the minishift for developers to test their shiny cloud-ready applications and debug them.
RedHat depreciates the minishift thanks to god and creates a new project from scratch, CRC or CodeReady Container is 4x version of openshift on a single huge VM.
I think somebody must ask RedHat about what did their expectation about the developer’s laptop resources, you need
- 4vcore CPU and
- at least 8GB memory
- and 30GB storage
in your system to run the k8s cluster with the flavor of openshift.
Please download the latest binary for your system from CRC project tags section or simply login with your account to RedHat cloud and download binary, let be honest I prefer openshift mirror to download the binary.
you need an RHEL Linux host for installing CRC.
it's ridiculous that the CRC developers limit themself to RHEL, I love ubuntu you can't imagine that after download a 2GB binary file and
crc setup you saw the yum command is failed, even ansible can recognize the OS type and do action base on that.
ok I installed the CRC on windows too it was dramatically better than minishift setup in windows, it will automatically configure your HyperV and virtual switch and NAT that amazing.
the installation steps are easy
- download the binary release
- extract the compressed archive
- execute CRC
- get the pull secret from RedHat website and copy and paste it to terminal
if you are lucky and everything went well you will get credentials in end and can login into your cluster.
for my brothers and sisters in Iran, you will need an HTTP proxy, fortunately, the CRC inherits the HTTP proxy of your environment for example, and automatically exclude localhost and Kubernetes related domains.