0

第一时间部署到 OpenShift(实际上是我的 Windows 10 Pro 中的 minishift)。我成功部署的任何示例应用程序都会导致:

在此处输入图像描述

从 Web 控制台我看到一条奇怪的消息“Build #1 is pending”虽然我看到它是从 PowerShell 成功完成的

在此处输入图像描述

我发现有人修复了更改为 0.0.0.0 的类似问题(在此处输入链接描述),但我试了一下,这不是我的解决方案。

这是完整的日志以及我的部署方式

PS C:\to_learn\docker-compose-to-minishift\first-try>  oc new-app https://github.com/openshift/nodejs-ex                warning: Cannot check if git requires authentication.
--> Found image 93de123 (16 months old) in image stream "openshift/nodejs" under tag "10" for "nodejs"

    Node.js 10.12.0
    ---------------
    Node.js  available as docker container is a base platform for building and running various Node.js  applications and frameworks. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

    Tags: builder, nodejs, nodejs-10.12.0

    * The source repository appears to match: nodejs
    * A source build using source code from https://github.com/openshift/nodejs-ex will be created
      * The resulting image will be pushed to image stream tag "nodejs-ex:latest"
      * Use 'start-build' to trigger a new build
      * WARNING: this source repository may require credentials.
                 Create a secret with your git credentials and use 'set build-secret' to assign it to the build config.
    * This image will be deployed in deployment config "nodejs-ex"
    * Port 8080/tcp will be load balanced by service "nodejs-ex"
      * Other containers can access this service through the hostname "nodejs-ex"

--> Creating resources ...
    imagestream.image.openshift.io "nodejs-ex" created
    buildconfig.build.openshift.io "nodejs-ex" created
    deploymentconfig.apps.openshift.io "nodejs-ex" created
    service "nodejs-ex" created
--> Success
    Build scheduled, use 'oc logs -f bc/nodejs-ex' to track its progress.
    Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:
     'oc expose svc/nodejs-ex'
    Run 'oc status' to view your app.
PS C:\to_learn\docker-compose-to-minishift\first-try>  oc get bc/nodejs-ex -o yaml                                      apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
  annotations:
    openshift.io/generated-by: OpenShiftNewApp
  creationTimestamp: 2020-02-20T20:10:38Z
  labels:
    app: nodejs-ex
  name: nodejs-ex
  namespace: samplepipeline
  resourceVersion: "1123211"
  selfLink: /apis/build.openshift.io/v1/namespaces/samplepipeline/buildconfigs/nodejs-ex
  uid: 1003675e-541d-11ea-9577-080027aefe4e
spec:
  failedBuildsHistoryLimit: 5
  nodeSelector: null
  output:
    to:
      kind: ImageStreamTag
      name: nodejs-ex:latest
  postCommit: {}
  resources: {}
  runPolicy: Serial
  source:
    git:
      uri: https://github.com/openshift/nodejs-ex
    type: Git
  strategy:
    sourceStrategy:
      from:
        kind: ImageStreamTag
        name: nodejs:10
        namespace: openshift
    type: Source
  successfulBuildsHistoryLimit: 5
  triggers:
  - github:
      secret: c3FoC0RRfTy_76WEOTNg
    type: GitHub
  - generic:
      secret: vlKqJQ3ZBxfP4HWce_Oz
    type: Generic
  - type: ConfigChange
  - imageChange:
      lastTriggeredImageID: 172.30.1.1:5000/openshift/nodejs@sha256:3cc041334eef8d5853078a0190e46a2998a70ad98320db512968f1de0561705e
    type: ImageChange
status:
  lastVersion: 1
4

0 回答 0