This documentation is for a release that is no longer maintained
See documentation for the latest supported version.Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Installing Red Hat Developer Hub in an air-gapped environment with the Helm Chart
An air-gapped environment, also known as an air-gapped network or isolated network, ensures security by physically segregating the system or network. This isolation is established to prevent unauthorized access, data transfer, or communication between the air-gapped system and external sources.
You can install Red Hat Developer Hub in an air-gapped environment to ensure security and meet specific regulatory requirements.
To install Developer Hub in an air-gapped environment, you must have access to the registry.redhat.io and the registry for the air-gapped environment.
Prerequisites
- You have installed an Red Hat OpenShift Container Platform 4.13 or later.
-
You have access to the
registry.redhat.io. - You have access to the Red Hat OpenShift Container Platform image registry of your cluster. For more information about exposing the image registry, see the Red Hat OpenShift Container Platform documentation about Exposing the registry.
-
You have installed the OpenShift CLI (
oc) on your workstation. -
You have installed the
podmancommand line tools on your workstation. - You you have an account in Red Hat Developer portal.
Procedure
Log in to your OpenShift Container Platform account using the OpenShift CLI (
oc), by running the following command:oc login -u <user> -p <password> https://api.<hostname>:6443
oc login -u <user> -p <password> https://api.<hostname>:6443Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to the OpenShift Container Platform image registry using the
podmancommand line tool, by running the following command:podman login -u kubeadmin -p $(oc whoami -t) default-route-openshift-image-registry.<hostname>
podman login -u kubeadmin -p $(oc whoami -t) default-route-openshift-image-registry.<hostname>Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou can run the following commands to get the full host name of the OpenShift Container Platform image registry, and then use the host name in a command to log in:
REGISTRY_HOST=$(oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}')REGISTRY_HOST=$(oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}')Copy to Clipboard Copied! Toggle word wrap Toggle overflow podman login -u kubeadmin -p $(oc whoami -t) $REGISTRY_HOST
podman login -u kubeadmin -p $(oc whoami -t) $REGISTRY_HOSTCopy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to the
registry.redhat.ioinpodmanby running the following command:podman login registry.redhat.io
podman login registry.redhat.ioCopy to Clipboard Copied! Toggle word wrap Toggle overflow For more information about registry authentication, see Red Hat Container Registry Authentication.
Pull Developer Hub and PostgreSQL images from Red Hat Image registry to your workstation, by running the following commands:
podman pull registry.redhat.io/rhdh/rhdh-hub-rhel9:1.2.6
podman pull registry.redhat.io/rhdh/rhdh-hub-rhel9:1.2.6Copy to Clipboard Copied! Toggle word wrap Toggle overflow podman pull registry.redhat.io/rhel9/postgresql-15:latest
podman pull registry.redhat.io/rhel9/postgresql-15:latestCopy to Clipboard Copied! Toggle word wrap Toggle overflow Push both images to the internal OpenShift Container Platform image registry by running the following commands:
podman push --remove-signatures registry.redhat.io/rhdh/rhdh-hub-rhel9:1.2.6 default-route-openshift-image-registry.<hostname>/<project_name>/rhdh-hub-rhel9:1.2.6
podman push --remove-signatures registry.redhat.io/rhdh/rhdh-hub-rhel9:1.2.6 default-route-openshift-image-registry.<hostname>/<project_name>/rhdh-hub-rhel9:1.2.6Copy to Clipboard Copied! Toggle word wrap Toggle overflow podman push --remove-signatures registry.redhat.io/rhel9/postgresql-15:latest default-route-openshift-image-registry.<hostname>/<project_name>/postgresql-15:latest
podman push --remove-signatures registry.redhat.io/rhel9/postgresql-15:latest default-route-openshift-image-registry.<hostname>/<project_name>/postgresql-15:latestCopy to Clipboard Copied! Toggle word wrap Toggle overflow For more information about pushing images directly to the OpenShift Container Platform image registry, see How do I push an Image directly into the OpenShift 4 registry.
ImportantIf an x509 error occurs, verify that you have installed the CA certificate used for OpenShift Container Platform routes on your system.
Use the following command to verify that both images are present in the internal OpenShift Container Platform registry:
oc get imagestream -n <project_name>
oc get imagestream -n <project_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable local image lookup for both images by running the following commands:
oc set image-lookup postgresql-15
oc set image-lookup postgresql-15Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc set image-lookup rhdh-hub-rhel9
oc set image-lookup rhdh-hub-rhel9Copy to Clipboard Copied! Toggle word wrap Toggle overflow Go to YAML view and update the
imagesection forbackstageandpostgresqlusing the following values:Example values for Developer Hub image
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example values for PostgreSQL image
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the Red Hat Developer Hub using Helm chart.