Installing Red Hat Cert Manager
Starting from IBM Cloud Pak foundational services 4.12.0, you can install Red Hat Cert Manager on an OpenShift Container Platform cluster.
Prerequisites
- Docker or Podman is installed.
- The OpenShift CLI (oc command) is installed.
- The
oc-mirrorplugin is installed. For more information, see Installing the oc-mirror OpenShift CLI plugin. - Access to the Red Hat
registry.redhat.iocontainer image registry.
Mirroring Red Hat Cert Manager images in disconnected environments
If you are installing OpenShift in a disconnected environment, you must mirror the Red Hat Cert Manager image set to a local registry. The following steps describe how to mirror the Red Hat Cert Manager image set to a local registry.
-
Set up local registry and registry namespaces. For more information, see Creating registry namespaces.
-
Configure credentials that allow images to be mirrored. Download the Red Hat pull secret from Red Hat® OpenShift® Cluster Manager. For more information about the config credential, see Configuring credentials that allow images to be mirrored.
-
Mirror an image set to a mirror registry.
-
Create an
ImageSetConfigurationdefinition to mirror Red Hat Cert Manager. Create the followingImageSetConfigurationAPI in the local file system based on the following example. Replace the<OCP-version>value with the Red Hat OpenShift Container Platform (OCP) version, for example,v4.18orv4.16.kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror: operators: - catalog: registry.redhat.io/redhat/redhat-operator-index:<OCP-version> packages: - name: openshift-cert-manager-operatorNote: For OpenShift operators, theCatalogSourceimages are specific to the OCP version. For example, aCatalogSourcethat is namedredhat-operatorshas a different image location for different OCP versions. To determine which images correspond to which versions, see the following list ofredhat-operatorsCatalogSourceimages. Red Hat calls these images as operator index images:OCP v4.12: registry.redhat.io/redhat/redhat-operator-index:v4.12 OCP v4.14: registry.redhat.io/redhat/redhat-operator-index:v4.14 OCP v4.16: registry.redhat.io/redhat/redhat-operator-index:v4.16 OCP v4.18: registry.redhat.io/redhat/redhat-operator-index:v4.18For more information, see Creating the image set configuration.
-
Mirror the images from the specified image set configuration to a specified registry by running the following command.
- The
<image_set_configuration>value specifies the name of the image set configuration file that you created in the previous step. - The
<file_path>value specifies the directory where cluster resources are generated. - The
<mirror_registry_url>value specifies the URL or address of the mirror registry where the images are stored and from which they need to be deleted.
oc mirror -c <image-set-configuration> --workspace file://<file-path> docker://<mirror-registry-URL> --v2 - The
-
Verify the installation. Go to the
working-dir/cluster-resourcesdirectory that was generated in the<file_path>directory. Verify that the YAML files are present for theImageDigestMirrorSetandCatalogSourceresourcesresources. For more information, see Creating the image set configuration.
For more information, see Mirroring an image set to a mirror registry.
-
-
Configure your cluster to use the resources that were generated by the
oc-mirrorplugin v2.- Log in to the OpenShift CLI as a user with the
cluster-adminrole. - Apply the YAML files from the results directory to the cluster by running the following command. Replace the
<path_to_oc_mirror_workspace>value with the path of your OpenShift mirror workspace.oc apply -f <path_to_oc_mirror_workspace>/working-dir/cluster-resources - Verify that the
ImageDigestMirrorSetresource is installed by running the following command:oc get imagedigestmirrorset - Verify that the
CatalogSourceresources are installed by running the following command:oc get catalogsource -n openshift-marketplace
For more information, see Configuring your cluster to use the resources generated by oc-mirror plugin v2.
- Log in to the OpenShift CLI as a user with the
Installing the Red Hat Cert Manager operator
Install the Red Hat Cert Manager operator by using the OpenShift CLI or the OpenShift console. For more information, see Installing the cert-manager Operator for Red Hat OpenShift .