Skip to Content
入門 Kubernetes
book

入門 Kubernetes

by Kelsey Hightower, Brendan Burns, Joe Beda, 松浦 隼人
March 2018
Intermediate to advanced
248 pages
2h 51m
Japanese
O'Reilly Japan, Inc.
Content preview from 入門 Kubernetes

13章ストレージソリューションとKubernetesの統合

アプリケーションとその状態の情報を切り離し、マイクロサービスをできる限りステートレスに構築すると、システムの信頼性が最大化され、管理しやすくなります。

しかし、複雑性の高いシステムはたいていの場合、ステートフルな情報をどこかに持っているものです。それは、データベースの中のレコードであったり、検索エンジンに結果を返すためのインデックスのシャードであったりします。そのため、どこかのタイミングでデータを保存する場所を持つ必要があります。

コンテナやコンテナオーケストレーションの仕組みとデータを統合するのは、分散システムを作る上で特に難しい問題です。コンテナを使ったアーキテクチャを採用することはつまり、分離され、イミュータブルで、かつ宣言的なアプリケーション開発を行うことであり、それが問題を難しくしています。コンテナを使ったアーキテクチャは、ステートレスなWebアプリケーションには比較的簡単に適用できますが、CassandraやMongoDBのような「クラウドネイティブな」ストレージソリューションを使うには、手動あるいは命令的な手順を踏まないと、レプリケーションされた信頼性の高いシステムは作れません。

例として、MongoDBのレプリカセットをセットアップする場合を考えてみましょう。この時、mongodをデプロイし、命令的な方法でプライマリとその他のノードを特定する必要があります。もちろんこの手順はスクリプトにできますが、コンテナ化してしまうと、Deploymentにどのように組み込むか考えづらくなります。さらに、各コンテナのDNS名を引くことすら簡単ではないことが分かります。

また、データの重要性もさらに複雑性を増す要因になります。ほとんどのコンテナは、他のシステムと無関係に動いているわけではありません。コンテナは通常、仮想マシンにデプロイされた既存システムと関連しており、そのシステムはインポートしたりマイグレートする必要があるデータを持っています。 ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Hands-On Microservices with Kubernetes

Hands-On Microservices with Kubernetes

Gigi Sayfan
Docker

Docker

Adrian Mouat, Sky株式会社 玉川 竜司
Hands-on Kubernetes

Hands-on Kubernetes

Sander van Vugt

Publisher Resources

ISBN: 9784873118406Other