第3章 制限された環境での Fuse on Openshift のインストール

制限のない環境で Fuse on OpenShift をインストールするには、イメージストリームおよびテンプレートを registry.redhat.io からプルします。インターネットアクセスがないか、これに制限がある実稼働環境では、それが不可能です。ここでは、制限される環境で Fuse on OpenShift をインストールする方法について説明します。

前提条件

  • 制限された環境で実行できるように OpenShift サーバーをインストールし、設定している。

3.1. 内部 docker レジストリーの設定

ここでは、イメージのプッシュまたはプルに使用できる、内部 docker レジストリーを設定する方法を説明します。イメージをプルまたはプッシュできる内部 docker レジストリーを設定する必要があります。

手順

  1. 内部 ROOT CA をインストールします。

    cd /etc/pki/ca-trust/source/anchors
    sudo curl -O https://password.corp.redhat.com/RH-IT-Root-CA.crt
    sudo update-ca-trust extract
    sudo update-ca-trust update

    この証明書により、システムがレジストリーに対して自己認証できるようになります。

  2. registry.redhat.io にログインします。

    docker login -u USERNAME -p PASSWORD registry.redhat.io
  3. registry.redhat.io から Fuse on OpenShift イメージをプルします。

    docker pull registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.9
    docker pull registry.redhat.io/fuse7/fuse-java-openshift-jdk11-rhel8:1.9
    docker pull registry.redhat.io/fuse7/fuse-karaf-openshift-rhel8:1.9
    docker pull registry.redhat.io/fuse7/fuse-console-rhel8:1.9
    docker pull registry.redhat.io/fuse7/fuse-apicurito-rhel8:1.9
    docker pull registry.redhat.io/fuse7/fuse-apicurito-generator-rhel8:1.9
  4. プルしたイメージストリームにタグを付けます。

    docker tag registry.redhat.io/fuse7/fuse-java-openshift-rhel8:1.9 docker-registry.upshift.redhat.com/fuse7/fuse-java-openshift-rhel8:1.9
    docker tag registry.redhat.io/fuse7/fuse-java-openshift-jdk11-rhel8:1.9 docker-registry.upshift.redhat.com/fuse7/fuse-java-openshift-jdk11-rhel8:1.9
    docker tag registry.redhat.io/fuse7/fuse-karaf-openshift-rhel8:1.9 docker-registry.upshift.redhat.com/fuse-karaf-openshift-rhel8:1.9
    docker tag registry.redhat.io/fuse7/fuse-console-rhel8:1.9 docker-registry.upshift.redhat.com/fuse7-fuse-console-rhel8:1.9
    docker tag registry.redhat.io/fuse7/fuse-apicurito-rhel8:1.9 docker-registry.upshift.redhat.com/fuse7-fuse-apicurito-rhel8:1.9
    docker tag registry.redhat.io/fuse7/fuse-apicurito-generator-rhel8:1.9 docker-registry.upshift.redhat.com/fuse7-fuse-apicurito-generator-rhel8:1.9
  5. タグを付けたイメージストリームを内部 docker レジストリーにプッシュします。

    docker push docker-registry.upshift.redhat.com/fuse7/fuse-java-openshift-rhel8:1.9
    docker push docker-registry.upshift.redhat.com/fuse7/fuse-java-openshift-jdk11-rhel8:1.9
    docker push docker-registry.upshift.redhat.com/fuse-karaf-openshift-rhel8:1.9
    docker push docker-registry.upshift.redhat.com/fuse7-fuse-console-rhel8:1.9
    docker push docker-registry.upshift.redhat.com/fuse7-fuse-apicurito-rhel8:1.9
    docker push docker-registry.upshift.redhat.com/fuse7-fuse-apicurito-generator-rhel8:1.9