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

제5장. etcd백업 및 복원

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

쿠버네티스 는 클러스터의 선언된 상태와 관측된 상태를 분산 etcd 키-값 저장소에 저장합니다. 데이터 손상 시 데이터를 복원할 수 있도록 백업 계획을 마련하는 것이 중요합니다. 가능한 한 많은 과거 데이터를 잃지 않도록 데이터를 주기적으로 짧은 시간 간격으로 백업해야 합니다.

etcd 관리 유틸리티 사용

백업 프로세스 는 etcd 데이터 를 스냅샷 파일에 저장합니다. 이 스냅샷 파일은 언제든지 etcd 데이터를 복원하는 데 사용할 수 있습니다. 민감한 정보를 보호하기 위해 스냅샷 파일을 암호화할 수 있습니다( ). etcdctl 도구를 사용하여 백업 스냅샷 파일( )을 생성합니다. 스냅샷 파일에서 etcd 데이터를 복원하려면etcdutl 도구( )를 사용해야 합니다.

관리자로서 두 작업 모두에 필요한 도구 사용법을 숙지해야 합니다. 제어 평면 노드에 etcdctl 및 etcdutl이 아직 설치되어 있지 않다면 설치해야 할 수 있습니다. 설치 방법은 etcd GitHub 저장소에서 확인할 수 있습니다. 그림 5-1은 etcd 백업 및 복원 과정을 시각화한 것입니다.

Diagram illustrating the workflow for backing up and restoring etcd, showcasing steps before and after a disaster occurs.
그림 5-1. etcd 백업 및 복원프로세스

클러스터 토폴로지에 따라 클러스터는 하나 또는 여러 개의 etcd 인스턴스로 구성될 수 있습니다. 설정 방법에 대한 자세한 내용은 "고가용성 클러스터 관리" 를 참조하십시오. 다음 섹션에서는 단일 노드 etcd 클러스터 설정 을 설명합니다. 다중 노드 etcd 클러스터의 백업 및 복원 프로세스에 대한 추가 지침은 공식 쿠버네티스 문서에서 확인할 수 있습니다.

etcd 백업

ssh 명령을 사용하여 etcd를 호스팅하는 머신에 대화형 셸 을 엽니다. 다음 명령은 Ubuntu 24.04 LTS를 실행하는 kube-control-plane이라는 제어 평면 노드를 대상으로 합니다:

$ ssh kube-control-plane
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-51-generic x86_64)
...

설치된 etcdctl 버전을 확인하여 도구가 설치되었는지 검증합니다. 이 노드에서는 버전이 3.5.15입니다:

$ etcdctl version
etcdctl version: 3.5.15
API version: 3.5

etcd는 kube-system 네임스페이스에 Pod로 배포됩니다. Pod를 설명하여 버전을 확인하세요. 다음 출력에서 버전이 3.5.15-0임을 확인할 수 있습니다:

$ kubectl get pods -n kube-system ...
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