Skip to Content
Kubernetes 관리자 인증(CKA) 학습 가이드
book

Kubernetes 관리자 인증(CKA) 학습 가이드

by Benjamin Muschko
May 2025
Beginner to intermediate
204 pages
3h 13m
Korean
O'Reilly Media, Inc.
Content preview from Kubernetes 관리자 인증(CKA) 학습 가이드

4장. 스케줄링 및 툴링

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

CKA의 스케줄링 부분은 리소스 경계를 정의하는 것이 Kubernetes 스케줄러에 의해 평가될 때 미치는 영향에 중점을 둔다. 스케줄러의 기본 런타임 동작은 노드 선호도 규칙과 테인트 및 톨러레이션을 정의하여 수정할 수도 있다. 이러한 개념 중 리소스 경계의 뉘앙스와 다양한 시나리오에서 스케줄러에 미치는 영향만 이해하면 된다. 마지막으로, 이 영역에서는 매니페스트 관리 및 템플릿 도구에 대한 높은 수준의 지식을 언급합니다.

이 장에서는 개략적으로 다음과 같은 개념을 다룹니다:

  • 파드의 리소스 경계

  • 명령적 및 선언적 적하목록 관리

  • Kustomize, yq, Helm과 같은 일반적인 템플릿 도구

리소스 제한이파드 스케줄링에 미치는 영향 이해하기

쿠버네티스 클러스터는 여러 노드로 구성될 수 있다. 다양한 규칙(예: 노드 선택기, 노드 선호도, 테인트 및 톨러레이션)에 따라 Kubernetes 스케줄러는 워크로드를 실행하기 위해 어떤 노드를 선택할지 결정합니다. CKA 시험에서는 앞서 언급한 스케줄링 개념을 이해하도록 요구하지는 않지만, 대략적인 수준에서 어떻게 작동하는지 알고 있으면 도움이 될 것입니다.

워크로드 스케줄링에 사용되는 메트릭 중 하나는 파드의 컨테이너가 정의한 리소스 요청이다. 일반적으로 지정할 수 있는 리소스는 CPU와 메모리이다. 스케줄러는 노드의 리소스 용량이 파드의 리소스 요구 사항을 충족할 수 있는지 확인한다. 더 구체적으로, 스케줄러는 파드에 정의된 모든 컨테이너에서 유형별 리소스 요청의 합계를결정하고 이를 노드의 사용 가능한 리소스와 비교한다. 그림 4-1은 리소스 요청에 기반한 스케줄링 프로세스를 보여준다.

ckas 0401
그림 4-1. 리소스 요청에 기반한 파드 스케줄링

컨테이너 리소스 요청 정의

파드의 각 컨테이너는 자체 리소스 요청을 정의할 수 있다. 표 4-1은 예시 값을 포함하여 사용 가능한 옵션에 대해 설명한다.

표 4-1. 리소스 요청 옵션
YAML 속성 설명 예제 값

spec.containers[].resources.requests.cpu

CPU 리소스 유형

500m (500 밀리CPU)

spec.containers[].resources.requests.memory

메모리 리소스 유형

64Mi (2^26바이트)

spec.containers[].resources.requests.hugepages-<size>

대용량 페이지 리소스 유형

hugepages-2Mi: 60Mi

spec.containers[].resources.requests.ephemeral-storage

임시 저장소 리소스 유형

4Gi

쿠버네티스는 메가바이트, 기가바이트와 같은 ...

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

OpenShift OKD on IBM LinuxONE, Installation Guide

OpenShift OKD on IBM LinuxONE, Installation Guide

Narjisse Zaki, Sylvain Carta, Alexandre Dini

Publisher Resources

ISBN: 9798341653993