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
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
227
9
장
파드 관리하기
selector:
app:
demo
이것은 매우 간단한 셀렉터로
app
레이블의 값이
demo
인 모든 리소스를 찾는다. 만약 리소스
가
app
레이블을 갖지 않는다면 셀렉터에 매치되지 않는다.
app
레이블이 있더라도 값이
demo
가 아니라면 마찬가지로 셀렉터에 매치되지 않는다.
app
:
demo
레이블을 가진 리소스
(
이번 예
제에서는 파드
)
만이 매치되며 서비스에 연결된다.
레이블은 단지 서비스와 파드를 연결하는 것에만 사용되지 않는다.
kubectl
get
명령어와
--
selector
플래그로 클러스터를 조회할 때에도 직접적으로 레이블을 사용할 수 있다.
kubectl
get
pods
--all-namespaces
--selector
app=demo
NAMESPACE NAME READY STATUS RESTARTS AGE
demo demo-5cb7d6bfdd-9dckm 1/1 Running 0 20s
앞서 ‘
7
.
1
.
2
절 짧은 플래그 사용하기’에서 설명했듯이
--
selector
플래그는
-
l
로(
레이블
)
로
줄여 쓸 수 있다.
파드에 정의한 레이블 목록을 확인하고 싶다면
kubectl
get
명령어와
--
show
-
labels
플래
그를 사용하면 된다.
kubectl
get
pods
--show-labels
NAME ... LABELS ...
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