This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.13.9. 이미지 스트림 정의 작성
전체 이미지 스트림에 대한 이미지 스트림 정의를 작성하여 이미지 스트림을 정의할 수 있습니다. 이를 통해 oc
명령을 실행하지 않고 다른 클러스터에 정의를 배포할 수 있습니다.
이미지 스트림 정의는 이미지 스트림과 가져올 특정 태그에 대한 정보를 지정합니다.
이미지 스트림 오브젝트 정의
apiVersion: v1 kind: ImageStream metadata: name: ruby annotations: openshift.io/display-name: Ruby spec: tags: - name: '2.0' annotations: openshift.io/display-name: Ruby 2.0 description: >- Build and run Ruby 2.0 applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/sclorg/s2i-ruby-container/tree/master/2.0/README.md. iconClass: icon-ruby sampleRepo: 'https://github.com/sclorg/ruby-ex.git' tags: 'builder,ruby' supports: 'ruby' version: '2.0' from: kind: DockerImage name: 'docker.io/openshift/ruby-20-centos7:latest'
apiVersion: v1
kind: ImageStream
metadata:
name: ruby
annotations:
openshift.io/display-name: Ruby
spec:
tags:
- name: '2.0'
annotations:
openshift.io/display-name: Ruby 2.0
description: >-
Build and run Ruby 2.0 applications on CentOS 7. For more information
about using this builder image, including OpenShift considerations,
see
https://github.com/sclorg/s2i-ruby-container/tree/master/2.0/README.md.
iconClass: icon-ruby
sampleRepo: 'https://github.com/sclorg/ruby-ex.git'
tags: 'builder,ruby'
supports: 'ruby'
version: '2.0'
from:
kind: DockerImage
name: 'docker.io/openshift/ruby-20-centos7:latest'
- 1
- 전체 이미지 스트림에 대한 간단하고 사용자에게 친숙한 이름입니다.
- 2
- 이 태그를 버전이라고 합니다. 태그는 드롭다운 메뉴에 나타납니다.
- 3
- 이미지 스트림 내에서 이 태그의 사용자에게 친숙한 이름입니다. 이 정보는 간략하고 적절한 경우 버전 정보를 포함해야 합니다.
- 4
- 태그에 대한 설명으로, 사용자가 이미지를 제공하는 기능을 이해하기에 충분한 세부 정보가 포함되어 있습니다. 여기에는 추가 지침에 대한 링크가 포함될 수 있습니다. 설명을 몇 문장으로 제한하십시오.
- 5
- 이 태그에 표시할 아이콘입니다. 가능한 경우 기존 로고 아이콘 에서 선택합니다. FontAwesome 및 Patternfly 의 아이콘도 사용할 수 있습니다. 또는 이미지 스트림을 사용하는 OpenShift Container Platform 클러스터에 추가할 수 있는 CSS 사용자 정의를 통해 아이콘을 제공합니다. 존재하는 아이콘 클래스를 지정하거나 일반 아이콘으로 대체되지 않도록 해야 합니다.
- 6
- 이 빌더 이미지 태그와 함께 작동하고 샘플 실행 중인 애플리케이션을 생성하는 소스 리포지토리의 URL입니다.
- 7
- 이미지 스트림 태그가 연결된 카테고리입니다. 카탈로그에 표시하려면 builder 태그가 필요합니다. 제공된 카탈로그 카테고리 중 하나와 연결하는 태그를 추가합니다. 콘솔 상수 파일에 있는
CATALOG_CATEGORIES
의id
및categoryAliases
를 참조합니다. 카테고리는 전체 클러스터에 맞게 사용자 지정할 수도 있습니다. - 8
- 이 이미지는 지원하는 언어입니다. 이 값은
oc new-app
호출 중에 잠재적인 빌더 이미지를 제공된 소스 리포지토리에 일치시키는 데 사용됩니다. - 9
- 이 태그의 버전 정보입니다.
- 10
- 이 이미지 스트림 태그가 참조하는 오브젝트의 유형입니다. 유효한 값은
DockerImage
,ImageStreamTag
,ImageStreamImage
입니다. - 11
- 이 이미지 스트림 태그가 가져오는 오브젝트입니다.
ImageStream
에 정의할 수 있는 필드에 대한 자세한 내용은 Imagestream API 및 ImagestreamTag API 를 참조하십시오.