K8s 服务质量(Quality of Service, QoS

2022-09-10  本文已影响0人  quanCN

requests/limits

apiVersion: v1
kind: Pod
metadata:
  name: test-demo
spec:
  containers:
  - name: test-demo
    image: nginx
    resources:
      limits:
        memory: "200Mi"
        cpu: "200m"
      requests:
        memory: "100Mi"
        cpu: "100m"

QoS

K8s会根据是否指定了requests,limits或同时指定了两者,而提供不同类型的服务质量(Quality of Service, QoS)

上一篇下一篇

猜你喜欢

热点阅读