Skip to Content
Cilium: 가동 및 실행 (Korean Edition)
book

Cilium: 가동 및 실행 (Korean Edition)

by Nico Vibert, Filip Nikolic, James Laverack
February 2026
Beginner to intermediate
372 pages
6h 12m
Korean
O'Reilly Media, Inc.
Content preview from Cilium: 가동 및 실행 (Korean Edition)

제10장. 클러스터 접근

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

외부 세계에서 쿠버네티스 클러스터 내 애플리케이션에 접근하는 것은 흔한 요구사항입니다. 사용자의 노트북, 업스트림 라우터, 다른 애플리케이션 등 쿠버네티스 외부 클라이언트는 클러스터 내 서비스에 안정적으로 접근할 수 있는 방법이 필요합니다.

7장에서는 클러스터에 도달한 트래픽을 부하 분산하고 조작하기 위한 메커니즘으로 Cilium의 쿠버네티스 Ingress 및 Gateway API 지원을 소개했습니다. 그러나 외부 클라이언트가 클러스터의 외부 노출 IP 주소를 어떻게 인식하는지에 대해서는 아직 설명하지 않았습니다. 이것이 본 장의 핵심 주제입니다.

쿠버네티스가 제공하는 가장 간단한 옵션은 NodePort 유형의 서비스입니다. NodePort 서비스를 사용하면 쿠버네티스는 클러스터 내 모든 노드에서 동일한 포트 번호를 열고 해당 포트의 트래픽을 서비스의 백엔드 파드로 전달합니다. 이는 추가 설정 없이 작동하며 클라이언트가 노드 IP를 직접 알고 있는 간단한 클러스터에서 자주 사용됩니다.

NodePort는 두 단계의 선택 과정을 도입합니다. 첫 번째 단계에서 클라이언트는 연결할 노드를 선택합니다. 두 번째 단계에서는 트래픽을 수신한 노드가 6장에서 설명한 대로 정상적인 백엔드 파드 중 하나로 트래픽을 전달합니다. 두 번째 단계는 쿠버네티스가 파드 상태를 추적하고 실패한 백엔드를 제거하기 때문에 일관되게 작동합니다. 문제는 첫 번째 단계에서 발생합니다.

클라이언트가 선택한 노드가 이후 사용 불가능해지면, 쿠버네티스에는 연결을 자동으로 다른 노드로 재지정하는 메커니즘이 없습니다. 클라이언트가 장애를 감지하고 다른 노드 IP로 재시도해야 합니다. 이는 클라이언트 동작과 주변 네트워크 환경에 취약한 의존성을 생성합니다. 방화벽이나 상위 시스템은 노드 주소와 포트 번호 목록이 아닌 단일 안정적인 대상 IP를 기대할 수 있기 때문입니다.

그림 10-1은 두 계층의 동작을 보여줍니다. 왼쪽에서는 클라이언트가 노드를 선택하고 클러스터가 요청을 무작위로 선택한 정상 백엔드 파드로 전달합니다. 오른쪽에서는 선택된 노드가 장애 발생했습니다. 다른 노드와 포드가 여전히 사용 가능함에도 불구하고, 클라이언트가 원래 선택된 노드로 계속 패킷을 전송하기 때문에 경로가 끊어집니다. 클라이언트가 (예를 들어 노드 상태를 추적하는 중간 로드 밸런서를 통해) 해당 노드가 다운되었음을 인지해야만 트래픽이 대체 가능한 정상 노드로 라우팅될 수 있습니다.

Diagram showing NodePort client connectivity: on the left, normal flow with healthy nodes; on the right, node failure scenario redirecting traffic to a functioning node.
그림 10-1. 정상 동작 시 및 노드 장애 조건에서의NodePort 클라이언트 연결성

이러한 문제를 해결하기 위해 Cilium은 외부 접근을 원활하게 만드는 두 가지 메커니즘을 도입합니다( ...

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

트랜스포머 트랜스포머: 최종 가이드 (Korean Edition)

트랜스포머 트랜스포머: 최종 가이드 (Korean Edition)

Nicole Koenigstein

Publisher Resources

ISBN: 0642572338022