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

제15장. 볼륨

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

컨테이너 이미지 가 컨테이너로 인스턴스화될 때, 컨테이너는 CPU, 메모리 및 I/O 리소스에 대한 컨텍스트가 필요합니다. 포드(Pod)는 내부 컨테이너에 네트워크 및 파일 시스템 컨텍스트를 제공합니다. 네트워크는 포드의 가상 IP 주소로 제공되며, 파일 시스템은 호스팅 노드의 파일 시스템에 마운트됩니다.

컨테이너 내에서 실행되는 애플리케이션은 Pod 컨텍스트의 일부로 파일 시스템과 상호작용할 수 있습니다. 컨테이너의 임시 파일 시스템은 다른 컨테이너나 Pod와 격리되며 Pod 재시작 이후에는 유지되지 않습니다.

본질적으로 볼륨은 포드의 여러 컨테이너 간에 공유 가능한 디렉터리입니다. 그림 15-1은 컨테이너의 임시 파일 시스템과 볼륨 사용 간의 차이점을 보여줍니다.

Diagram comparing a single container using a temporary filesystem with a Pod setup where multiple containers share a volume for data storage.
그림 15-1. 임시 파일 시스템을 사용하는컨테이너와 볼륨 사용 비교

이 장에서는 다양한 볼륨 유형과 컨테이너에서 볼륨을 정의하고 마운트하는 과정을 배웁니다.

볼륨의 목적

간단히 말해, 쿠버네티스 볼륨 개념은 여기 에 설명된 목표를 달성하기 위한 것입니다:

데이터 지속성

에서 실행되는 애플리케이션은 임시 파일 시스템을 사용하여 파일을 읽고 쓸 수 있습니다. 컨테이너가 충돌하거나 클러스터/노드가 재시작되는 경우 kubelet이 컨테이너를 재시작합니다. 임시 파일 시스템에 기록된 모든 데이터는 손실되며 더 이상 복구할 수 없습니다. 컨테이너는 사실상 깨끗한 상태로 다시 시작됩니다. 볼륨은 컨테이너 재시작 후에도 유지되는 영구 저장소를 제공하여 중요한 데이터가 손실되지 않도록 보장합니다.

데이터 공유

컨테이너에 볼륨을 마운트하려는 다양한 사용 사례 가 있습니다. 가장 대표적인 사례 중 하나는 메인 애플리케이션 컨테이너와 사이드카 간 데이터 교환을 위해 볼륨을 사용하는 다중 컨테이너 Pod로, 이를 통해 파일 공유 및 파일 시스템을 통한 통신이 가능해집니다.

컨테이너와 스토리지 분리

볼륨은 애플리케이션 에서 스토리지 세부 사항 을 추상화하여 컨테이너 이미지를 수정하지 않고도 스토리지 백엔드를 변경할 수 있게 합니다.

볼륨 유형

모든 볼륨은 유형 을 정의해야 합니다. 유형은 볼륨을 지원하는 매체와 런타임 동작을 결정합니다. 쿠버네티스 문서에는 다양한 볼륨 유형이 나열되어 있습니다. azureDisk, awsElasticBlockStore, gcePersistentDisk와같은 일부 유형은 특정 클라우드 공급자에서 쿠버네티스 클러스터를 실행할 때만 ...

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