OpenShift Image Stream Definition: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * https://docs.openshift.com/container-platform/latest/rest_api/openshift_v1.html#v1-imagestream =Internal= * OpenShift Concepts * [...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | =External= | ||
* https://docs.openshift.com/container-platform/latest/rest_api/ | * https://docs.openshift.com/container-platform/latest/rest_api/apis-image.openshift.io/v1.ImageStream.html | ||
=Internal= | =Internal= | ||
* [[OpenShift_Concepts# | * [[OpenShift_Concepts#Image_Stream|OpenShift Concepts]] | ||
* [[OpenShift_Configuration#Definitions|OpenShift Definitions]] | * [[OpenShift_Configuration#Definitions|OpenShift Definitions]] | ||
=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''': <font color=teal>'''gogs:0.11.29'''</font> | |||
More details {{Internal|OpenShift Concepts#Image_Stream_Tag|Image Stream Tag}} | |||
=Examples= | =Examples= | ||
<syntaxhighlight lang='yaml'> | |||
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" | |||
</syntaxhighlight> |
Latest revision as of 22:37, 6 December 2017
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
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"