Customizing workload scale
You can scale a pod horizontally and vertically by setting container
or
initContainer
resources or pod replicas
. By default, some pods
have more than one replica. Depending on the requirements of your workloads, you can set the values
for these replicas to less than or more than the default value.
About this task
In Kubernetes, a quality of service class is assigned to every pod based on the resource requests and the limits of its component containers. The resources can be set to the following quality of service classes:
Guaranteed
Burstable
BestEffort
When a node runs out of resources, Kubernetes evicts nodes in the following order:
BestEffort
podsBurstable
podsGuaranteed
pods
For more information, see Configure Quality of Service for Pods.
For more information about supported pods and their default values, see Supported pods.
Warning: Setting pod resource limits to less than their default values can result in
throttling or slowdowns. The replicas for entity manager pods,
Jobs
pods, and
CronJobs
pods are set to 1. You cannot change the pod resource
limits for these pods because of the nature of their workloads.Note:
initContainers
do not need to be modified because they are designed for the
basic task of initialization. The main load is within the Containers
.