-
Notifications
You must be signed in to change notification settings - Fork 438
扩展K8S动态数据源
louyuting edited this page Jul 14, 2020
·
2 revisions
Dynamic datasource is the important feature for Sentinel,The detailed design of dynamic datasource refers to: Dynamic Datasource
In order to orient to cloud native,Sentinel is to extend dynamic datasource by K8S CRD.
- utilizing K8S CRD API to extend dynamic datasource. Standardizing the CRD, listing on custom resource and updating the newest state by controller.
- Extending the sentinel rules for components circuit breaker、flow control、 hotspot arguments control、system adaptive control
+--------------------------------+
| |
| | |
| | |
| | |
| Apply Sentinel | Sentinel K8s Datasource -> |
| Rule CRDs | RuleManager |
| +-----------------------> |
| | | |
| | | |
| | | |
+-------------------v----------------+ | | |
Kubectl | | | +--------------------------------+
| | | | |
-------------------------------> | | | |
| | | | |
Apply | | Listen and | | |
Sentinel CR | K8S API Server/ | Controller | | Sentinel K8s Datasource -> |
| CRD Server +----------------------+-----------------------> RuleManager |
| | | | |
Sentinel Dashboard | | | | |
K8s-client | | | | |
-------------------------------> | | | |
| | | | |
| | | +--------------------------------+
+------------------------------------+ | | |
| | |
| | |
| | |
| | Sentinel K8s Datasource -> |
+-----------------------> RuleManager |
| |
| |
| |
| |
| |
+--------------------------------+
The Schema refer to PR: K8S CRD definition for Sentinel rules
CRDs Controller are based on operator framework SDK. The handler logic of datasource is same with other datasource(etcd、consul...)
-
文档
-
Documents (EN)