Kubernetes Spare/Cold Replica/Pod Kubernetes Spare/Cold Replica/Pod kubernetes kubernetes

Kubernetes Spare/Cold Replica/Pod


I am just wanting to always have 2 spare for scaling, or if one becomes unavailable or any reason

It is a good practice to have at least two replicas for services on Kubernetes. This helps if e.g. a node goes down or you need to do maintenance of the node. Also set Pod Topology Spread Constraints so that those pods are scheduled to run on different nodes.

Set the number of replicas that you minimum want as desired state. In Kubernetes, traffic will be load balanced to the replicas. Also use Horizontal Pod Autoscaler to define when you want to autoscale to more replicas. You can set the requirements low for autoscaling, if you want to scale up early.