-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ii2day <ji.li@daocloud.io>
- Loading branch information
ii2day
committed
Aug 22, 2023
1 parent
afe5513
commit ed7cb4e
Showing
11 changed files
with
1,085 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## runtime | ||
|
||
当下发任务 CR 后,kdoctor-controller 会根据 CR 中的 AgentSpec 生成对应的任务载体(DaemonSet 或 Deployment)执行任务,每一个任务独立使用一个载体。 | ||
|
||
### 载体资源 | ||
|
||
当任务 CR 下发后,kdocotr-controller 会创建如下资源进行任务。 | ||
|
||
### 工作负载 | ||
|
||
工作负载为 DaemonSet 或 Deployment,默认为 Daemonset,负载中的每一个 Pod 根据任务配置进行的请求,并将执行结果落盘到 Pod 中,可通过 AgentSpec 中设置 | ||
工作负载的销毁时间,默认任务执行完 60 分钟后,销毁工作负载,当删除 CR 任务时,工作负载会一并被删除。 | ||
|
||
### Service | ||
|
||
在创建工作负载时,kdoctor-controller 同时会根据 IP Family 的配置,创建对应的 service 并于工作负载的 pod 绑定。用于测试 service 网络连通性。与工作负载 | ||
的销毁逻辑相同。 | ||
|
||
### Ingress | ||
|
||
当任务为 NetReach 时,若测试目标包含 Ingress 时,会创建一个 Ingress,用于测试 Ingress 的网络联通性,与工作负载的销毁逻辑相同。 | ||
|
||
### 报告收取 | ||
|
||
当任务 CR 下发后,kdoctor-controller 会将任务注册进 ReportManager,ReportManager 会定期去每一个任务负载中通过 GRPC 接口获取报告,并聚合 | ||
在 kdoctor-controller 中,聚合后可通过命令 `kubectl get kdoctorreport` 获取报告结果,因此,若报告未收集完成就将工作负载删除将影响报告聚合结果。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
# E2E Cases for Task Runtime | ||
|
||
| Case ID | Title | Priority | Smoke | Status | Other | | ||
|---------|----------------------------------------------------------------------------------------|----------|-------|--------|-------------| | ||
| E00001 | Successfully testing Task Runtime DaemonSet creation | p1 | | | | | ||
| E00002 | Successfully testing Task Runtime Deployment creation | p1 | | | | | ||
| E00003 | Successfully testing Task Runtime Service creation | p1 | | | | | ||
| E00004 | Successfully testing cascading deletion with Task Runtime Service | p1 | | | | | ||
| E00005 | Successfully testing cascading deletion with Task Runtime | p1 | | | | | ||
| E00006 | Successfully testing Task NetReach Runtime Service and Ingress creation | p1 | | | | | ||
| E00007 | Successfully testing cascading deletion with Task NetReach Runtime Service and Ingress | p1 | | | | | ||
| Case ID | Title | Priority | Smoke | Status | Other | | ||
|---------|------------------------------------------------------------------------------------------------|----------|-------|--------|-------------| | ||
| E00001 | Successfully testing Task NetReach Runtime DaemonSet Service Ingress creation | p1 | | done | | | ||
| E00002 | Successfully testing Task NetAppHttpHealthy Runtime DaemonSet Service creation | p1 | | done | | | ||
| E00003 | Successfully testing Task NetDns Runtime DaemonSet Service creation | p1 | | done | | | ||
| E00004 | Successfully testing Task NetReach Runtime Deployment Service Ingress creation | p1 | | | | | ||
| E00005 | Successfully testing Task NetAppHttpHealthy Runtime Deployment Service creation | p1 | | | | | ||
| E00006 | Successfully testing Task NetDns Runtime Deployment Service creation | p1 | | | | | ||
| E00007 | Successfully testing cascading deletion with Task NetReach DaemonSet Service and Ingress | p1 | | done | | | ||
| E00008 | Successfully testing cascading deletion with Task NetAppHttpHealthy DaemonSet Service | p1 | | done | | | ||
| E00009 | Successfully testing cascading deletion with Task NetDns DaemonSet Service | p1 | | done | | | ||
| E00010 | Successfully testing cascading deletion with Task NetReach Deployment Service and Ingress | p1 | | | | | ||
| E00011 | Successfully testing cascading deletion with Task NetAppHttpHealthy Deployment Service | p1 | | | | | ||
| E00012 | Successfully testing cascading deletion with Task NetDns Deployment Service | p1 | | | | |
Oops, something went wrong.