K8S管理容器的计算资源

Kopei article

https://v1-8.docs.kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/

前言

k8s可以给pod设置计算资源用量, 当遇到违反某些不满足性能的条件时,k8s会有一套机制来处理。限制资源在编排模拟中使用limitsrequests.
requests指定资源的最小要求,limits指定最大用量。详细关系是 0 <= request <=Node Allocatablerequest <= limit <= Infinity
具体查看resource-qos

  • Title: K8S管理容器的计算资源
  • Author: Kopei
  • Created at : 2018-03-13 00:00:00
  • Updated at : 2025-08-13 18:15:58
  • Link: https://kopei.github.io/2018/03/12/kubernetes-2018-03-13-k8s-manage-resource/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
K8S管理容器的计算资源