Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
by
최경현
,
저스틴 도밍거스
,
존 어런들
December 2019
Beginner to intermediate
420 pages
8h 34m
Korean
Hanbit Media, Inc.
Content preview from
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
235
9
장
파드 관리하기
9.3.2
파드를 분산하여 배치하기
이번에는 파드를 분산하여 배치하는 안티 어피티니를 알아보자. 여기서는
podAffinity
대신
에
podAntiAffinity
를 사용한다.
apiVersion: v1
kind: Pod
metadata:
name: server
labels:
app: server
...
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
labelSelector:
-
matchExpressions:
-
key:
app
operator:
In
values:
["server"]
topologyKey:
kubernetes.io/hostname
이전의 파드 어피니티 예제와 매우 비슷하지만
podAntiAffinity
이므로 반대 관점으로 이해
해야 한다. 매치 표현도 이번에는 ‘
app
레이블은 반드시
server
값을 가져야 한다’로 앞서 예
제와 다르다.
안티 어피니티는 규칙을 만족하는 노드에 파드를 스케줄링
하지
않도록
스케줄러에 요청한다. 즉
app
:
server
레이블이 붙은 파드는
app
:
server
파드가 이미 실행 중인 노드에 스케줄링될
수 없다. 이를 통해
server
파드를 원하는 개수의 레플리카로 클러스터에 균일하게 분산시킬 ...
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
쿼커스 쿡북: 쿠버네티스를 위한 네이티브 자바 솔루션
유동환, 알렉스 소토 부에노, 제이슨 포터
밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초
Joel Grus, Hangyeol Kim, Seongju Ha, Eunjung Park
효율적인 리눅스 명령어 사용의 기술
Daniel J Barrett
처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문
최길우, 빌 루바노빅
Publisher Resources
ISBN: 9791162248249