May 2018
Intermediate to advanced
554 pages
13h 51m
English
The BestEffort pod has the lowest priority in the Resource QoS classes. Therefore, in the case of a resource shortage, this BestEffort pod will be terminated by the Kubernetes scheduler, then will yield CPU and memory resources to other, higher priority pods.
In order to configure a pod as a BestEffort, you need to set the resource limit as 0 (explicit), or specify no resource limit (implicit).
$ cat besteffort-explicit.ymlapiVersion: v1kind: Podmetadata: name: besteffortspec: containers: - name: nginx image: nginx resources: limits: cpu: 0 memory: 0
Read now
Unlock full access