Skip to content

amirajoodani/Install-Automatic-openshift-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Installing openshift cluster locally using docker automatically using bash script

In the previous article, we investigated the installation of openshift cluster locally using the CRC method. The mentioned method had limitations that required a lot of resources, which you can read from the link below:
Install OpenShift with CRC
In this article, we will examine the installation of an openshift cluster on a node using Docker. This method consumes less resources and can be installed in nested virtualization mode. First, we consider the installation of a machine with Centos7 operating system. We consider 4 gigs of RAM and 3 Vcpu for the mentioned machine. In order to simplify the process, we can use the following script, but we will check the installation steps inside the script. After running the script, you will first be asked for the IP address of the system so that it can be used when uploading the cluster. Then we install and activate the Docker service.
Then add a registry to the Docker service daemon. (This step is mandatory). After that, we reset the Docker service and add the firewall rules. Finally, we install the required packages and run the cluster with the IP of the machine with the public-hostname parameter.

bash openshift.sh

output should like this :
openshift cluster
and web console is accessable form https://IP:8443
openshift -web console