OpenShift Internal Registry and ImageStreams
OpenShift can serve PAS-X MES Helm charts and container images directly from its integrated registry or via ImageStreams. Use this setup when you want the cluster to pull these artifacts from the internal registry.
| This scenario is optional and available on OpenShift only. |
Overview
OpenShift provides an integrated container registry at <integrated-registry> inside the cluster, for example image-registry.openshift-image-registry.svc:5000.
The registry stores content by namespace: <integrated-registry>/<namespace>/<name>:<tag>.
Names in the integrated registry cannot contain additional path segments. See Using Flattened Image Names for the naming rule and how SmartInstall rewrites references.
Configure SmartInstall
Set the registry and repository values to point SmartInstall to the integrated registry. Enable flattened image names in both values files:
-
In the PAS-X MES Applications values, set the registry to the
<integrated-registry>, the repository to<pasx-mes-namespace>, andsource.helm.useFlattenedImageNamestotrue. -
In the Global values (or individually, per MES Service), set the registry to the
<integrated-registry>, the repository to<pasx-mes-namespace>, andimage.useFlattenedImageNamestotrue.
|
Give pods pull access to the internal registry in the PAS-X MES namespace.
Use a valid Kubernetes Pull Secret or a ServiceAccount with equivalent permissions to the SmartInstall’s verification jobs also pull the tools container image on the cluster nodes. Configure access in the System Configuration’s Pull Secret or Service Account. |
Argo CD Configuration
Set repoURL in the Argo CD Application Manifest to <integrated-registry>/<pasx-mes-namespace>.
Argo CD pulls the mes-applications chart from its ImageStream.
Argo CD needs the following to pull Helm charts from the integrated registry:
-
An OCI Helm repository credential that covers
<integrated-registry>/<pasx-mes-namespace>. -
An identity with pull access to the ImageStreams. For example, use a ServiceAccount with the
system:image-pullerrole in the PAS-X MES namespace. -
Trust for the integrated registry’s TLS certificate, signed by the OpenShift service CA.
-
The integrated registry listed as an allowed source in the Argo CD project.
For instructions to configure credentials and certificates, see Access Private Git Repositories and Registries.
ImageStreams Usage
An ImageStream is a namespaced OpenShift resource for serving images through the integrated registry. Each ImageStream tag points to an image or OCI artifact imported from a source registry.
If you intend on serving the contents through ImageStreams, create them with the appropriate release tags in the PAS-X MES namespace before you start the installation. Add tags for each new release before you update the installation.
Use the artifact name as the ImageStream name for both Helm charts and container images and truncate the name to 63 characters when creating them:
| Artifact | ImageStream name | Tag | Convention |
|---|---|---|---|
Helm chart |
The |
The chart version |
|
Container image |
The last path segment of the image name |
The image tag |
|
|
Create and maintain the ImageStreams in the PAS-X MES namespace. SmartInstall does not create, import, or update them. |
|
For the complete naming rule, see Flattening rule. |