In this video
In this new demo video, Veer Muchandi explains how to promote your application across different environments. If you want to follow all the steps in the video you can also check the notes below.
Additional Notes
The following notes may help you to follow the different steps explained in the video.
For this demo, we assume that we have three projects in three different environments: Development, QA and Production. As you may expect, we also have different roles, like the developer and the tester, that have different types of access to each environment.
Create a new Project
Here are the commands used to create a new project with name “development” and providing “edit" access to developer and “view” access to the tester.
oc new-project development —display-name="Development Project"
oc policy add-role-to-user edit dev1
oc policy add-role-to-user view test1
Create a QA project
Commands needed to create a QA project and provide “edit’ access to the tester.
oc new-project testing —display-name="QA Project"
oc policy add-role-to-user edit test1
Enable the test project to pull development images
Assigning the system:image-puller role to the service account “testing” which is the default service account for the testing project on the development project. By doing this, we are enabling the testing project to be able to pull images from the development project.
oc policy add-role-to-group system:image-puller system:serviceaccounts:testing -n development
Create an application in development
Switch over as developer and create an application in the development project.
oc login -u dev1
oc project development
oc new-app --template=eap6-basic-sti -p APPLICATION_NAME=myapp,APPLICATION_HOSTNAME=myapp-dev.apps.demov3.osecloud.com,EAP_RELEASE=6.4,GIT_URI=https://github.com/VeerMuchandi/kitchensink.git,\
GIT_REF=,GIT_CONTEXT_DIR= -l name=myapp
Identifying the image id
Finding the image stream name and identifying the full image id.
oc get is
oc describe is
The "describe is" command will show the full image id. You can copy that into clipboard. Use that to tag the specific image to promote.
oc tag development/myapp:promote
Deploy an application in the test project
Login as tester and deploy an application in the “testing” project.
oc login -u test1
oc project testing
oc new-app development/myapp:promote
Note the service name and create a route.
oc get svc
oc expose svc
Other Videos
View the Entire OpenShift 3 Demo Playlist
For the latest information on OpenShift 3, please visit enterprise.openshift.com.
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.