Skip to content

Commit

Permalink
accurately expressing the semantics of the qos (#490)
Browse files Browse the repository at this point in the history
according to kubernetes website description and actual situation, the qos take effect  to controller the policy of expulsion.This change operation express the qos meaning  more accurately.
  • Loading branch information
0xdoomxy authored May 31, 2024
1 parent 0403928 commit 6cbebe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concepts/qos.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ QoS(Quality of Service),大部分译为“服务质量等级”,又译
- **Burstable**:Pod 里至少有一个容器有内存或者 CPU 请求且不满足 Guarantee 等级的要求,即内存/CPU 的值设置的不同。
- **BestEffort**:容器必须没有任何内存或者 CPU 的限制或请求。

该配置不是通过一个配置项来配置的,而是通过配置 CPU/内存的 `limits``requests` 值的大小来确认服务质量等级的。使用 `kubectl get pod -o yaml` 可以看到 pod 的配置输出中有 `qosClass` 一项。该配置的作用是为了给资源调度提供策略支持,调度算法根据不同的服务质量等级可以确定将 pod 调度到哪些节点上
该配置不是通过一个配置项来配置的,而是通过配置 CPU/内存的 `limits``requests` 值的大小来确认服务质量等级的。使用 `kubectl get pod -o yaml` 可以看到 pod 的配置输出中有 `qosClass` 一项。该配置的作用是为了给资源调度提供策略支持,Kubernetes 依赖这种分类来决定当 Node 上没有足够可用资源时要驱逐哪些 Pod

例如,下面这个 YAML 配置中的 Pod 资源配置部分设置的服务质量等级就是 `Guarantee`

Expand Down

0 comments on commit 6cbebe1

Please sign in to comment.