| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
- k8s
- 커널
- 시스템호출
- 운영체제
- 스프링빈
- 분산시스템
- Monitoring
- 인프라
- 개발
- 쿠버네티스
- SRE
- Kubernetes
- elasticsearch
- 대규모시스템
- Network
- devsecops
- AWS
- Kafka
- fork()
- Data Engineering
- Observability
- 코테
- it
- tech
- 엘라스틱서치
- Pub/Sub
- OS
- 데이터엔지니어
- etcd
- 개발자
- Today
- Total
모래성 말고 철옹성
[1분 쿠버네티스] Kube-Scheduler란? Kubernetes Pod 스케줄링 핵심 본문

Kube-Scheduler란?
Kube-Scheduler는 Kubernetes에서 Pod가 어떤 노드(Node)에 배치될지 결정하는 스케줄러 컴포넌트이다.
kubectl 명령을 실행하거나, 외부 어플리케이션이 API 요청을 보낼 때, 그 요청들은 가장 먼저 Kube-API Server를 통과하게 된다.
Pod는 스스로 실행 위치를 알 수 없기 때문에, 클러스터 내 리소스 상태를 확인하고 가장 적절한 노드에 할당하는 역할을 한다.
Kube-Scheduler의 주요 기능
- 스케줄링 후보 탐색
- 실행 가능한 노드 필터링
- 자원 조건 확인
- CPU, Memory 등 하드웨어 리소스 자원 고려
- 정책 기반 선택
- NodeSelector, Node Affinity, Taints & Tolerantions 지원
- 우선순위 부여
- 적합한 노드 점수화 하여 최적의 노드 선택
주요 기능을 톺아봤지만 어디에도 노드 할당하는 명령은 없다. 즉, Kube-Scheduler는 "어디서 실행할지"만 결정하여 "API Server로 Pod의 정의를 갱신한다.
Kube-Scheduler의 동작 원리
- 사용자의 새로운 Pod 생성 요청이 etcd에 저장
- Kube-Scheduler는 새로 생성된 Pod 감지
- 적합한 노드 선택
- 선택된 결과를 Kube-API Server에 전달
- Kube-API Server는 해당 Node의 Kubelet에 전달
- Kubelet이 해당 노드에서 Pod 실행
장애 시 영향
- 새로운 Pod가 할당되지 않아 클러스터가 정지된 것 처럼 보임
- 운영 환경에서는 HA 구성 필요
운영 시 고려 사항
- Node Affinity와 Taints/Tolerations를 적절히 활용하면 특정 워크로드를 특정 노드에 집중 배치하거나 분산시킬 수 있다.
- 스케줄링 정책 튜닝은 리소스 효율과 안정적인 운영의 포인트이다.
즉, Kube-Scheduler는 Kubernetes에서 Pod가 어느 노드에서 실행될지를 결정하는 의사결정하는 역할을 하게 된다.
Pod 위치 결정 = Kube-Scheduler, 실행 = Kubelet.
참조.
https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/
Kubernetes Scheduler
In Kubernetes, scheduling refers to making sure that Pods are matched to Nodes so that Kubelet can run them. Scheduling overview A scheduler watches for newly created Pods that have no Node assigned. For every Pod that the scheduler discovers, the schedule
kubernetes.io
'DevOps > 쿠버네티스' 카테고리의 다른 글
| [1분 쿠버네티스] Kube Controller Manager란? Kubernetes 클러스터 제어 핵심 (1) | 2025.08.20 |
|---|---|
| [1분 쿠버네티스] Kube-API Server - Kubernetes의 모든 통신의 출입구 (2) | 2025.08.15 |
| [1분 쿠버네티스] etcd: Kubernetes의 심장을 지탱하는 분산 키-값 저장소 (1) | 2025.08.14 |
| [1분 쿠버네티스] 쿠버네티스 아키텍처 이해 (0) | 2025.03.28 |
| [1분 쿠버네티스] Service - ClusterIP, NodePort, LoadBalancer (0) | 2025.03.26 |