Kubernetes API resources focused on container infrastructure rather than the applications per se.
Component Schematic
The key parts of a component schematic include:
- Metadata: Information about the component.
- Workload type: Descriptor of the component’s runtime profile. 根据应用的特点进行区分
- Parameters: (Optional). Configuration options of the component.
- Containers: Runnable pieces of code used by the component and their resource requirements.
Application Configuration
The key parts of an application configuration include:
- Metadata: Information about the installed application configuration.
- Variables: (Optional). Variables for common parameter values across multiple components.
- Components: The constituent microservices of the application and their runtime configuration.
- Traits: (Optional). A list of traits to enable for a given component.
- Scopes: (Optional). A list of scopes to apply to a given component. 对外暴露的一些状态?
A trait represents a piece of add-on functionality that attaches to a component workload, such as traffic routing rules or auto-scaling policies. 类似于sidecar? 一些标准的sidecar这样子?
Traits
Rudr supports the following traits:
Scopes
应用对外提供的一些check操作的暴露,现在是基本的health部分,包含多种health的参数,如rate,timeout等
定义了应用的CRD部分,值得参考