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即学即用(第二版)
133
第
10
章
部署
前面几章我们介绍了如何将应用程序打包成容器,如何创建容器的副本集,
以及如何使用
Ingress
控制器实现服务流量的负载均衡。所有这些对象(
Pod
、
副本集和服务)的用途都是构建应用程序的单个实例。然而,在管理每天或
每周的应用程序新版本发布方面,它们就无能为力了。
Pod
和副本集都应该
用于某个不会发生变化的容器镜像上。
至于管理新版本的发布,我们需要使用部署(
Deployment
)对象。部署表示
已部署的应用程序,但并不限于任何特定的版本。此外,部署可以帮助你将
代码从一个版本转移到下一个版本。这个“推出”过程是可以指定的,而且
非常谨慎。部署会在升级各个
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