Setting Up GitOps in Red Hat OpenShift
Begin by installing the necessary GitOps tools. Argo CD (see the Argo CD section in Chapter 4) is a popular choice for OpenShift, as it integrates seamlessly with the Kubernetes environment. You can install Argo CD directly into your OpenShift cluster using OperatorHub, which offers an easy installation process and automatic management of the application life cycle:
- To obtain the address of your local OpenShift cluster running on CRC, use the following command in your terminal:
$ crc start
The expected output of the
crc start
command will typically include several important pieces of information relevant to your local OpenShift cluster setup. Here’s an example of what you might see:INFO Loading bundle: crc_vfkit_4.14.12_arm64... INFO A CRC VM for OpenShift 4.14.12 is already running Started the OpenShift cluster. The server is accessible via web console at: https://console-openshift-console.apps-crc.testing Log in as administrator...