3.3. 在受限环境中的 OpenShift 镜像上安装 Fuse
fis-image-streams.json 文件包含 OpenShift 上 Red Hat Fuse 的 imageStream 定义。但是,所有镜像流都引用 registry.redhat.io。您必须更改所有 registry.redhat.io 对 psi-internal-registry URL 的引用。
流程
在 OpenShift 镜像流 json 文件中下载 Red Hat Fuse。
curl -o fis-image-streams.json https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-sb2-7_11_1-00016-redhat-00002/fis-image-streams.json
curl -o fis-image-streams.json https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.0.fuse-sb2-7_11_1-00016-redhat-00002/fis-image-streams.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow 打开
fis-image-streams.json文件,找到registry.redhat.io的所有引用。例如:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将文件中的所有
registry.redhat.io引用替换为psi-internal-registry名称。例如:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 替换了所有引用后,运行以下命令在 OpenShift 镜像流上安装 Fuse:
oc create -f fis-image-streams.json -n {namespace}oc create -f fis-image-streams.json -n {namespace}Copy to Clipboard Copied! Toggle word wrap Toggle overflow