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即学即用(第二版)
存储解决方案与
Kubernetes
的集成
|
205
另外,还有数据重力带来的复杂性。大多数容器化系统都不是凭空而来,通
常它们都是从部署到虚拟机的已有系统改造而成,而且这些系统很有可能已
经包含了数据,必须导入或迁移。
最后,向着云迈进通常意味着存储是一种外部化的云服务,在这种情况下,
这些存储绝不应该出现在
Kubernetes
集群内部。
在本章中,我们将介绍将存储集成到
Kubernetes
容器化微服务中的几种方法。
首先,我们介绍如何将已有的外部存储解决方案(云服务或在虚拟机上运行
的方案)导入
Kubernetes
。接下来,我们将探索如何在
Kubernetes
中运行可
靠的单例,并建立一个与之前部署的存储解决方案的虚拟机基本一致的环境。
最后,我们还将介绍状态集(
StatefulSet
),虽然这个对象仍在开发中,但它
代表了
Kubernetes
中有状态工作负载的未来。
15.1
导入外部服务
在很多时候,现有的系统都在网络中运行,而且上面还运行着某种数据库。
在这种情况下,你可能不希望立即将该数据库移入容器和
Kubernetes
。也许
是因为该数据库由其他团队负责,或许你希望逐步进行,亦或者迁移数据的
工作根本就是得不偿失。
无论出于何种理由,你都不打算将这个遗留的服务器和服务迁移到
Kubernetes
中,但这个服务器仍然有必要在
Kubernetes
中表示出来。执行这个操作时,
你需要利用
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