Skip to Content
쿠버네티스 창시자에게 배우는 모범 사례 2판
book

쿠버네티스 창시자에게 배우는 모범 사례 2판

by 브렌던 번스, 에디 비얄바, 데이브 스트레벨, 라클런 이븐슨, 이일웅
October 2024
Beginner to intermediate
452 pages
10h 12m
Korean
Hanbit Media, Inc.
Content preview from 쿠버네티스 창시자에게 배우는 모범 사례 2판
199
CHAPTER 08
리소스 관리
8.3.8
애플리케이션 스케일링
쿠버네티스는 클러스터에 있는 애플리케이션을 스케일링하는 다양한 메커니즘을 제공한다.
가장 쉬운 방법은 디플로이먼트 안에 있는 레플리카 수를 수동으로 변경하는 것이다. 레플리
카셋이나 레플리케이션 컨트롤러를 통해 변경할 수도 있지만 권장하지 않는다. 수동 스케일
링은 워크로드가 스태틱하거나 워크로드 부하가 폭주하는 시기를 알고 있을 때 아주 알맞은
방법이지만, 그렇지 않은 경우에는 최적이라 보기 어렵다. 다행히 쿠버네티스는 워크로드를
오토스케일링할 수 있는
HPA
를 제공한다.
먼저, 디플로이먼트를 수동으로 확장하는
YAML
을 보자.
apiVersion
:
apps
/
v1
kind
:
Deployment
metadata
:
name
:
frontend
spec
:
replicas
:
3
selector
:
matchlables
:
app
:
frontend
template
:
metadata
:
name
:
frontend
labels
:
app
:
frontend
spec
:
containers
:
-
image
:
nginx
:
alpine
name
:
frontend
resources
:
requests
:
cpu
:
100m
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.
Start your free trial

You might also like

효율적인 리눅스 명령어 사용의 기술

효율적인 리눅스 명령어 사용의 기술

Daniel J Barrett
클라우드 엔지니어를 위한 97가지 조언

클라우드 엔지니어를 위한 97가지 조언

Emily Freeman, Nathen Harvey, 정기훈(Jung Ki Hun)

Publisher Resources

ISBN: 9791169212939