OpenShift Local
Reference
Installation¶
- Login to OpenShift Hybrid Cloud Console → Clusters → Create Cluster → OpenShift Local
- Download Linux version
- Create a VM with supported Linux OS such as Fedora
- Ensure VM support virtualization (e.g in Proxmox, enable Host CPU mode)
- Copy the package downloaded from step 2 into the VM.
- Configure RAM and CPU
crc config set memory 16000crc config set cpus 4 - Install crc
crc setup - Once the installation and dependencies are installed, we can start OpenShift Local
crc start - kubeadmin and developer credentials are now shown on screen.
Remote Access¶
-
Install HAProxy
sudo dnf install haproxy -
Allow traffic through firewall
-
Allow API port 6443 through SELinux
sudo semanage port -a -t http_port_t -p tcp 6443 -
Backup HAProxy configuration
sudo cp /etc/haproxy.cfg /etc/haproxy.cfg.backup -
Configure HAProxy
-
Get the IP of the CRC container
/etc/haproxy.cfgglobal log /dev/log local0 defaults balance roundrobin log global maxconn 100 mode tcp timeout connect 5s timeout client 500s timeout server 500s listen apps bind 0.0.0.0:80 server crcvm $CRC_IP:80 check listen apps_ssl bind 0.0.0.0:443 server crcvm $CRC_IP:443 check listen api bind 0.0.0.0:6443 server crcvm $CRC_IP:6443 check -
Start HAProxy service
-
Change DNS entry to point to the IP address of the VM.
-
To get kubeadmin credentials, run
crc console --credentials