Skip to Content

OpenShift Differences

The other pages of this section describe an installation on GKE. On OpenShift, install the same releases in the same order, with the differences on this page.

These placeholders are used only on this page. Environment Parameters defines the others.

PlaceholderValue
<CLUSTER_REGISTRY>Address of the internal image registry of the OpenShift cluster.
<ROUTER_DOMAIN>Domain of the OpenShift router, which its wildcard certificate covers.
<WINDOWS_RUNTIME_CLASS>RuntimeClass of the Windows nodes, for example windows2022.

Overview

TopicGKEOpenShift
ImagesPulled from <IMAGE_REGISTRY>The RSH chart images are copied into the cluster registry; global.imageRegistry: <CLUSTER_REGISTRY>/<INTERNAL_NAMESPACE>. Datacollection is not copied that way; see Images
Host namesPrefixes that add subdomains, such as iam-supervisioncenter.keycloak.One label in front of <ROUTER_DOMAIN>; see Hosts
TLScert-manager or a TLS Secret per ingressTerminated by the router with its wildcard certificate; no issuer annotations
DatacollectionInstalled from the chart referencePulled and unpacked first, to use the OpenShift values file of the chart; see Datacollection
LicensingWindows nodeweb.runtimeClass: <WINDOWS_RUNTIME_CLASS> for the Windows workloads, and ingress class openshift-default; see Licensing

Images

The internal registry of OpenShift keeps images per namespace. Copy the images of the RSH chart into <INTERNAL_NAMESPACE>. For layout B, give the external release permission to pull them:

oc policy add-role-to-group system:image-puller \ system:serviceaccounts:<EXTERNAL_NAMESPACE> -n <INTERNAL_NAMESPACE>

The external release then uses the same global.imageRegistry, <CLUSTER_REGISTRY>/<INTERNAL_NAMESPACE>. Alternatively, copy the images of the external release into <EXTERNAL_NAMESPACE> as well, and set its global.imageRegistry to <CLUSTER_REGISTRY>/<EXTERNAL_NAMESPACE>.

Hosts

The wildcard certificate of the router covers one label in front of <ROUTER_DOMAIN>, so every host consists of one label and the router domain. Give the IAM releases prefixes without a trailing dot, and a base domain that starts with the namespace of the release. For the internal release:

iam: global: domain: base: <INTERNAL_NAMESPACE>.<ROUTER_DOMAIN> prefix: iam: "iam-sc-" keycloak: "kc-sc-" authGateway: ingress: annotations: route.openshift.io/termination: edge

This gives iam-sc-<INTERNAL_NAMESPACE>.<ROUTER_DOMAIN> and kc-sc-<INTERNAL_NAMESPACE>.<ROUTER_DOMAIN>. The external release uses the base domain <EXTERNAL_NAMESPACE>.<ROUTER_DOMAIN> and other prefixes, such as iam-portal- and kc-portal-. The hosts of the modules follow the same rule. When the portal users reach the cluster through another router than the internal network does, for example a router shard that serves <EXTERNAL_NAMESPACE>, the hosts published to them use the domain of that router.

route.openshift.io/termination: edge makes the router terminate TLS for the route that OpenShift creates from the ingress. The IAM chart adds this annotation itself on OpenShift, so setting it in the values is optional.

Datacollection

The regulator chart contains a values file for OpenShift. Pull and unpack the chart, and apply that file before the values of the environment:

helm pull <DATACOLLECTION_CHART> --version <DATACOLLECTION_VERSION> --untar helm upgrade -i <DATACOLLECTION_RELEASE> ./regulator \ -n <INTERNAL_NAMESPACE> \ -f regulator/openshift-values.yaml \ -f <DATACOLLECTION_RELEASE>-values.yaml \ --set-file global.caCert=<CA_BUNDLE_FILE> \ --wait --wait-for-jobs --timeout 10m

openshift-values.yaml sets global.ingress.class to openshift-default and is applied first. A later global.ingress.class replaces it, so leave global.ingress unset in the environment values, or set the class to openshift-default.

The values of the environment differ from those on GKE in these points:

  • Every host is one label in front of <ROUTER_DOMAIN>, for example <INTERNAL_NAMESPACE>-frontend.<ROUTER_DOMAIN> for <HUB_HOST>, and the ingresses carry no cert-manager annotations.
  • The OIDC settings point at the OpenShift Keycloak hosts, for example https://kc-sc-<INTERNAL_NAMESPACE>.<ROUTER_DOMAIN>/realms/<INTERNAL_REALM> for global.hubExternalOidc.issuer.
  • global.storageClass names a StorageClass of the cluster.
  • platform-api.global.imagePullSecrets lists the pull Secret of the Platform API image, when its registry needs one.

Licensing

Licensing needs a Windows node. The Windows workloads select it through the RuntimeClass, and the ingress class is openshift-default:

web: runtimeClass: <WINDOWS_RUNTIME_CLASS> ingress: class: openshift-default

Licensing pulls its images from <IMAGE_REGISTRY> with <IMAGE_PULL_SECRET>. It is not part of the RSH images copied into the cluster registry.