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
Kubernetes即学即用(第二版)
by
Brendan Burns
,
Joe Beda
,
Kelsey Hightower
June 2021
Intermediate to advanced
300 pages
5h 4m
Chinese
China Electric Power Press Ltd.
Content preview from
Kubernetes即学即用(第二版)
标签与注释
|
87
所有这些项均以逻辑
AND
进行运算。表示运算符
!=
的唯一方法是将其转换
为带有一个值的
NotIn
表达式。
还有一种旧的指定选择器的形式(在
ReplicationController
和服务中使用)
仅支持
=
运算符。这种形式采用简单的键值对,目标对象必须匹配所有的键
值对才会被选中。
选择器
app=alpaca,ver=1
可以表示如下:
selector:
app: alpaca
ver: 1
6.1.5 Kubernetes
架构中的标签
除了方便用户组织基础设置之外,标签在链接各种相关的
Kubernetes
对象方
面也起着至关重要的作用。
Kubernetes
是一个解耦的系统,没有层次结构,
所有组件都独立运行。但是,在许多情况下,对象之间也需要相互关联,而
这些关系正是通过标签和标签选择器定义的。
例如,副本集负责创建并维护
Pod
的多个副本,它可以通过选择器找到自己
管理的
Pod
。同样,服务负载均衡器也需要通过选择器查询来确定应该将流
量送往哪些
Pod
。在
Pod
创建好之后,
Kubernetes
可以使用节点选择器,找
到一组特定的节点,并将
Pod
调度到节点上。如果你想限制集群中的网络流量,
则可以结合使用
NetworkPolicy
与特定的标签,通过特定的标签指定
Pod
之
间是否应该互相通信。标签是强大且无处不在的粘合剂,能够将
Kubernetes
应用程序结合在一起。虽然刚开始的时候,应用程序只会用到一些简单的标
签和查询,但随着时间一天天过去,标签的规模会不断壮大,同时也会越来
越复杂。
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
PyTorch深度学习
Posts & Telecom Press, Vishnu Subramanian
Python数据分析
Posts & Telecom Press, Ivan Idris
Python贝叶斯分析(第2版)
Posts & Telecom Press, Osvaldo Martin
Python高级编程(第2版)
Posts & Telecom Press, Michał Jaworski, Tarek Ziadé
Publisher Resources
ISBN: 9787519856762