标签:pre default 查看 https mat rhel7 nal def 不可用
离线安装完成后,一般情况下只装了个基础环境,catalog镜像没有导入,本文主要侧重在jenkins的一些环境设置和演示。
首先follow下面链接下载镜像
https://docs.openshift.com/container-platform/3.11/install/disconnected_install.html
我们这里下载的主要是
$ docker pull registry.redhat.io/openshift3/jenkins-2-rhel7:<tag>
$ docker pull registry.redhat.io/openshift3/jenkins-slave-maven-rhel7:<tag>
$ docker pull registry.redhat.io/openshift3/jenkins-slave-nodejs-rhel7:<tag>
导入到本地镜像仓库
[root@node2 images]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE registry.example.com/openshift3/jenkins-2-rhel7 latest 0f36706e2c53 10 months ago 1.13 GB registry.example.com/openshift3/jenkins-slave-maven-rhel7 latest 5ce887d9bf31 11 months ago 1.02 GB registry.example.com/openshift3/jenkins-slave-nodejs-rhel7 latest a32c719893f2 11 months ago 971 MB
但现在进入查看jenkins image stream, 发现仍然是不可用状态。
[root@master ~]# oc describe is jenkins -n openshift Name: jenkins Namespace: openshift Created: 5 months ago Labels: <none> Annotations: openshift.io/display-name=Jenkins openshift.io/image.dockerRepositoryCheck=2019-08-30T14:32:54Z Docker Pull Spec: docker-registry.default.svc:5000/openshift/jenkins Image Lookup: local=false Unique Images: 1 Tags: 3 1 tagged from registry.example.com/openshift3/jenkins-1-rhel7:latest prefer registry pullthrough when referencing this tag Provides a Jenkins 1.X server on RHEL 7. For more information about using this container image, including OpenShift considerations, see https://github.com/openshift/jenkins/blob/master/README.md. Tags: hidden, jenkins ! error: Import failed (InternalError): Internal error occurred: Get https://registry.example.com/v2/: dial tcp 192.168.56.105:443: connect: connection refused 5 months ago
执行导入
oc import-image jenkins --from=registry.example.com/openshift3/jenkins-2-rhel7:latest --confirm --insecure=true
确认导入成功后,在项目中选择Jenkins(Ephemeral),然后等待创建完成。
标签:pre default 查看 https mat rhel7 nal def 不可用
原文地址:https://www.cnblogs.com/ericnie/p/11437529.html