Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servicecatalog-增加服务目录介绍章节 #191

Merged
merged 2 commits into from
Apr 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
增加服务目录介绍章节
  • Loading branch information
whmzsu committed Apr 22, 2018
commit 18d50fca97adb5f2dffee616d4f777a2da3fe24b
12 changes: 4 additions & 8 deletions concepts/service-catalog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
本文翻译自[官方文档](https://kubernetes.io/docs/concepts/service-catalog/)

# 服务目录(Service Catalog)

服务目录(Service Catalog)是Kubernetes的扩展API,它使运行在Kubernetes集群中的应用程序可以轻松使用外部托管软件产品,例如由云提供商提供的数据存储服务。
Expand All @@ -11,9 +12,6 @@

通过Service Catalog,集群运营者可以浏览由Service Broker提供的托管服务列表,提供的托管服务实例,并与其绑定,使其可被Kubernetes集群中的应用程序所使用。




## 场景样例

应用程序开发人员编写基于Kubernetes集群的应用程序,他们希望使用消息队列作为其应用程序的一部分。但是,他们不想自己配置和管理这个服务服务。恰好,有一家云提供商通过其服务代理(Service Broker)提供消息队列服务。
Expand Down Expand Up @@ -157,18 +155,16 @@ spec:

![Bind to a managed service](../images/service-catalog-bind.svg)

在ServiceBinding创建后,Service Catalog给外部service broker发一个调用请求,获取与服务实例绑定所需的信息。
1. 在ServiceBinding创建后,Service Catalog给外部service broker发一个调用请求,获取与服务实例绑定所需的信息。

service broker为相应的服务帐户启用应用程序权限/角色。
2. service broker为相应的服务帐户启用应用程序权限/角色。

service broker返回连接和访问托管服务实例所需的信息。根据不同的提供商和不同的服务,返回的信息可能在服务提供商和其管理服务之间有所不同。
3. service broker返回连接和访问托管服务实例所需的信息。根据不同的提供商和不同的服务,返回的信息可能在服务提供商和其管理服务之间有所不同。

### 映射连接凭证

绑定后,最后一步是将连接凭证和服务特定的信息映射到应用程序中。这些信息存储在secret中,应用程序可以用来访问并与托管服务连接。

<br>

![Map connection credentials](../images/service-catalog-map.svg)

#### Pod配置文件
Expand Down