OpenShift Image Stream Definition

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

An image stream can be referred from other OpenShift objects, such as a deployment configuration. An image stream tag is referred by name, which is <image-stream-name>:<tag-name>. For example, the tag "0.11.29" exposed by the "gogs" image stream defined below, is referred to by a deployment configuration as:

...
triggers:
- type: ImageChange
   imageChangeParams:
     ...
     from:
       kind: ImageStreamTag
       name: gogs:0.11.29

More details

Image Stream Tag

Examples

apiVersion: v1
kind: ImageStream
metadata:
  name: gogs
  labels:
    app: gogs
spec:
  tags:
  - annotations:
      description: The Gogs git server docker image
      tags: gogs,go,golang
    from:
      kind: DockerImage
      name: openshiftdemos/gogs:0.11.29
    importPolicy: {}
    name: "0.11.29"