Openshift E04 Image Stream是个啥

Image Stream(中文名 镜像流) 是一组镜像的集合, OpenShift默认情况下提供了几个Image Streams,包括许多流行的runtime和frameworks。

Image Streams tag(中文名 镜像流标签对象)是指向Image Streams中的image的别名。通常缩写为istag。它包含一个image历史记录,表示为tag曾经指向的所有images的堆栈。

(??? image stream就是类似repo的概念)

一个镜像流标签对象(ImageStreamTag)指向一个镜像,可以是本地镜像或者远程镜像。如下的名为“python”的镜像流包含两个标签,标签34指向Python v3.4镜像,标签35指向Pythonv3.5镜像。

导入Image Stream

1
2
3
4
5
# Method 1
oc create -f xxx.yaml -n openshift

# Method 2
oc import-image

查看Image Stream
oc get is -n openshift

查看Image Stream Tag

oc get istag

例子

1
2
3
4
5
docker pull ericnie2017/s2i-tomcat:latest

oc import-image ericnie2017/s2i-tomcat -n openshift --confirm --insecure

oc get is -n openshift | grep tomcat

Service Catalog 中看到的不能与 oc get is 的结果一一对应,只能部分对应。

知乎-Service Catalog及OpenShift的历史

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~