package qos

import "k8s.io/kubernetes/pkg/apis/core/v1/helper/qos"

Index

Functions

func GetPodQOS

func GetPodQOS(pod *v1.Pod) v1.PodQOSClass

GetPodQOS returns the QoS class of a pod. A pod is besteffort if none of its containers have specified any requests or limits. A pod is guaranteed only when requests and limits are specified for all the containers and they are equal. A pod is burstable if limits and requests do not match across all containers.

Types

type QOSList

type QOSList map[v1.ResourceName]v1.PodQOSClass

QOSList is a set of (resource name, QoS class) pairs.

Source Files

qos.go

Version
v1.24.10
Published
Jan 18, 2023
Platform
js/wasm
Imports
4 packages
Last checked
3 minutes ago

Tools for package owners.