Skip to Content
공인 쿠버네티스 관리자(CKA) 학습 가이드 (Korean Edition), 2nd Edition
book

공인 쿠버네티스 관리자(CKA) 학습 가이드 (Korean Edition), 2nd Edition

by Benjamin Muschko
January 2026
Beginner to intermediate
392 pages
5h 51m
Korean
O'Reilly Media, Inc.
Content preview from 공인 쿠버네티스 관리자(CKA) 학습 가이드 (Korean Edition), 2nd Edition

제11장. 배포(Deployments) 와 복제집합(ReplicaSets)

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

쿠버네티스의 주요 강점은 애플리케이션을 원활하게 확장하고 복제를 손쉽게 관리할 수 있는 능력에 있습니다. 이러한 기능을 가능하게 하기 위해 쿠버네티스는 두 가지 기본 요소인 배포 와 복제 세트를 제공합니다.

이 장에서는 동일 Pod 그룹을 관리하고 확장하기 위해 백그라운드에서 ReplicaSet을 활용하는 Deployment 생성 방법을 배웁니다. Deployment는 애플리케이션 업데이트를 쉽게 배포하고 필요한 경우 이전 버전으로 롤백할 수 있게 해주며, 이 모든 과정을 최소한의 다운타임과 최대의 제어력으로 수행합니다.

Deployment 작업

컨테이너에서 애플리케이션을 실행하는 기본 단위는 Pod입니다. 단일 Pod 인스턴스로 애플리케이션을 운영하는 방식에는 한계가 있습니다. 애플리케이션을 대상으로 하는 모든 트래픽이 이 Pod로 집중되기 때문에 단일 장애 지점을 형성합니다. 특히 수요 증가로 부하가 증가할 때(예: 전자상거래 애플리케이션의 쇼핑 성수기나 인증 제공자와 같은 중앙 집중식 마이크로서비스 기능과 통신하는 마이크로서비스 수가 증가할 때) 이 문제는 더욱 심각해집니다.

포드에서 애플리케이션을 실행할 때 또 다른 중요한 측면은 장애 허용성입니다. 스케줄러 클러스터 구성 요소는 노드 장애 발생 시 포드를 재스케줄링하지 않으므로, 이는 최종 사용자에게 시스템 중단으로 이어질 수 있습니다. 이 장에서는 애플리케이션 확장성과 장애 허용성을 지원하는 쿠버네티스 메커니즘을 살펴보겠습니다.

ReplicaSet은 애플리케이션을 실행하는 Pod의 복제본( replica)이라 불리는 동일 인스턴스 다수를 제어하는 쿠버네티스 API 리소스입니다. 필요에 따라 복제본 수를 확장하거나 축소할 수 있는 기능을 갖추고 있습니다.

Deployment는 ReplicaSet의 기능을 추상화하여 내부적으로 관리합니다. 실제로 이는 ReplicaSet 객체를 직접 생성, 수정 또는 삭제할 필요가 없음을 의미합니다. Deployment는 애플리케이션 버전의 이력을 유지하며, 차단되거나 잠재적으로 비용이 많이 드는 프로덕션 문제를 해결하기 위해 이전 버전으로 롤백하기 위해 ReplicaSet에 위임할 수 있습니다. 또한 복제본 수를 확장하는 기능을 제공합니다.

그림 11-1은 배포(Deployment), 복제 세트(ReplicaSet), 그리고 이를 통해 제어되는 복제본 간의 관계를 보여줍니다.

그림 11-1. 배포(Deployment)와 복제 세트(ReplicaSet) 간의관계

다음 섹션에서는 확장 및 롤아웃 기능을 포함한 배포 ...

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

Cilium: 가동 및 실행 (Korean Edition)

Cilium: 가동 및 실행 (Korean Edition)

Nico Vibert, Filip Nikolic, James Laverack

Publisher Resources

ISBN: 0642572314699