Skip to Content
OpenShift 운영
book

OpenShift 운영

by Rick Rackow, Manuel Dewald
May 2025
Beginner to intermediate
266 pages
4h 10m
Korean
O'Reilly Media, Inc.
Content preview from OpenShift 운영

3장. OpenShift에서 워크로드 실행

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

이 시점에서 애플리케이션을 배포하는 데 사용할 수 있는 OpenShift 클러스터가 이미 있을 것입니다. Cloud 공급자가 프로비저닝한 VM에서 실행되는 클러스터일 수도 있고 OpenShift Local을 사용하는 노트북의 작은 클러스터일 수도 있습니다. oc 명령줄 유틸리티로 콘솔에 액세스하고 클러스터에 로그인할 수 있습니다. 하지만 팀에서 구축한 애플리케이션을 클러스터에 어떻게 배포할 수 있을까요?

OpenShift 클러스터에서 실행되는 대부분의 애플리케이션은 웹 기반입니다. 이러한 애플리케이션은 일반적으로 사용자가 웹 브라우저를 통해 액세스하거나 사용자 소유의 기기에 설치된 앱의 백엔드로 액세스합니다. 이 장에서는 세 가지 서비스로 구성된 배열된 배포를 사용하여 애플리케이션 코드를 OpenShift 클러스터에 배포하는 연습을 할 수 있습니다. 소규모 OpenShift 로컬 클러스터는 이 애플리케이션을 배포하기에 충분한 용량을 제공합니다. 그러나 이 장의 일부 내용을 따르려면 외부에서 액세스할 수 있는 클러스터가 있어야 합니다.

이 장에서 사용된 애플리케이션은 가상의 게임 퍼블리셔의 아케이드 게임 플랫폼으로, 다음과 같은 구성 요소로 이루어져 있습니다:

  • 게임, 각각 자체 서비스에서 실행됩니다(현재는 하나의 게임만 있습니다).

  • 모든 게임과 플레이어의 점수를 볼 수 있는 최고 점수 서비스입니다.

  • 고객이 게임을 검색하고, 시작하고, 구매할 수 있는 진입점으로 사용되는 플랫폼 서비스입니다.

그림 3-1은 관련 구성 요소와 상호 작용 방식에 대한 개요를 보여줍니다.

Components of the arcade platform example application
그림 3-1. 아케이드 플랫폼 예제 애플리케이션의 구성 요소

이 코드는 회사의 각 개발자가 필요할 때 모든 서비스에 기여할 수 있는 GitHub 리포지토리에 정리되어 있습니다. 이 작은 샘플 애플리케이션의 세 가지 서비스는 모두 동일한 Git 리포지토리에 있습니다. 따라서 하나의 리포지토리만 보고 여러 개의 다른 리포지토리를 복제할 필요가 없습니다. 이 예제의 코드는 다음 섹션에서 모두 사용됩니다. 이 예제 코드를 따라하고 싶다면 이 명령을 사용하여 최신 버전을 확인하세요:

$ git clone https://github.com/OperatingOpenShift/s3e

코드 배포

OpenShift 클러스터에서 실행하려는 모든 서비스를 동일한 네임스페이스에 포함하려면 먼저 새 프로젝트를 만드세요:

$ oc new-project arcade

이 명령은 컨텍스트를 새로 만든 arcade 프로젝트로 자동 전환합니다. 모든 명령에서 이 프로젝트를 언급할 필요 없이 모든 추가 명령이 자동으로 이 프로젝트를 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

프로덕션 Kubernetes

프로덕션 Kubernetes

Josh Rosso, Rich Lander, Alex Brand, John Harris
Docker: Up & Running, 제3판

Docker: Up & Running, 제3판

Sean P. Kane, Karl Matthias
Docker Containers

Docker Containers

Christopher Negus
Apache Hudi: The Definitive Guide

Apache Hudi: The Definitive Guide

Shiyan Xu, Prashant Wason, Bhavani Sudha Saktheeswaran, Rebecca Bilbro

Publisher Resources

ISBN: 9798341655492