searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

kubernetes Pod QoS Class

2024-11-07 09:25:15
13
0

QoS Classes

Pod QoS(Quality oService)Classes是k8s根据pod的resource request/limit而设置的服务质量类,在节点资源不足时会根据QoS Classes进行驱逐

可选的QoS Classes有三种:GuaranteedBurstable 和 BestEffort

<button class="headerButton">QoS Classes</button>
<button class="headerButton">条件</button>
<button class="headerButton">补充说明</button>
Guaranteed
  • Every Container in the Pod must have a memory limit and a memory request.
  • For every Container in the Pod, the memory limit must equal the memory request.
  • Every Container in the Pod must have a CPU limit and a CPU request.
  • For every Container in the Pod, the CPU limit must equal the CPU request.
  • apply to init containers and app containers
  • do not apply to Ephemeral containers

Burstable

  • The Pod does not meet the criteria for QoS class Guaranteed.
  • At least one Container in the Pod has a memory or CPU request or limit.
If a limit is not specified, it defaults to a limit equivalent to the capacity of the Node

BestEffort

  • doesn't meet the criteria for either Guaranteed or Burstable

或者

  • none of the Containers in the Pod have a memory limit or a memory request
  • none of the Containers in the Pod have a CPU limit or a CPU request
  • Containers in a Pod can request other resources (not CPU or memory)
can use node resources that aren't specifically assigned to Pods in other QoS classes

 

驱逐或重启

0条评论
0 / 1000
安****顺
8文章数
0粉丝数
安****顺
8 文章 | 0 粉丝
安****顺
8文章数
0粉丝数
安****顺
8 文章 | 0 粉丝
原创

kubernetes Pod QoS Class

2024-11-07 09:25:15
13
0

QoS Classes

Pod QoS(Quality oService)Classes是k8s根据pod的resource request/limit而设置的服务质量类,在节点资源不足时会根据QoS Classes进行驱逐

可选的QoS Classes有三种:GuaranteedBurstable 和 BestEffort

<button class="headerButton">QoS Classes</button>
<button class="headerButton">条件</button>
<button class="headerButton">补充说明</button>
Guaranteed
  • Every Container in the Pod must have a memory limit and a memory request.
  • For every Container in the Pod, the memory limit must equal the memory request.
  • Every Container in the Pod must have a CPU limit and a CPU request.
  • For every Container in the Pod, the CPU limit must equal the CPU request.
  • apply to init containers and app containers
  • do not apply to Ephemeral containers

Burstable

  • The Pod does not meet the criteria for QoS class Guaranteed.
  • At least one Container in the Pod has a memory or CPU request or limit.
If a limit is not specified, it defaults to a limit equivalent to the capacity of the Node

BestEffort

  • doesn't meet the criteria for either Guaranteed or Burstable

或者

  • none of the Containers in the Pod have a memory limit or a memory request
  • none of the Containers in the Pod have a CPU limit or a CPU request
  • Containers in a Pod can request other resources (not CPU or memory)
can use node resources that aren't specifically assigned to Pods in other QoS classes

 

驱逐或重启

文章来自个人专栏
智能边缘云弹性计算专栏
8 文章 | 1 订阅
0条评论
0 / 1000
请输入你的评论
0
0