Skip to content

Commit

Permalink
GITBOOK-250: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mouuii authored and gitbook-bot committed Feb 5, 2025
1 parent e8e48da commit 43db7ac
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ func CreateAggregatorServer(aggregatorConfig aggregatorapiserver.CompletedConfig

在 Kubernetes 中,自动注册 API 服务通常通过 APIService 资源和自动注册控制器来实现。以下是实现自动注册的步骤:

1\. 实现自定义 API 服务器:
1\. 实现自定义 API 服务器:

* 首先,你需要实现一个自定义的 API 服务器。这个服务器可以使用 Kubernetes 提供的 kube-aggregator 库来简化开发。

2\. 创建 Kubernetes Service:
2\. 创建 Kubernetes Service:

* 为你的自定义 API 服务器创建一个 Kubernetes Service。这将为你的 API 服务器提供一个稳定的网络端点。

Expand Down Expand Up @@ -542,7 +542,7 @@ type APIServiceSpec struct {

#### NewWithDelegate

`NewWithDelegate()`方法中制作监控APIService更新的Controller,该Controller最终会调用APIAggregator的`AddAPIService()``RemoveAPIService()`方法。
`NewWithDelegate()`方法中包含监控APIService更新的Controller,该Controller最终会调用APIAggregator的`AddAPIService()``RemoveAPIService()`方法。

1. 检查和更新现有的代理处理器

Expand Down

0 comments on commit 43db7ac

Please sign in to comment.