In this video

Today we continue with Veer Muchandi's series of 4 videos that will guide you through every detail you need to know to start building and running your own Microservices.

In the previous video we talked about how a developer creates microservices and how OpenShift builds the docker images for the microservices and deploys them. This video addresses how to package these microservices as units that can be deployed across environments.

OpenShift templates are used as a packaging format to group an entire microservice (including all tiers) together. Once packaged, we will see how we can use it to deploy each microservice a unit into a project.

Notes

1) Tagging the images in the development project

oc describe is

Copy hashtag (only the part that starts after project name.)

oc tag msdemo/:promote

This blog explains how to promote applications across environments https://blog.openshift.com/promoting-applications-across-environments/

2) Creating templates for each of the three microservices

oc export dc,svc,route -l microservice=userregsvc --as-template=userregsvc-microservice -o json > userregsvc-microservice.json
oc export dc,svc -l microservice=emailsvc --as-template=emailsvc-microservice -o json > emailsvc-microservice.json
oc export dc,svc,route -l microservice=userregfrontend --as-template=userreg-microservice -o json > userreg-microservice.json

Once created edit each microservice template to remove the host entries in the route and change the image trigger to use “promote” label instead of “latest” label. Also add a namespace label to pick up the image from your development project’s image stream.

3) Provide image puller access to the Production project and change to the production project

oc policy add-role-to-group system:image-puller system:serviceaccounts:msqa -n msdemo
oc project msprod

4) Deploy microservices in your production project

oc process -f emailsvc-microservice.json | oc create -f -
oc process -f userregsvc-microservice.json | oc create -f -
oc process -f userreg-microservice.json | oc create -f -

The Authors

This series of videos was created by Veer Muchandi in collaboration with Chakradhar Jonagam.

Chakradhar Jonagam works as a Solution Architect at Red Hat.
He helps companies architect their PaaS infrastructure, Prior to this he was a full stack developer with some infosec background. In his free time he loves to take long hikes.

You can find many of Veer's blog posts here. He has created a multitude of demos that cover interesting aspects of the OpenShift Platform.

You can also follow Veer's twitter account: @VeerMuchandi

Other Videos

View the Entire OpenShift 3 Demo Playlist

For the latest information on OpenShift 3, please visit enterprise.openshift.com.


저자 소개

UI_Icon-Red_Hat-Close-A-Black-RGB

채널별 검색

automation icon

오토메이션

기술, 팀, 인프라를 위한 IT 자동화 최신 동향

AI icon

인공지능

고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트

open hybrid cloud icon

오픈 하이브리드 클라우드

하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요

security icon

보안

환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보

edge icon

엣지 컴퓨팅

엣지에서의 운영을 단순화하는 플랫폼 업데이트

Infrastructure icon

인프라

세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보

application development icon

애플리케이션

복잡한 애플리케이션에 대한 솔루션 더 보기

Virtualization icon

가상화

온프레미스와 클라우드 환경에서 워크로드를 유연하게 운영하기 위한 엔터프라이즈 가상화의 미래