OCI container delivery
Use OCI container delivery to pull plug-in artifacts from registry.redhat.io/ansible-automation-platform/automation-portal. The plug-in version must match the imageTagInfo value in your Helm chart configuration. This is the recommended method for new installations.
Before you begin
- You have a Red Hat account with access to
registry.redhat.io. - You have credentials for
registry.redhat.io. - You have access to the OpenShift project where you will install the Helm chart.
- You have installed the OpenShift CLI (
oc) and logged in to your cluster. - You have a registry service account token from the Red Hat Customer Portal. For more information, see Registry Service Accounts.
Procedure
Results
- Verify that the secret exists in the project:
oc get secret <release-name>-dynamic-plugins-registry-authImportant Create this secret in the same OpenShift project as the Helm release, and create it before you install or upgrade the Helm release.
The dynamic plug-in init container uses
skopeoto pull OCI artifacts directly. It does not use KubernetesimagePullSecrets, cluster-levelImageDigestMirrorSetorImageTagMirrorSet, or OpenShift Container Platform global pull secrets. You must provide registry credentials in theauth.jsonsecret even if your cluster is configured with image mirrors.
OpenShift web console steps
You can create the dynamic-plugins-registry-auth secret in the OpenShift web console.
- In the OpenShift web console, select the OpenShift project where you will install the Helm release.
- In the Administrator view, click .
- Click .
- Set the secret name to
<release-name>-dynamic-plugins-registry-auth. - Add a key named
auth.jsonand paste the contents of your auth.json file as the value. - Click Create.
Helm chart configuration
When you configure the Helm chart, set redhat-developer-hub.global.pluginMode to oci for OCI container delivery (recommended). Verify that pluginMode is set to the correct value. If you omit this setting, the chart defaults to tarball.
Set imageTagInfo to the plug-in version that matches your deployment. To determine the correct version tag, see "Determine version tags before you install".
redhat-developer-hub:
global:
pluginMode: oci
imageTagInfo: "<plugin-version>"
If you need to change pluginMode after installing the Helm release, upgrade the Helm release.
OpenShift web console:
- In the Developer view, click Helm.
- Select the Helm release.
- Click .
- In the YAML view, set
redhat-developer-hub.global.pluginModetooci(OCI container delivery). - Click Upgrade.
Command line:
- Run the
helm upgradecommand with your updated values file:helm upgrade <release-name> <chart> -n <project> -f <values.yaml>