Skip to content

Instantly share code, notes, and snippets.

@Kuri-su
Created January 15, 2020 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kuri-su/9a254d1120a4901a31d5c4b2a0341b43 to your computer and use it in GitHub Desktop.
Save Kuri-su/9a254d1120a4901a31d5c4b2a0341b43 to your computer and use it in GitHub Desktop.
operator 原理

Operator 基于 Third Party Resources 扩展了新的应用资源,并通过控制器来保证应用处于预期状态。比如 etcd operator 通过下面的三个步骤模拟了管理 etcd 集群的行为:

  1. 通过 Kubernetes API 观察集群的当前状态;
  2. 分析当前状态与期望状态的差别;
  3. 调用 etcd 集群管理 API 或 Kubernetes API 消除这些差别。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment